Nagios 4 : Add Target Host (Ping)2021/06/03 |
It's possible to monitor other servers on the network.
|
|
[1] | For example, add a Host as monitoring target with simply Ping command. |
[root@dlp ~]#
vi /etc/nagios/nagios.cfg # line 51 : 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 see the status for a new server on the admin site. |
Sponsored Link |
|