Add Host to Nagios



Add another host to monitor with Nagios. 
[1]Add 'lan.server-linux.info ( 192.168.0.25 )' for an example here.
[root@ns ~]# 
vi /etc/nagios/servers/lan.cfg


# create new

define host{
      use 
linux-server

      host_name 
lan

      alias 
lan

      address 
192.168.0.25

}
define service{
      use 
generic-service

      host_name 
lan

      service_description 
PING

      check_command 
check_ping!100.0,20%!500.0,60%

}


[root@ns ~]# 
/etc/rc.d/init.d/nagios restart

Running configuration check...done.
Stopping nagios: done.
Starting nagios: done.
[2]Access to Nagios control site, then new host add olike below.





No comments:

Post a Comment