Need help about "Unknown" status!

Subhendu Ghosh sghosh at sghosh.org
Wed Oct 15 16:21:02 CEST 2003


On Wed, 15 Oct 2003, jpttdi wrote:

> Hi all,
>  I need help to understand what mean "unknown" status. Reading the
> documentation, i found that an unknown status is when Nagios can't
> retrieve output from the plugin.
>  Iuse Nagios 1.1 and i have several notifications related to plugin
> which switch from OK (or critical) state to an unknown state several
> times in a few minutes. The example below is for a check, launch every 5
> minutes, the checked process runs (hopefully) and when i try to launch
> the same command from the nagios server, the plugins answers fine every
> time ! If the unknown status is related to the fact that nagios cannot
> read plugin output, why can it get the comment field ?
>  
> I have this problem for several checks, not the same every time.
> The check in the example below can run silently for a whole day or return alternatively unknown/ok status during hours !
>  
> [10-15-2003 08:43:28] SERVICE ALERT: dcs25;process launcher;OK;SOFT;2;OK - 1 process launcher running : PID= 806
> [10-15-2003 08:42:28] SERVICE ALERT: dcs25;process launcher;UNKNOWN;SOFT;1;OK - 1 process launcher running : PID= 806
> [10-15-2003 08:37:28] SERVICE ALERT: dcs25;process launcher;OK;SOFT;2;OK - 1 process launcher running : PID= 806
> [10-15-2003 08:36:28] SERVICE ALERT: dcs25;process launcher;UNKNOWN;SOFT;1;OK - 1 process launcher running : PID= 806
> [10-15-2003 08:31:28] SERVICE ALERT: dcs25;process launcher;OK;SOFT;2;OK - 1 process launcher running : PID= 806
> [10-15-2003 08:30:28] SERVICE ALERT: dcs25;process launcher;UNKNOWN;SOFT;1;OK - 1 process launcher running : PID= 806
> [10-15-2003 08:25:28] SERVICE ALERT: dcs25;process launcher;OK;SOFT;2;OK - 1 process launcher running : PID= 806
> [10-15-2003 08:24:28] SERVICE ALERT: dcs25;process launcher;UNKNOWN;SOFT;1;OK - 1 process launcher running : PID= 806
> 
> Thanks.
> Jpt.


from the plugin developer docs:
UNKNOWN = Invalid command line arguments were supplied to the plugin or 
the plugin was unable to check the status of the given hosts/service


Take a look at the code for the plugin and see where it can exit with an 
UNKNOWN exit code.

-- 
-sg



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
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