Disable alerts if $SOME_SERVICE is down
Hello!
I've been trying to find a way to ignore alerts if i.e. xymon's local connection is down. Currently our xymon -server sends alerts from every host if the local connection goes down. Unfortunately in our current setup that's quite possible scenario and things are going to the direction where the boy cried wolf too often.
So, how I could restrict alerts so, that if local connection (or any other service for the matter) fails, alerts won't trigger?
-- Take
What we do is have all the alert scripts check at the top for a file, like this:
if [ -f "/home/hobbit/NOALERT" ] ; then exit 0 fi
You'd just need a separate job that would say ping the default router on the hobbit server, which it's unavailable, touch the file, when it's back wait x minutes, then remove the file.
Also, the "route" tag may do something like this, but you may have to place it on each host...or the "depends" tag.
---Eric
-----Original Message----- From: Take [mailto:take at nerd.fi] Sent: Thursday, August 19, 2010 6:08 AM To: xymon at xymon.com Subject: [xymon] Disable alerts if $SOME_SERVICE is down
Hello!
I've been trying to find a way to ignore alerts if i.e. xymon's local connection is down. Currently our xymon -server sends alerts from every host if the local connection goes down. Unfortunately in our current setup that's quite possible scenario and things are going to the direction where the boy cried wolf too often.
So, how I could restrict alerts so, that if local connection (or any other service for the matter) fails, alerts won't trigger?
-- Take
To unsubscribe from the xymon list, send an e-mail to xymon-unsubscribe at xymon.com
On 08/19/2010 01:43 PM, Eric Meddaugh wrote:
Also, the "route" tag may do something like this, but you may have to place it on each host...or the "depends" tag.
Thanks for your reply. I tried to experiment with the depends -tag, but for some reason that doesn't work like it should. Please, correct me if I'm wrong, but I have this on my bb-hosts:
group Others 1.2.3.4 foo.bar # ssh smtps imaps NOCOLUMNS:files,ports,msgs depends=(conn:xymon/conn)
group Local 127.0.0.1 xymon # conn=worst,5.6.7.8 bbd http://xymon/ NOCOLUMNS:files,ports,procs,msgs
Where 5.6.7.8 is an gateway address for xymon-box. Now, AFAIK that depends -line should 'translate' as: "If foo.bar connection fails AND xymon connection fails foo.bar connection doesn't have error".
Have I understood something wrong, is the syntax wrong or is there something else going on? Xymon is an Ubuntu Ludic and xymon is installed via apt, version 4.3.0~beta2.dfsg-5.
-- Take
On 08/19/2010 04:45 PM, Take wrote:
I'm still quite stuck with this. As I previously mentioned I have this in my bb-hosts: --------------------------------8<--------------------------- group Others 1.2.3.4 foo.bar # ssh smtps imaps NOCOLUMNS:files,ports,msgs depends=(conn:xymon/conn)
group Local 127.0.0.1 xymon # conn=worst,5.6.7.8 bbd http://xymon NOCOLUMNS:files,ports,procs,msgs --------------------------------8<---------------------------
Where 5.6.7.8 is an gateway for xymon -host. And I have this on hobbit-alerts.cfg: --------------------------------8<--------------------------- HOST=xymon SERVICE=conn MAIL take at nerd.fi REPEAT=60 RECOVERED
HOST=foo.bar SERVICE=conn MAIL take at nerd.fi REPEAT=60 RECOVERED --------------------------------8<---------------------------
Now, when internet connection on xymon-host is dropped for some reason I still get alert for both xymon and foo.bar connection. Obviously in this case xymon can't be sure about the foo.bar, so it shouldn't send alert about that.
Have I misunderstood the config option somehow or is there an bug in xymon regarding this?
-- Take
I am installing xymon 4.3.0 beta 2 on solaris 2.8 and during the make file I am getting the following error. Am I missing a required file?
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FI
LE_OFFSET_BITS=64 -DSunOS -I. -Ipwd/include -I/usr/local/include"
LDFLAGS="" O
SDEF="-DSunOS" RPATHOPT="-Wl,-R/usr/local/rrdtool.old/lib
-Wl,-R/usr/local/lib -
Wl,-R/usr/local/ssl/lib" PCREINCDIR="-I/usr/local/include"
SSLFLAGS="-DHAVE_OPEN
SSL=1" SSLINCDIR="-I/usr/local/ssl/include "
SSLLIBS="-L/usr/local/ssl/lib -lssl
-lcrypto" NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF=""
BBTOPDIR="/export/home/
bbuser" BBLOGDIR="/var/log/xymon" BBHOSTNAME="cilantrotest"
BBHOSTIP="141.204.51
.1" BBHOSTOS="sunos" make -C lib all
make[1]: Entering directory /export/home/bbuser/xymon-4.3.0-beta2/lib' gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BIT S=64 -DSunOS -I. -I/export/home/bbuser/xymon-4.3.0-beta2/include -I/usr/local/in clude -I. -I../include -c -o misc.o misc.c In file included from /export/home/bbuser/xymon-4.3.0-beta2/include/libbbgen.h:4 2, from misc.c:34: /export/home/bbuser/xymon-4.3.0-beta2/include/../lib/eventlog.h:38: parse error before 4'
make[1]: *** [misc.o] Error 1
make[1]: Leaving directory `/export/home/bbuser/xymon-4.3.0-beta2/lib'
make: *** [lib-build] Error 2
I know several people have issues with Solaris, did you look through the archives?
Maybe something related to you here? http://xymon.sourceforge.net/docs/known-issues.html
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
On Sat, Aug 28, 2010 at 8:24 PM, LOZOVSKY, DANIEL L (ATTSI) <DL1025 at att.com> wrote:
I am installing xymon 4.3.0 beta 2 on solaris 2.8 and during the make file I am getting the following error. Am I missing a required file?
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FI LE_OFFSET_BITS=64 -DSunOS -I. -I
pwd/include -I/usr/local/include" LDFLAGS="" O SDEF="-DSunOS" RPATHOPT="-Wl,-R/usr/local/rrdtool.old/lib -Wl,-R/usr/local/lib - Wl,-R/usr/local/ssl/lib" PCREINCDIR="-I/usr/local/include" SSLFLAGS="-DHAVE_OPEN SSL=1" SSLINCDIR="-I/usr/local/ssl/include " SSLLIBS="-L/usr/local/ssl/lib -lssl -lcrypto" NETLIBS="-lresolv -lsocket -lnsl" LIBRTDEF="" BBTOPDIR="/export/home/ bbuser" BBLOGDIR="/var/log/xymon" BBHOSTNAME="cilantrotest" BBHOSTIP="141.204.51 .1" BBHOSTOS="sunos" make -C lib all make[1]: Entering directory/export/home/bbuser/xymon-4.3.0-beta2/lib' gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BIT S=64 -DSunOS -I. -I/export/home/bbuser/xymon-4.3.0-beta2/include -I/usr/local/in clude -I. -I../include -c -o misc.o misc.c In file included from /export/home/bbuser/xymon-4.3.0-beta2/include/libbbgen.h:4 2, from misc.c:34: /export/home/bbuser/xymon-4.3.0-beta2/include/../lib/eventlog.h:38: parse error before4' make[1]: *** [misc.o] Error 1 make[1]: Leaving directory `/export/home/bbuser/xymon-4.3.0-beta2/lib' make: *** [lib-build] Error 2To unsubscribe from the xymon list, send an e-mail to xymon-unsubscribe at xymon.com
On Sunday, 29 August 2010 01:24:32 LOZOVSKY, DANIEL L (ATTSI) wrote:
I am installing xymon 4.3.0 beta 2 on solaris 2.8 and during the make file I am getting the following error. Am I missing a required file?
Do you *need* features in 4.3.0 (beta), or is 4.2.3 sufficient? Have you tried 4.2.3?
(there are a few reasons why 4.3.0 is still in beta ...).
Regards, Buchan
I can try 4.2.3
-----Original Message----- From: Buchan Milne [mailto:bgmilne at staff.telkomsa.net] Sent: Tuesday, August 31, 2010 9:27 AM To: xymon at xymon.com Cc: LOZOVSKY, DANIEL L (ATTSI) Subject: Re: [xymon] Installing xymon 4.3 beta 2 issues
On Sunday, 29 August 2010 01:24:32 LOZOVSKY, DANIEL L (ATTSI) wrote:
I am installing xymon 4.3.0 beta 2 on solaris 2.8 and during the make file I am getting the following error. Am I missing a required file?
Do you *need* features in 4.3.0 (beta), or is 4.2.3 sufficient? Have you tried 4.2.3?
(there are a few reasons why 4.3.0 is still in beta ...).
Regards, Buchan
participants (5)
-
bgmilne@staff.telkomsa.net
-
DL1025@att.com
-
etmsys@rit.edu
-
josh@imaginenetworksllc.com
-
take@nerd.fi