Xymon Mailing List Archive search

Duplicate email Recipients in Info page

14 messages in this thread

list Don Kuhlman · Tue, 5 Jun 2012 18:02:54 +0000 ·
Hi folks. Still working on cleaning up my xymon infrastructure. I believe I'm getting  a better handle on things with my analysis.cfg and alerts.cfg settings now.

I made some more changes to the analysis and alerts files to add other groups for emails.

So now, I think I've duplicated a notify group in one or the other places.

When I click on a certain host's info link on an application page, I'm seeing the same target recipient for things like conn, cpu, disk, memory, etc.

What's the best way to troubleshoot my rules/settings to figure out where I'm setting the duplicated target recipients at?

PS – I can send along the alerts and analysis files if that helps.

Thanks much!

Don K
list Betsy Schwartz · Wed, 6 Jun 2012 13:26:59 -0400 ·
(resending to cc to group)
quoted from Don Kuhlman

On Tue, Jun 5, 2012 at 2:02 PM, Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid> wrote:
What's the best way to troubleshoot my rules/settings to figure out where
I'm setting the duplicated target recipients at?
Try on the server:
/usr/local/xymon/server/bin/xymond_alert --test <host> <options>

example:
/usr/local/xymon/server/bin/xymond_alert --test myhost.example.com  disk
/usr/local/xymon/server/bin/xymond_alert --test myhost.example.com
--color=yellow --duration=200 #in seconds

This will show you exactly which rules in alerts.cfg are firing.
(substitute correct path for your xymon installation)
list Don Kuhlman · Wed, 6 Jun 2012 17:28:54 +0000 ·
Thanks Betsy!  I'll try testing this way.

Now, since I have your attention ;), do you happen to know how I can test
why my service monitors arent' working?

I've been working on the email issue and now seem to have another issue. I
shut down the bbwin service on two windows computers that xymon was
monitoring and it's not alerting that the service and/or process has
stopped.

Much appreciated!

Don K
quoted from Betsy Schwartz


On 6/6/12 12:26 PM, "Betsy Schwartz" <user-c61747246f66@xymon.invalid> wrote:
(resending to cc to group)

On Tue, Jun 5, 2012 at 2:02 PM, Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid>
wrote:
What's the best way to troubleshoot my rules/settings to figure out
where
I'm setting the duplicated target recipients at?
Try on the server:
/usr/local/xymon/server/bin/xymond_alert --test <host> <options>

example:
/usr/local/xymon/server/bin/xymond_alert --test myhost.example.com  disk
/usr/local/xymon/server/bin/xymond_alert --test myhost.example.com
--color=yellow --duration=200 #in seconds

This will show you exactly which rules in alerts.cfg are firing.
(substitute correct path for your xymon installation)
list Betsy Schwartz · Wed, 6 Jun 2012 13:35:19 -0400 ·
quoted from Don Kuhlman
On Wed, Jun 6, 2012 at 1:28 PM, Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid> wrote:
I've been working on the email issue and now seem to have another issue. I
shut down the bbwin service on two windows computers that xymon was
monitoring and it's not alerting that the service and/or process has
stopped.
Default purple interval , aka "status lifetime" is half an hour... I
think it's hardcoded on the server side.

Individual alerts can also set their lifetimes. We do that with some
of our custom tests, run them every half hour with a lifetime of a
couple of hours.
list Don Kuhlman · Wed, 6 Jun 2012 17:37:25 +0000 ·
Does that mean it will stay green for a half hour before going red if the
service has stopped ?

Thanks!
quoted from Betsy Schwartz

On 6/6/12 12:35 PM, "Betsy Schwartz" <user-c61747246f66@xymon.invalid> wrote:
On Wed, Jun 6, 2012 at 1:28 PM, Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid>
wrote:
I've been working on the email issue and now seem to have another
issue. I
shut down the bbwin service on two windows computers that xymon was
monitoring and it's not alerting that the service and/or process has
stopped.
Default purple interval , aka "status lifetime" is half an hour... I
think it's hardcoded on the server side.

