Nagios : Add Monitoring Target Host#1
2015/06/18
|
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% }
systemctl restart nagios
|
[2] | It's possible to view the status for a new server on the admin site. |
Nenhum comentário:
Postar um comentário