Xymon Mailing List Archive search

combo.conf question

list Martin Flemming
Wed, 28 Dec 2011 23:00:29 +0100 (CET)
Message-Id: <user-dc1fc4f3d4fc@xymon.invalid>

Grmph, of course !!

thanks a lot :-)

 	martin

On Wed, 28 Dec 2011, Asif Iqbal wrote:
On Wed, Dec 28, 2011 at 4:30 PM, Martin Flemming
<user-f286aaa49a76@xymon.invalid> wrote:
Hi !

I've got a problem with the combo-query ..

There are three server with the same running service,
and if only one goes down i want to got an alert

my:
combo.cfg

afssrv.afsfs = (afs\-node\-1.afsfs && afs\-node\-10.afsfs &&
afs\-node\-11.afsfs) == 3
you want it like this

afssrv.afsfs = ( afs\-node\-1.afsfs + afs\-node\-10.afsfs +
afs\-node\-11.afsfs ) == 3

the && is a boolean operation, not a plus.
but the check gives me an alert

/usr/lib/xymon/server/bin/xymoncmd combostatus --no-update

status afssrv.afsfs red Wed Dec 28 22:02:50 2011

(afs\-node\-1.afsfs&&afs\-node\-10.afsfs&&afs\-node\-11.afsfs)==3
=(1&&1&&1)==3 = 0

&green <a
href="/xymon-cgi/svcstatus.sh?HOST=afs-node-1&amp;SERVICE=afsfs">afs-node-1.afsfs</a>
&green <a
href="/xymon-cgi/svcstatus.sh?HOST=afs-node-10&amp;SERVICE=afsfs">afs-node-10.afsfs</a>
&green <a
href="/xymon-cgi/svcstatus.sh?HOST=afs-node-11&amp;SERVICE=afsfs">afs-node-11.afsfs</a>

although all three servies are up and green ...

Any hints or suggestions ?


thanks & cheers

      Martin
-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
Gruss

        Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid