CentOS 7
Sponsored Link

Nagios 4 : Add Monitoring Target Host#12016/09/15

 
It's possible to monitor other servers on the network.
[1] For example, add a server for monitoring target with simply Ping command.
[root@dlp ~]#
vi /etc/nagios/nagios.cfg
# line 51: uncomment

cfg_dir=/etc/nagios/servers
[root@dlp ~]#
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%
}

[root@dlp ~]#
systemctl restart nagios

[2] It's possible to view the status for a new server on the admin site.
Matched Content