How to add targeted Host in Nagios?
1) This syntax example shows to add a target "node01.rrdns.com [10.10.0.201]". [root@master ~]#chgrp nagios /etc/nagios/servers [root@master ~]#chmod 750 /etc/nagios/servers [root@master ~]#vi /etc/nagios/servers/node01.cfg # create new define host{ use linux-server host_name node01 alias node01 address 10.10.0.201 } define service{ use generic-service host_name node01 service_description PING check_command check_ping!100.0,20%!500.0,60% } [root@master ~]#/etc/rc.d/init.d/nagios restart Running configuration check...done. Stopping nagios: .done. Starting nagios: done. 2) You can access Nagios admin site and confirm the target hosts added or not.Warning: Invalid argument supplied for foreach() in /home/rrdnsco/public_html/wp-content/themes/RRDNS/includes/theme-admin.php on line 28