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&SERVICE=afsfs">afs-node-1.afsfs</a>
&green <a
href="/xymon-cgi/svcstatus.sh?HOST=afs-node-10&SERVICE=afsfs">afs-node-10.afsfs</a>
&green <a
href="/xymon-cgi/svcstatus.sh?HOST=afs-node-11&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?