Nagios : Add Monitoring Target Host#12015/02/23 |
It's possible to monitor other servers on the network.
|
|
[1] | For exmaple, add a server for monitoring target with simply Ping command. |
[root@dlp ~]#
vi /etc/nagios/nagios.cfg # line 52: uncomment cfg_dir=/etc/nagios/servers mkdir /etc/nagios/servers [root@dlp ~]# chgrp nagios /etc/nagios/servers [root@dlp ~]# chmod 750 /etc/nagios/servers
[root@dlp ~]#
vi /etc/nagios/servers/node01.cfg # create new define host{ use linux-server host_name node01 alias node01 address 10.0.0.51 } define service{ use generic-service host_name node01 service_description PING check_command check_ping!100.0,20%!500.0,60% } /etc/rc.d/init.d/nagios reload Running configuration check...done. Reloading nagios configuration...done |
[2] | It's possible to view the status for a new server on the admin site. |
Sponsored Link |
|