I am trying to get Nagios to run a script on our web servers to verify that our whole logging in system is working. I have a PowerShell script that is working to do the checks. I have set up the following command:
Code: Select all
Define Command{
Command_Name check_Login
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -n -C foo.ps1
}
The problem is that what is returned is:
This script does take a bit to execute. I'm thinking that the delay is too long and Nagios gives up before it returns anything. I have checked the nrpe.cfg file and the command_timeout is 60. The check_nrpe command has a 45 second timeout. Each time I run the service check it takes no more than 10 seconds to return the error.(No output returned from plugin)
Any ideas what I'm doing wrong?
Thanks!