hobbit-alerts.cfg and where's the needle
Is there any way to find out exactly where a recipient is being picked up to be alerted for a specific host? I.e. (on Xymon 4.2.3) I have 2 recipients for all tests on a pair of hosts and there should be only one. They are windows application servers and both the app admins and unix admins are getting the alerts. The info pages for both hosts on that page show both groups as recipients. I've scoured the hobbit-alerts.cfg file and I can NOT see any way the unix admin group should be included as a recipient for either of the hosts on the page in question, nor for either of the individual hosts.
What I'm looking for is a tool that will read the hobbit-alerts.cfg file and take args like a host name and recipient, and return an explanation of how the results are compiled, in particular, which config line or lines would result in a specific recipient being included. I know this is highly unlikely to exist, but I thought I'd ask anyway.
Thanks! Steve Purdue University/ITSO
On Jan 3, 2011, at 4:39 PM, Steve Holmes wrote:
Is there any way to find out exactly where a recipient is being picked up to be alerted for a specific host?
Check notifications.log on the server. If it's a MAIL alert, you should see a number in brackets after the recipient address. This is the line number in hobbit-alerts.cfg that matched. I'm not sure what types of alerts this works for. I'm using SCRIPT for almost everything now and I don't get line numbers for those unfortunately.
-- Rob McBroom <http://www.skurfer.com/>
Steve,
It sounds like you want the bbcmd to test the alerts file. Its documented in http:/.../xymon/help/hobbit-alerts.html. It allows you to do a test run through your hobbit-alerts.cfg file and find all the places that might trigger an alert based on given criteria such as the hostname and test (i.e. cpu, disk, etc.). It can also test yellow alerts as well as red. The hobbitd_alert man page also contains more detailed information.
./bin/bbcmd hobbitd_alert --test osiris.hswn.dk cpu
I have found this to be invaluable as our alerts file has grown. Hope it helps.
Martha McConaghy Marist College
On Mon, 3 Jan 2011 16:39:20 -0500 Steve Holmes said:
Is there any way to find out exactly where a recipient is being picked up to be alerted for a specific host? I.e. (on Xymon 4.2.3) I have 2 recipients for all tests on a pair of hosts and there should be only one. They are windows application servers and both the app admins and unix admins are getting the alerts. The info pages for both hosts on that page show both groups as recipients. I've scoured the hobbit-alerts.cfg file and I can NOT see any way the unix admin group should be included as a recipient for either of the hosts on the page in question, nor for either of the individual hosts.
What I'm looking for is a tool that will read the hobbit-alerts.cfg file and take args like a host name and recipient, and return an explanation of how the results are compiled, in particular, which config line or lines would result in a specific recipient being included. I know this is highly unlikely to exist, but I thought I'd ask anyway.
Thanks! Steve Purdue University/ITSO
Thanks to Rob and Martha. Who would have thought that 'fprnts' would match 'PRNT' ? Changing 'PRNT' in the regex to '^PRNT' fixed the problem. I may anchor all of the expressions that way to prevent future similar problems.
Thanks again, Steve
On Tue, Jan 4, 2011 at 9:45 AM, Martha McConaghy <URMM at vm.marist.edu> wrote:
Steve,
It sounds like you want the bbcmd to test the alerts file. Its documented in http:/.../xymon/help/hobbit-alerts.html. It allows you to do a test run through your hobbit-alerts.cfg file and find all the places that might trigger an alert based on given criteria such as the hostname and test (i.e. cpu, disk, etc.). It can also test yellow alerts as well as red. The hobbitd_alert man page also contains more detailed information.
./bin/bbcmd hobbitd_alert --test osiris.hswn.dk cpu
I have found this to be invaluable as our alerts file has grown. Hope it helps.
Martha McConaghy Marist College
On Mon, 3 Jan 2011 16:39:20 -0500 Steve Holmes said:
Is there any way to find out exactly where a recipient is being picked up to be alerted for a specific host? I.e. (on Xymon 4.2.3) I have 2 recipients for all tests on a pair of hosts and there should be only one. They are windows application servers and both the app admins and unix admins are getting the alerts. The info pages for both hosts on that page show both groups as recipients. I've scoured the hobbit-alerts.cfg file and I can NOT see any way the unix admin group should be included as a recipient for either of the hosts on the page in question, nor for either of the individual hosts.
What I'm looking for is a tool that will read the hobbit-alerts.cfg file and take args like a host name and recipient, and return an explanation of how the results are compiled, in particular, which config line or lines would result in a specific recipient being included. I know this is highly unlikely to exist, but I thought I'd ask anyway.
Thanks! Steve Purdue University/ITSO
To unsubscribe from the xymon list, send an e-mail to xymon-unsubscribe at xymon.com
-- The test of a democracy is not the magnificence of buildings or the speed of automobiles or the efficiency of air transportation, but rather the care given to the welfare of all the people. -Helen Adams Keller, lecturer and author (1880-1968)
Truth never damages a cause that is just. -Mohandas Karamchand Gandhi (1869-1948)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
And thanks, too, to you Steve. I'd been anchoring things that way but wondering to myself why I was doing it (or if I'd just misunderstood an example).
On 01/04/2011 10:06 AM, Steve Holmes wrote:
Thanks to Rob and Martha. Who would have thought that 'fprnts' would match 'PRNT' ? Changing 'PRNT' in the regex to '^PRNT' fixed the problem. I may anchor all of the expressions that way to prevent future similar problems.
Thanks again, Steve
On Tue, Jan 4, 2011 at 9:45 AM, Martha McConaghy <URMM at vm.marist.edu <mailto:URMM at vm.marist.edu>> wrote:
Steve, It sounds like you want the bbcmd to test the alerts file. Its documented in http:/.../xymon/help/hobbit-alerts.html. It allows you to do a test run through your hobbit-alerts.cfg file and find all the places that might trigger an alert based on given criteria such as the hostname and test (i.e. cpu, disk, etc.). It can also test yellow alerts as well as red. The hobbitd_alert man page also contains more detailed information. ./bin/bbcmd hobbitd_alert --test osiris.hswn.dk <http://osiris.hswn.dk> cpu I have found this to be invaluable as our alerts file has grown. Hope it helps. Martha McConaghy Marist College On Mon, 3 Jan 2011 16:39:20 -0500 Steve Holmes said: >Is there any way to find out exactly where a recipient is being picked up to >be alerted for a specific host? >I.e. (on Xymon 4.2.3) I have 2 recipients for all tests on a pair of hosts >and there should be only one. They are windows application servers and both >the app admins and unix admins are getting the alerts. The info pages for >both hosts on that page show both groups as recipients. I've scoured the >hobbit-alerts.cfg file and I can NOT see any way the unix admin group should >be included as a recipient for either of the hosts on the page in question, >nor for either of the individual hosts. > >What I'm looking for is a tool that will read the hobbit-alerts.cfg file and >take args like a host name and recipient, and return an explanation of how >the results are compiled, in particular, which config line or lines would >result in a specific recipient being included. I know this is highly >unlikely to exist, but I thought I'd ask anyway. > >Thanks! >Steve >Purdue University/ITSO > To unsubscribe from the xymon list, send an e-mail to xymon-unsubscribe at xymon.com <mailto:xymon-unsubscribe at xymon.com>-- The test of a democracy is not the magnificence of buildings or the speed of automobiles or the efficiency of air transportation, but rather the care given to the welfare of all the people. -Helen Adams Keller, lecturer and author (1880-1968)
Truth never damages a cause that is just. -Mohandas Karamchand Gandhi (1869-1948)
- ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Sr. Systems Programmer |$&| |__| | | |__/ | \| _| |novosirj at umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk0jQGoACgkQmb+gadEcsb5yvwCdFgFLs/HT2onH9qwfg10nXtih L+UAn2w5smf0ZhxG1SqRna6AugIjANPC =UdpN -----END PGP SIGNATURE-----
participants (4)
-
mailinglist0@skurfer.com
-
novosirj@umdnj.edu
-
sholmes42@mac.com
-
URMM@VM.MARIST.EDU