Problems with check_nt

Andreas Ericsson ae at op5.se
Tue Sep 11 22:26:36 CEST 2007


Antonio Pereira wrote:
> Hello,
> 
>  
> 
> I am experiencing an issue that I don't understand 
> 
>  
> 
> I have defined a check_nt command and I am scanning the disk space on about 2 servers right now. 1 out of the 2 returns a result but then the2nd will return an error message as follows
> 
>  
> 
> (Return code of 139 is out of bounds) 
> 

139? Are you absolutely, 100% sure it's 139? It seems odd, because return codes
are given as signed chars, which are normally not capable of handling numbers
outside the range -128 to 127.

It's done this way because, traditionally, programs return the additive inverse
of the system error that caused the abnormal termination, or -1 if the programmer
was lazy.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list