Duplicate email Recipients in Info page
list Don Kuhlman
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
(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 Don Kuhlman
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
▸
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
▸
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
Does that mean it will stay green for a half hour before going red if the service has stopped ? Thanks!
▸
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
▸
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
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
▸
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
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
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
There are a couple scripts on xymonton: http://xymonton.org/monitors . Thanks, Larry Barber
▸
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
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 Don Kuhlman
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
list Josh Luthman
This one. I just checked the header of bb-mysql.pl http://xymonton.org/monitors:bb-mysql
▸
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: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
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
▸
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