Linux Host check_command for NRPE version
Posted: Wed Dec 12, 2018 6:51 am
I have set up Nagios® Core⢠4.3.4 and configured to monitor a linux box using NRPE and Windows machine using NSClient++.
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:
but now Nagios indicates the host is "DOWN" (even though this is not the case and all service are still "OK"). How can I fix this?
For the Windows machine this work ok i.e. my cfg file has the following:
and the host is indicated as "UP" with status information: "NSClient++ 0.5.2.35 2018-01-28 "
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
}