root@excellondonsrv2:~# mysql -u root -p
mysql>
GRANT select ON mysql.* TO 'nagios'@'%' IDENTIFIED BY 'nagios';
mysql> flush privileges;mysql> quit
root@excellondonsrv2:~# nano /usr/local/nagios/etc/objects/localhost.cfg
#Servicio para monitorizar la
base de datos "mysql"
define
service{
use local-service
host_name localhost
service_description BD_Test
check_command check_mysql!-d
mysql -u nagios -p nagios
}
y
reiniciamos nagios.root@excellondonsrv2:~# service nagios reload
No hay comentarios:
Publicar un comentario