[Xymon] Double combo's - returning -1 - xymon 4.3.3

Gore, David W (David) david.gore at verizon.com
Sun Aug 7 15:03:46 CEST 2011


Henrik,

In regards to double combobs, since no one is replying I suppose either no one is using this feature or it is broken?

As a side note:

xymoncmd xymond_alert --test host service --duration=29 --color=red

00002332 2011-08-07 12:57:58 *** Match with 'EXHOST=$HOSTS_EXCLUDED HOST=* SERVICE=service COLOR=red' ***
00002332 2011-08-07 12:57:58 Matching host:service:page 'host:service:Site/Platform,Place' against rule line 432
00002332 2011-08-07 12:57:58 Failed 'SCRIPT=$SENDPAGE $PAGE_NMS DURATION>30m REPEAT=365d' (min. duration 1740<1800)

The duration above is in minutes when clearly the documentation specifies seconds?

       --test HOST SERVICE [options]
              Shows  which alert rules matches the given HOST/SERVICE combination.  Useful to debug configu-
              ration problems, and see what rules are used for an alert.

              The possible options are:
              --color=COLORNAME The COLORNAME parameter is the color of the alert: red, yellow or purple.
              --duration=SECONDS The SECONDS parameter is the duration of the alert in seconds.
              --group=GROUPNAME The GROUPNAME paramater is a groupid string from the analysis.cfg file.


~David

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of David W Gore
Sent: Friday, July 29, 2011 19:17
To: xymon at xymon.com
Subject: Re: [Xymon] Double combo's - returning -1 - xymon 4.3.3

Does anyone out there using double leveled combos, combos of combos that
work?  If so perhaps you could share an example from your config that
works?  Thanks in advance,

Here is the example from the man pages:

----
WebCluster.http = (Web1.http || Web2.http) 
AppSrvCluster.procs = (AppSrv1.conn && AppSrv1.procs) || (AppSrv2.conn &&
AppSrv2.procs) 
Customer.cluster = WebCluster.http && AppSrvCluster.procs 

The first line defines a new test, with hostname "WebCluster" and the
columnname "http". It will be green if the http test on either the "Web1" or
the "Web2" server is green.

The second line defines a "procs" test for the "AppSrvCluster" host. Each of
the AppSrv1 and AppSrv2 hosts is checked for "conn" (ping) and their "procs"
test. On each host, both of these must be green, but the combined test is
green if that condition is fulfilled on just one of the hosts.

The third line uses the two first tests to build a "double combined" test,
defining a test that shows the overall health of the system.
----

So in theory it should work?  For reference we are using Xymon 4.3.3 on
RedHat Linux Enterprise 5.7.

~David

From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of
Rager, Richard R (Rich)
Sent: Thursday, June 30, 2011 19:02
To: xymon at xymon.com
Subject: [Xymon] Double combo's - returning -1 - xymon 4.3.3

Hi,
 
Anyone using double combo messages?  I was following the man pages, which
state they are possible, but my tests calculate "-1" and the color comes out
$unknown.
 
Thu Jun 30 18:43:24 2011
(iam.db&&gam.db) = (-1&&-1) = 1
&unknown iam.db
&unknown gam.db
Sample config from combo.cfg.  I have changed hostnames to protect the
innocent...combos based on the values returned by dbcheck.pl...our DB's are
served on 4 node Oracle Grid clusters, which is why we have alias' for the
DB, such as servername_dbname.
 
Hostnames are defined in hosts.d as "0.0.0.0         gam          # noconn
nonongreen noproppurple:*"  gam/iam/impact all defined the same in hosts.
 
iam.db = (servername\_iam.audit && servername\_iam.conn &&
servername\_iam.extent && servername\_iam.info && servername\_iam.invobj &&
servername\_iam.locks && servername\_iam.rollback && servername\_iam.session
&& servername\_iam.tblspace && servername\_iam.trends &&
servername\_iam.uptime)
 
gam.db = (servername\_gam.audit && servername\_gam.conn &&
servername\_gam.extent && servername\_gam.info && servername\_gam.invobj &&
servername\_gam.locks && servername\_gam.rollback && servername\_gam.session
&& servername\_gam.tblspace && servername\_gam.trends &&
servername\_gam.uptime)
 
These two above work fine.  They are single layer combo tests...All my
single layer combo tests work.
 
The double combo is this:
 
impact.db = (iam.db && gam.db) - same with our without parenthesys...if I
use single ampersand, color propogates up, but staus still shows &unknown.
 
 
We have tried multiple combinations taking the combo down to barest form,
and still get the errors (&unknown).
 
Log doesn't really help...
 
combostatus.log.1:21316 2011-06-30 03:58:03 Symbolic
'event.db&&gam.db&&iam.db&&jbpm.db' converted to '-1&&-1&&-1&&-1'
I put the --debug on the cmd in tasks, and not logging much else helpful.
 
Appreciate some thoughs or suggestions.
 
Rich Rager
VZB
 

________________________________________
This message was created by the sender using your @mci.com address. If you
wish to continue to receive messages from this sender, please respond
informing them to use your @verizonbusiness.com email address.

The mci.com email domain will be decommissioned October 31, 2010.
Please inform sender to use your @verizonbusiness.com address, if you desire
to continue to receive messages from them.

Thank You

Verizon Business Messaging


_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon



More information about the Xymon mailing list