I am a newbie to NAGIOS and completed the installation successfully on my linux boxes. But i couldnt monitor the remote host with the way i want. Facing some issues with the service templates it seems.
Here are the technical details.
OS Detail: RHEL 5.3 (Monitoring host and remote host)
Nagios Version: 3.5.0
Nagios Plugin: 1.4.16
NRPE: 2.14
I have created a separate cfg file under /usr/local/nagios/etc/objects with the following contents.
If i change the "Use" directive in service definition to "generic-host" or "linux-server" or "my own template", Nagios is not able to monitor the remote host.
define host{
use generic-host
host_name honda
alias honda
address 10.18.36.33
max_check_attempts 3
}
define service{
use local-service
host_name honda
service_description SSH
check_command check_nrpe!check_ssh
}
Nagios logs throws the following when i use different templates other than the local-service
Please help me.[1378208382] Warning: Host 'honda' has no default contacts or contactgroups defined!
[1378208382] Warning: Host 'localhost' has no default contacts or contactgroups defined!
[1378208382] Finished daemonizing... (New PID=10536)
[1378208419] Warning: The check of service 'Current Load' on host 'localhost' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the service...
[1378208449] Warning: Check result queue contained results for service 'SSH' on host 'honda', but the service could not be found! Perhaps you forgot to define the service in your config files?
Note: i turned off selinux, iptables and ip6tables on both the hosts and NRPE is running under XINETD
Regards
Kingston