Individual alerts can also set their lifetimes. We do that with some
of our custom tests, run them every half hour with a lifetime of a
couple of hours.
list Betsy Schwartz · Wed, 6 Jun 2012 13:58:34 -0400 ·
quoted from Don Kuhlman
On Wed, Jun 6, 2012 at 1:37 PM, Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid> wrote:
Does that mean it will stay green for a half hour before going red if the
service has stopped ?
It will stay green and then go purple.
I gave up on BBWIN - we were experiencing too many false purples - not
sure if there's a way to tell it to send a shorter status lifetime.
list Don Kuhlman · Wed, 6 Jun 2012 18:03:32 +0000 ·
Thanks Betsy. That's what just happened. I killed the bbwin service on two
windows boxes to test it - about half hour ago, then started getting all
kinds of purple.  Once I restarted bbwin, I got all the Greens.

I still have to figure out my email issue -I set up another macro and
assigned a set of services to it in the alerts.cfg file, but nothing is
coming out. Plus I'm still getting the duplicate emails -

I appreciate the help!

Regards,

Don K
quoted from Betsy Schwartz


On 6/6/12 12:58 PM, "Betsy Schwartz" <user-c61747246f66@xymon.invalid> wrote:
On Wed, Jun 6, 2012 at 1:37 PM, Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid>
wrote:
Does that mean it will stay green for a half hour before going red if
the
service has stopped ?
It will stay green and then go purple.
I gave up on BBWIN - we were experiencing too many false purples - not
sure if there's a way to tell it to send a shorter status lifetime.
list Don Kuhlman · Fri, 14 Sep 2012 13:54:50 +0000 ·
Hi folks.  We recently rebuilt our Xymon server to 4.3.10.  Lost some
alert configurations.  After re-doing some of them, we are getting 3 or 4
emails for the same thing. Any tips on what I've missed would be
appreciated!

Thanks

Don K

As an example, I ran "./xymond_alert --test myhostname disk

It gives back this:

00016804 2012-09-14 08:39:38 Matching host:service:dgroup:page
'Media-Agent02-IMM:disk:NONE:Other' against rule line 186
00016804 2012-09-14 08:39:38 *** Match with 'SERVICE=cpu,disk,memory
TIME=W:0800:1700 EXHOST=DONXP RECOVERED' ***
00016804 2012-09-14 08:39:38 Matching host:service:dgroup:page
'Media-Agent02-IMM:disk:NONE:Other' against rule line 186
00016804 2012-09-14 08:39:38 *** Match with 'SERVICE=cpu,disk,memory
TIME=W:0800:1700 EXHOST=DONXP RECOVERED' ***
00016804 2012-09-14 08:39:38 Script alert with command
'/usr/lib64/xymon/server/ext/html_mail.pl' and recipient user-51c66ea445bd@xymon.invalid


Here is the rule from alerts.cfg on line 186:

SERVICE=cpu,disk,memory TIME=W:0800:1700 EXHOST=DONXP RECOVERED

I'm getting 4 emails as below with GREEN status and 1 with YELLOW status
and can't figure out where the duplication is coming from.  Can anyone
suggest what is wrong with my rules?


Monitoring Alert for:Media-Agent02-IMM - disk - status is (GREEN) Fri
9/14/12 8:36 AM
Monitoring Alert for:Media-Agent02-IMM - disk - status is (GREEN) Fri
9/14/12 8:36 AM
Monitoring Alert for:Media-Agent02-IMM - disk - status is (GREEN) Fri
9/14/12 8:36 AM
Monitoring Alert for:Media-Agent02-IMM - disk - status is (GREEN) Fri
9/14/12 8:36 AM
Monitoring Alert for:Media-Agent02-IMM - disk - status is (YELLOW) Fri
9/14/12 8:34 AM

The email body includes the following:
yellow Fri Sep 14 08:34:57 2012

