Page 1 of 1

check_arcserve results in Bad return code

Posted: Mon Nov 14, 2011 12:06 pm
by caytos
Hello everybody,

I've an issue with the plugin check_arcserve_jobstatus.vbs via nrpe. I use this plugin to monitore the ArcServer Backup Manager.

When I launch on the nagios Server

Code: Select all

./check_nrpe -n -H IPSERVEUR -p 5777 -c check_arcserve
I get:

Code: Select all

2011-11-10 11:32:24; 5560; 7;Running command: cscript //T:30 //NoLogo C:\NRPE_NT\bin\check_ArcServe_jobstatus.vbs
2011-11-10 11:32:54; 5560; 7;Command completed with return code 5
2011-11-10 11:32:54; 5560; 4;Bad return code for [The check didn't respond within the timeout period!]: 5
in the nrpe logfile (on the backup server) and nagios returns:

Code: Select all

CHECK_NRPE: Socket timeout after 10 seconds.
I tried a lof of things: -t 30 parameter, modify the vbs script

This is what I defined in the nrpe.cfg

Code: Select all

cscript //T:30 //NoLogo C:\NRPE_NT\bin\check_ArcServe_jobstatus.vbs
Directly on the Backup Server, when I start: cscript //T:30 //NoLogo C:\NRPE_NT\bin\check_ArcServe_jobstatus.vbs in a Dos Box, there is no problem, I get the result.

I can't understand the "Bad return code :5"

Can somebody help me ?

Many thanks in advance.

Re: check_arcserve results in Bad return code

Posted: Mon Nov 14, 2011 5:15 pm
by jsmurphy
What happens if you run the script manually? How long does it take to execute? What happens if you run it as the same user that Nagios executes the script as?

Re: check_arcserve results in Bad return code

Posted: Tue Nov 15, 2011 4:35 am
by caytos
Hi,

Thanks for your reply.

When I run the script manually, i get the result in 2 seconds.
What happens if you run it as the same user that Nagios executes the script as? --> how can I do this ?

Re: check_arcserve results in Bad return code

Posted: Wed Nov 16, 2011 6:00 pm
by jsmurphy
to do a run as you can either: "Right click the script -> run as..." or from the command prompt "runas <parameters> <script>"