check_cluster for hosts and warning state not yellow.

Marc Powell marc at ena.com
Mon Jan 7 18:16:50 CET 2008



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of js
> Sent: Monday, January 07, 2008 10:47 AM
> To: Nagios users
> Subject: [Nagios-users] check_cluster for hosts and warning state not
> yellow.
> 
> Hi list,
> 
> I'm using Nagios 3.0RC1.
> I'm using the latest check_cluster plugin in order to implement
cluster
> logic into Nagios.
> I'm monitoring clustered hosts and NOT services.
> The whole thing seems to work correct but when the clusterhost is in a
> warning state, it is still displayed in GREEN, while that should be
YELLOW
> not?
> When the cluster check is critical, Nagios displays the host status
RED,
> which is OK.
> 
> Here's the verbose output of the plugin.
> 
> check_cluster - Warning: start=1 end=1: Critical: start=2 end=2
CLUSTER
> WARNING: Host Cluster: 1 up, 1 down, 0 unreachable
> 
> Am I missing something?

When run from the command line, what is the plugin's exit code (echo
$?)? It should be 2 for a WARNING state. The exit code is what nagios
uses to determine the actual state, not the text output. If it's not 2,
then the problem lies with check_cluster. If it is 2, then it may be a
nagios bug.

--
Marc


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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