Filesystem 1024-blocks Used Available Capacity Mounted on
Physical memory 102196 93324 8872 91% Physical memory
Virtual memory 102196 93324 8872 91% Virtual memory
Swap space 0 0 0 0% Swap space


Devmon version 0.3.0-rc1 running on Systems_Monitor
list Don Kuhlman · Fri, 10 May 2013 16:00:02 +0000 ·
Hi all.  Hoping to see if anyone has seen a more recent custom script or
has a suggestion on how to best monitor a MySQL server from Xymon.

I found a perl script called bb-SQLServer.pl which looks like it will test
a sql server from xymon.

It's a bit older and I was wondering if anyone has a location for one that
works with MySQL to check connections to the database and provide timings,
etc.?

Thanks

Don K
list Larry Barber · Fri, 10 May 2013 11:23:39 -0500 ·
There are a couple scripts on xymonton: http://xymonton.org/monitors .

Thanks,
Larry Barber
quoted from Don Kuhlman


On Fri, May 10, 2013 at 11:00 AM, Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid>wrote:
Hi all.  Hoping to see if anyone has seen a more recent custom script or
has a suggestion on how to best monitor a MySQL server from Xymon.

I found a perl script called bb-SQLServer.pl which looks like it will test
a sql server from xymon.

It's a bit older and I was wondering if anyone has a location for one that
works with MySQL to check connections to the database and provide timings,
etc.?

Thanks

Don K

list Josh Luthman · Fri, 10 May 2013 12:26:13 -0400 ·
I use one from deadcat, I think.

Mine looks like this:

Fri May 10 12:18:04 2013 MySQL Server OK

threads: 1
questions: 9005502
slow queries: 0
opens: 2011607
flush tables: 1
open tables: 64
queries per second avg: 0.072
maxcon: 100

Server version: 5.0.45 Source distribution
Uptime: 1442 days 1 hour 10 min 43 sec

Server reports timestamp of 2013-05-10 12:18:04

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
quoted from Don Kuhlman


On Fri, May 10, 2013 at 12:00 PM, Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid>wrote:
Hi all.  Hoping to see if anyone has seen a more recent custom script or
has a suggestion on how to best monitor a MySQL server from Xymon.

I found a perl script called bb-SQLServer.pl which looks like it will test
a sql server from xymon.

It's a bit older and I was wondering if anyone has a location for one that
works with MySQL to check connections to the database and provide timings,
etc.?

Thanks

Don K

list Don Kuhlman · Fri, 10 May 2013 16:43:16 +0000 ·
Thanks guys.  Josh, do you know the name of it on deadcat? I couldn't seem to find that one yesterday.

Thanks again!

Don
quoted from Josh Luthman

From: Josh Luthman <user-4c45a83f15cb@xymon.invalid<mailto:user-4c45a83f15cb@xymon.invalid>>
Date: Fri, 10 May 2013 12:26:13 -0400
To: Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid<mailto:user-5eb2bfadc6c6@xymon.invalid>>
Cc: Xymon Email List <xymon at xymon.com<mailto:xymon at xymon.com>>
Subject: Re: [Xymon] Anyone know of a MySQL Server monitoring script?

I use one from deadcat, I think.

Mine looks like this:

Fri May 10 12:18:04 2013 MySQL Server OK

threads: 1
questions: 9005502
slow queries: 0
opens: 2011607
flush tables: 1
open tables: 64
queries per second avg: 0.072
maxcon: 100

Server version: 5.0.45 Source distribution
Uptime: 1442 days 1 hour 10 min 43 sec

Server reports timestamp of 2013-05-10 12:18:04

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


On Fri, May 10, 2013 at 12:00 PM, Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid<mailto:user-5eb2bfadc6c6@xymon.invalid>> wrote:
Hi all.  Hoping to see if anyone has seen a more recent custom script or
has a suggestion on how to best monitor a MySQL server from Xymon.

I found a perl script called bb-SQLServer.pl which looks like it will test
a sql server from xymon.

It's a bit older and I was wondering if anyone has a location for one that
works with MySQL to check connections to the database and provide timings,
etc.?

Thanks

Don K
list Josh Luthman · Fri, 10 May 2013 12:46:21 -0400 ·
This one.  I just checked the header of bb-mysql.pl

http://xymonton.org/monitors:bb-mysql
signature

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


quoted from Don Kuhlman
On Fri, May 10, 2013 at 12:43 PM, Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid>wrote:
 Thanks guys.  Josh, do you know the name of it on deadcat? I couldn't
seem to find that one yesterday.

 Thanks again!

 Don

  From: Josh Luthman <user-4c45a83f15cb@xymon.invalid>
Date: Fri, 10 May 2013 12:26:13 -0400
To: Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid>
Cc: Xymon Email List <xymon at xymon.com>
Subject: Re: [Xymon] Anyone know of a MySQL Server monitoring script?

 I use one from deadcat, I think.

 Mine looks like this:

Fri May 10 12:18:04 2013 MySQL Server OK

threads: 1
questions: 9005502
slow queries: 0
opens: 2011607
flush tables: 1
open tables: 64
queries per second avg: 0.072
maxcon: 100

Server version: 5.0.45 Source distribution
Uptime: 1442 days 1 hour 10 min 43 sec

Server reports timestamp of 2013-05-10 12:18:04

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


On Fri, May 10, 2013 at 12:00 PM, Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid>wrote:
Hi all.  Hoping to see if anyone has seen a more recent custom script or
has a suggestion on how to best monitor a MySQL server from Xymon.

I found a perl script called bb-SQLServer.pl which looks like it will test
a sql server from xymon.

It's a bit older and I was wondering if anyone has a location for one that
works with MySQL to check connections to the database and provide timings,
etc.?

Thanks

Don K

list Japheth Cleaver · Fri, 10 May 2013 21:49:38 -0000 (UTC) ·
If you need to do a *LOT* of MySQL checks, I have a multithreaded script
I'm using here; I'm a little curious how it'd work for others...

If you're interested let me know and I can send it off list.

Regards,

-jc
quoted from Josh Luthman

Thanks guys.  Josh, do you know the name of it on deadcat? I couldn't seem
to find that one yesterday.

Thanks again!

Don

From: Josh Luthman
<user-4c45a83f15cb@xymon.invalid<mailto:user-4c45a83f15cb@xymon.invalid>>
Date: Fri, 10 May 2013 12:26:13 -0400
To: Don Kuhlman <user-5eb2bfadc6c6@xymon.invalid<mailto:user-5eb2bfadc6c6@xymon.invalid>>
Cc: Xymon Email List <xymon at xymon.com<mailto:xymon at xymon.com>>
Subject: Re: [Xymon] Anyone know of a MySQL Server monitoring script?

I use one from deadcat, I think.

Mine looks like this:

Fri May 10 12:18:04 2013 MySQL Server OK

threads: 1
questions: 9005502
slow queries: 0
opens: 2011607
flush tables: 1
open tables: 64
queries per second avg: 0.072
maxcon: 100

Server version: 5.0.45 Source distribution
Uptime: 1442 days 1 hour 10 min 43 sec

Server reports timestamp of 2013-05-10 12:18:04

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


On Fri, May 10, 2013 at 12:00 PM, Don Kuhlman
<user-5eb2bfadc6c6@xymon.invalid<mailto:user-5eb2bfadc6c6@xymon.invalid>> wrote:
Hi all.  Hoping to see if anyone has seen a more recent custom script or
has a suggestion on how to best monitor a MySQL server from Xymon.

I found a perl script called bb-SQLServer.pl which looks like it will test
a sql server from xymon.

It's a bit older and I was wondering if anyone has a location for one that
works with MySQL to check connections to the database and provide timings,
etc.?

Thanks

Don K