Return Codes? (was RE: Remotely Checking Windows: Mapped Network Drives)

Marc Powell marc at ena.com
Tue Jan 3 23:05:40 CET 2006



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Robert Reeves
> Sent: Tuesday, January 03, 2006 3:58 PM
> To: nagios-users at lists.sourceforge.net
> Subject: Return Codes? (was RE: [Nagios-users] Remotely Checking
Windows:
> Mapped Network Drives)
> 
> Now that I have my mapped network drives on remote hosts being
checked,
> I'm getting false negatives.
> 
> My script is reporting the following string to NRPE NT and then to
> Nagios:
> 
> CRITICAL U: - Percentage Free = 9% (2200961024/23583522816)
> 
> However, it's saying that's OK when it clearly has CRITICAL at the
> beginning of the response. The same for warnings:
> 
> WARNING V: - Percentage Free = 16% (5904531456/36124491776)
> 
> I thought that Nagios looking for OK, WARNING and CRITICAL in the
return
> and classified it accordingly? Do I neet to provide a return code for
> warning or critical states?


Yes, you do. The text response above is for human consumption only.
Nagios relies exclusively on the exit code of the plugin to determine
state.

http://nagiosplug.sourceforge.net/developer-guidelines.html#PLUGOUTPUT

--
Marc 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
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