Xymon Mailing List Archive search

Disable alerts if $SOME_SERVICE is down

18 messages in this thread

list Take · Thu, 19 Aug 2010 13:08:19 +0300 ·
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
list Eric Meddaugh · Thu, 19 Aug 2010 06:43:59 -0400 ·
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
quoted from Take

-----Original Message-----
From: Take [mailto:user-e43604d089eb@xymon.invalid] 
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
list Take · Thu, 19 Aug 2010 16:45:49 +0300 ·
quoted from Eric Meddaugh
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
list Take · Thu, 26 Aug 2010 12:16:33 +0300 ·
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<---------------------------
quoted from Take
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 user-e43604d089eb@xymon.invalid REPEAT=60 RECOVERED

HOST=foo.bar SERVICE=conn
       MAIL user-e43604d089eb@xymon.invalid 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
list Daniel L Attsi Lozovsky · Sat, 28 Aug 2010 17:24:32 -0700 ·
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
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
list Josh Luthman · Sun, 29 Aug 2010 03:05:38 -0400 ·
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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Sat, Aug 28, 2010 at 8:24 PM, LOZOVSKY, DANIEL L (ATTSI)
quoted from Daniel L Attsi Lozovsky
<user-5085da3588ee@xymon.invalid> 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
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

list Daniel L Attsi Lozovsky · Sun, 29 Aug 2010 00:17:36 -0700 ·
The site is down when I checked
quoted from Josh Luthman

----- Original Message -----
From: Josh Luthman <user-4c45a83f15cb@xymon.invalid>
To: xymon at xymon.com <xymon at xymon.com>
Sent: Sun Aug 29 00:05:38 2010
Subject: Re: [xymon] Installing xymon 4.3 beta 2 issues

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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Sat, Aug 28, 2010 at 8:24 PM, LOZOVSKY, DANIEL L (ATTSI)
<user-5085da3588ee@xymon.invalid> 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
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

list Josh Luthman · Sun, 29 Aug 2010 11:17:18 -0400 ·
Loaded for me last night and just now.

On Aug 29, 2010 4:54 AM, "LOZOVSKY, DANIEL L (ATTSI)" <user-5085da3588ee@xymon.invalid>
quoted from Daniel L Attsi Lozovsky
wrote:

The site is down when I checked


----- Original Message -----
From: Josh Luthman <user-4c45a83f15cb@xymon.invalid>
To: xymon at xymon.com <...
list Daniel L Attsi Lozovsky · Sun, 29 Aug 2010 23:31:28 -0700 ·
Thanks I will check it again
quoted from Josh Luthman


From: Josh Luthman <user-4c45a83f15cb@xymon.invalid> 
To: xymon at xymon.com <xymon at xymon.com> 
Sent: Sun Aug 29 08:17:18 2010
Subject: Re: [xymon] Installing xymon 4.3 beta 2 issues 


Loaded for me last night and just now.

	On Aug 29, 2010 4:54 AM, "LOZOVSKY, DANIEL L (ATTSI)" <user-5085da3588ee@xymon.invalid> wrote:
	
	The site is down when I checked
	

	----- Original Message -----
	From: Josh Luthman <user-4c45a83f15cb@xymon.invalid>
	To: xymon at xymon.com <...
list Daniel L Attsi Lozovsky · Mon, 30 Aug 2010 09:29:19 -0700 ·
I checked the site out but could not find anything.
quoted from Daniel L Attsi Lozovsky

 
From: LOZOVSKY, DANIEL L (ATTSI) 
Sent: Sunday, August 29, 2010 11:31 PM
To: xymon at xymon.com
Subject: Re: [xymon] Installing xymon 4.3 beta 2 issues

 
Thanks I will check it again

 
From: Josh Luthman <user-4c45a83f15cb@xymon.invalid> 
To: xymon at xymon.com <xymon at xymon.com> 
Sent: Sun Aug 29 08:17:18 2010
Subject: Re: [xymon] Installing xymon 4.3 beta 2 issues 

Loaded for me last night and just now.

	On Aug 29, 2010 4:54 AM, "LOZOVSKY, DANIEL L (ATTSI)" <user-5085da3588ee@xymon.invalid> wrote:
	
	The site is down when I checked

	
	----- Original Message -----
	From: Josh Luthman <user-4c45a83f15cb@xymon.invalid>
	To: xymon at xymon.com <...
list Josh Luthman · Mon, 30 Aug 2010 16:59:15 -0400 ·
I have little to no knowledge of these kinds of problems with make.  I
am unable to help you, but hopefully someone else will chime in.
quoted from Daniel L Attsi Lozovsky

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Mon, Aug 30, 2010 at 12:29 PM, LOZOVSKY, DANIEL L (ATTSI)
quoted from Daniel L Attsi Lozovsky
<user-5085da3588ee@xymon.invalid> wrote:
I checked the site out but could not find anything.


From: LOZOVSKY, DANIEL L (ATTSI)
Sent: Sunday, August 29, 2010 11:31 PM
To: xymon at xymon.com
Subject: Re: [xymon] Installing xymon 4.3 beta 2 issues


Thanks I will check it again


From: Josh Luthman <user-4c45a83f15cb@xymon.invalid>
To: xymon at xymon.com <xymon at xymon.com>
Sent: Sun Aug 29 08:17:18 2010
Subject: Re: [xymon] Installing xymon 4.3 beta 2 issues

Loaded for me last night and just now.

On Aug 29, 2010 4:54 AM, "LOZOVSKY, DANIEL L (ATTSI)" <user-5085da3588ee@xymon.invalid>
wrote:

The site is down when I checked

