I have added a servers.cfg file to my Nagios setup as well as ping and SMTP checks to a server and they all show successfully . However, when I look at the host status it shows status pending though all the services are shown as up. What am I missing?
server.cfg
define host{
use generic-host
host_name Email Server
alias Skyline
address xxx.xxx.xxx.xxx
hostgroups servers
max_check_attempts 3
}
define hostgroup{
hostgroup_name servers
alias Servers
}
define service{
use generic-service
host_name Email Server
service_description PING
check_command check_ping!200.0,20%!600.0,60%
normal_check_interval 5
retry_check_interval 1
}
Monitor Specific Services
#email server
define service{
use generic-service
host_name Email Server
service_description SMTP
check_command check_smtp
}