check_arcserve results in Bad return code

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
caytos
Posts: 7
Joined: Wed Sep 07, 2011 7:38 am

check_arcserve results in Bad return code

Post 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.
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: check_arcserve results in Bad return code

Post 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?
caytos
Posts: 7
Joined: Wed Sep 07, 2011 7:38 am

Re: check_arcserve results in Bad return code

Post 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 ?
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: check_arcserve results in Bad return code

Post by jsmurphy »

to do a run as you can either: "Right click the script -> run as..." or from the command prompt "runas <parameters> <script>"
Locked