I have defined the host in a cfg file and service checks for Hard disk usage and PING in another cfg file. Initially the host check command was also a PING and it correctly indicated that the Host was "UP" and all services were "OK". I have changed the host check_command to query the NRPE version installed:
Code: Select all
define host {
host_name XXX-XXXX
alias XXX-XXXX
[b]check_command check_nrpe!check_nrpeversion[/b]
max_check_attempts 5
check_interval 0.08
retry_interval 0.08
check_period 24x7
contacts nagiosadmin
icon_image nrpe.png
statusmap_image nrpe.png
}
For the Windows machine this work ok i.e. my cfg file has the following:
Code: Select all
define host {
host_name XXXXXXX
[b] check_command check_nscpp!CLIENTVERSION[/b]
max_check_attempts 5
check_interval 0.08
retry_interval 0.08
check_period 24x7
contacts nagiosadmin
icon_image nscpp.png
statusmap_image nscpp.png
}