[Nagiosplug-help] State set to UNKNOWN instead of OK

Marc Powell marc at ena.com
Tue Feb 24 16:33:23 CET 2009

On Feb 24, 2009, at 9:13 AM, Fredrik Stridfeldt wrote:

> This drives me crazy!!!
> [1235486864] SERVICE ALERT: absaus0180;ssh_disk_root;UNKNOWN;SOFT; 
> 1;DISK OK - free space: / 13999 MB (82%):
> [1235486924] SERVICE ALERT: absaus0180;ssh_disk_root;UNKNOWN;SOFT; 
> 2;DISK OK - free space: / 13999 MB (82%):
> [1235486994] SERVICE ALERT: absaus0180;ssh_disk_root;UNKNOWN;HARD; 
> 3;DISK OK - free space: / 13999 MB (82%):
> I get OK answer but nagios set to UNKOWN ..wtf!

The plugin, or the transport you are using to execute the plugin, is  
returning an exit code of 3, not 0. Can you run the plugin  
successfully on the remote host as the user nagios is running it as  
and see the correct exit code (echo $?).

Can you run the transport/plugin command combo from the nagios server  
as the nagios user and see the correct exit code?

I strongly suspect one or the other is actually generating an error.  
You'll increase your chances of better answers by including the  
relevant config information (host, service, command definitions and  
information about how you've configured your transport).


More information about the Help mailing list