----- Original Message -----
From: Josh Luthman <user-4c45a83f15cb@xymon.invalid>
To: xymon at xymon.com <...
list Daniel L Attsi Lozovsky · Mon, 30 Aug 2010 14:07:32 -0700 ·
Thank you.  First time installing xymon.  For linux what version works
best with xymon that you can recommend. 
quoted from Josh Luthman

-----Original Message-----
From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid] 
Sent: Monday, August 30, 2010 1:59 PM
To: xymon at xymon.com
Subject: Re: [xymon] Installing xymon 4.3 beta 2 issues

I have little to no knowledge of these kinds of problems with make.  I
am unable to help you, but hopefully someone else will chime in.

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Mon, Aug 30, 2010 at 12:29 PM, LOZOVSKY, DANIEL L (ATTSI)
<user-5085da3588ee@xymon.invalid> wrote:
I checked the site out but could not find anything.


From: LOZOVSKY, DANIEL L (ATTSI)
Sent: Sunday, August 29, 2010 11:31 PM
To: xymon at xymon.com
Subject: Re: [xymon] Installing xymon 4.3 beta 2 issues


Thanks I will check it again


From: Josh Luthman <user-4c45a83f15cb@xymon.invalid>
To: xymon at xymon.com <xymon at xymon.com>
Sent: Sun Aug 29 08:17:18 2010
Subject: Re: [xymon] Installing xymon 4.3 beta 2 issues

Loaded for me last night and just now.

On Aug 29, 2010 4:54 AM, "LOZOVSKY, DANIEL L (ATTSI)" <user-5085da3588ee@xymon.invalid>
wrote:

The site is down when I checked

----- Original Message -----
From: Josh Luthman <user-4c45a83f15cb@xymon.invalid>
To: xymon at xymon.com <...
list Josh Luthman · Mon, 30 Aug 2010 17:30:10 -0400 ·
I think they all (major distros) work as I have not heard of repeated issues
like I have with Solaris.

I personally use CentOS for which I made a step by step guide.  I just
updated it this weekend, too.

On Aug 30, 2010 5:11 PM, "LOZOVSKY, DANIEL L (ATTSI)" <user-5085da3588ee@xymon.invalid>
quoted from Daniel L Attsi Lozovsky
wrote:

Thank you.  First time installing xymon.  For linux what version works
best with xymon that you can recommend.


-----Original Message-----
From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
Sent: Monday, A...


To unsubscribe ...
list Daniel L Attsi Lozovsky · Mon, 30 Aug 2010 14:42:00 -0700 ·
Josh,

 
Do you think you can forward the step by step guide?  If CentOS works
well, I will use that OS.  Will make things easier I think.
quoted from Josh Luthman

 
From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid] 
Sent: Monday, August 30, 2010 2:30 PM
To: xymon at xymon.com
Subject: Re: RE: [xymon] Installing xymon 4.3 beta 2 issues

 
I think they all (major distros) work as I have not heard of repeated
issues like I have with Solaris.

I personally use CentOS for which I made a step by step guide.  I just
updated it this weekend, too.

	On Aug 30, 2010 5:11 PM, "LOZOVSKY, DANIEL L (ATTSI)"
<user-5085da3588ee@xymon.invalid> wrote:
	
	Thank you.  First time installing xymon.  For linux what version
works
	best with xymon that you can recommend.

	
	-----Original Message-----
	From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid] 
	Sent: Monday, A...

	
	To unsubscribe ...
list Josh Luthman · Mon, 30 Aug 2010 17:50:21 -0400 ·
http://en.wikibooks.org/wiki/System_Monitoring_with_Xymon/Administration_Guide/Compiling_on_CentOS

Let me know if you have any problems.

On Aug 30, 2010 5:46 PM, "LOZOVSKY, DANIEL L (ATTSI)" <user-5085da3588ee@xymon.invalid>
quoted from Daniel L Attsi Lozovsky
wrote:

 Josh,


Do you think you can forward the step by step guide?  If CentOS works well,
I will use that OS.  Will make things easier I think.


*From:* Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
*Sent:* Monday, August 30, 2010 2:30 PM
*To:* xymon at xymon.com
*Subject:* Re: RE: [xymon] Installing xymon 4.3 beta 2 issues


I think they all (major distros) work as I have not heard of repeated issues

like I have with S...
list Daniel L Attsi Lozovsky · Mon, 30 Aug 2010 15:15:39 -0700 ·
Thank you


From: Josh Luthman <user-4c45a83f15cb@xymon.invalid> To: xymon at xymon.com <xymon at xymon.com> Sent: Mon Aug 30 14:50:21 2010
Subject: Re: RE: RE: [xymon] Installing xymon 4.3 beta 2 issues 


http://en.wikibooks.org/wiki/System_Monitoring_with_Xymon/Administration_Guide/Compiling_on_CentOS

Let me know if you have any problems.

	On Aug 30, 2010 5:46 PM, "LOZOVSKY, DANIEL L (ATTSI)" <user-5085da3588ee@xymon.invalid> wrote:
	
	
	Josh,

	 
	Do you think you can forward the step by step guide?  If CentOS works well, I will use that OS.  Will make things easier I think.

	 
	From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid] 	Sent: Monday, August 30, 2010 2:30 PM
	To: xymon at xymon.com
	Subject: Re: RE: [xymon] Installing xymon 4.3 beta 2 issues

	
	I think they all (major distros) work as I have not heard of repeated issues like I have with S...
list Buchan Milne · Tue, 31 Aug 2010 17:26:33 +0100 ·
quoted from Daniel L Attsi Lozovsky
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
list Daniel L Attsi Lozovsky · Tue, 31 Aug 2010 09:27:56 -0700 ·
I can try 4.2.3
quoted from Buchan Milne

-----Original Message-----
From: Buchan Milne [mailto:user-9b139aff4dec@xymon.invalid] 
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