Xymon Mailing List Archive search

combo.conf question

4 messages in this thread

list Martin Flemming · Wed, 28 Dec 2011 22:30:07 +0100 (CET) ·
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


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
list Martin Flemming · Wed, 28 Dec 2011 22:33:41 +0100 (CET) ·
sorry, running xymon-4-3.7 ...
quoted from Martin Flemming

On Wed, 28 Dec 2011, Martin Flemming 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


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
list Asif Iqbal · Wed, 28 Dec 2011 16:42:19 -0500 ·
On Wed, Dec 28, 2011 at 4:30 PM, Martin Flemming
quoted from 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.
quoted from Martin Flemming
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?
list Martin Flemming · Wed, 28 Dec 2011 23:00:29 +0100 (CET) ·
Grmph, of course !!

thanks a lot :-)

 	martin
quoted from Asif Iqbal

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