In /usr/local/nagios/etc/objects/ I created hosts.cfg and services.cfg
But I found one question: I can't define one more host,but I need to minitor 7 linux_hosts in my company.
HOW CAN I DEFINE ONE MORE LINUX by modifying hosts.cfg and services.cfg?
THX THX THX!!!!
It's the hosts.cfg:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
define host{
use linux-server
host_name xianyuan-Linux
alias xianyuan-Linux
address 192.168.1.9
}
define hostgroup{
hostgroup_name hanminfo-servers
alias hanminfo servers
members xianyuan-Linux
}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
it's the service.cfg
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
define service{
use local-service
host_name xianyuan-Linux
service_description Current Load
check_command check_nrpe!check_load
}
define service{
use local-service
host_name xianyuan-Linux
service_description Check Disk sda1
check_command check_nrpe!check_sda1
}
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++