Nagios NRPE
Posted: Wed Jul 18, 2012 11:06 am
I'm trying to get NRPE checks going but I'm running into difficulties. We have Nagios (on Ubuntu) up and running and checking servers just fine.
The steps I've followed so far -
Installed NRPE plugin (and dependencies) on our Nagios server
Modified NSC.ini in the NSClient++ directory on the target server, allowing the NRPEListener.dll, changed the allow arguments part under [NRPE], and added check_adhealth=C:\Program Files\NSClient++\scripts\Check_AD.exe to the [NRPE Client Handlers] section
Put the Check_AD.exe in the proper scripts folder
Added this to commands.cfg:
define command{
command_name check_nrpe
command_line /$USER1$/check_nrpe -n -H $HOSTADDRESS$ -c $ARG1$
}
Added this to windows.cfg
define service{
use generic-service
host_name <server name>
service_description Check AD Health
check_command check_nrpe!check_adhealth
}
Restarted nagios services and NSClient++ service on target server
Getting error "CHECK_NRPE: Error receiving data from daemon." in Nagios
...I'm not sure what else needs to be done as there is a plethora of different instructions on the WWW. Do I need to install an NRPE program on the windows server? Also is there a way to test whether NRPE is installed correctly on the Nagios server?
TIA!
The steps I've followed so far -
Installed NRPE plugin (and dependencies) on our Nagios server
Modified NSC.ini in the NSClient++ directory on the target server, allowing the NRPEListener.dll, changed the allow arguments part under [NRPE], and added check_adhealth=C:\Program Files\NSClient++\scripts\Check_AD.exe to the [NRPE Client Handlers] section
Put the Check_AD.exe in the proper scripts folder
Added this to commands.cfg:
define command{
command_name check_nrpe
command_line /$USER1$/check_nrpe -n -H $HOSTADDRESS$ -c $ARG1$
}
Added this to windows.cfg
define service{
use generic-service
host_name <server name>
service_description Check AD Health
check_command check_nrpe!check_adhealth
}
Restarted nagios services and NSClient++ service on target server
Getting error "CHECK_NRPE: Error receiving data from daemon." in Nagios
...I'm not sure what else needs to be done as there is a plethora of different instructions on the WWW. Do I need to install an NRPE program on the windows server? Also is there a way to test whether NRPE is installed correctly on the Nagios server?
TIA!