Xymon Mailing List Archive search

maint.pl with no email

list Asif Iqbal
Sat, 26 Feb 2005 15:12:59 -0500
Message-Id: <user-6adb41485afe@xymon.invalid>

On Sat, Feb 26, 2005 at 06:11:44PM, Henrik Stoerner wrote:
On Fri, Feb 25, 2005 at 07:32:35PM -0500, Asif Iqbal wrote:
On Fri, Feb 25, 2005 at 11:22:34PM, Henrik Stoerner wrote:
Frankly, this part of maint.pl is just plain broken.
Well I had to add/modify couple things to make it work as it was
with Bigbrother.
[snip the hack]
I am positive Henrik has a cooler solution for this.
Perhaps ... I've been cooking up something today that might be useful.

Instead of the "page notify-admin" recipient, I implemented a new
command in the Hobbit protocol called "notify". When you send a
"notify" command to the hobbit server, you also pass it a hostname,
a testname, and a text message. Hobbit then sends this message through
the alert module just as a normal alert-message about a status that
has gone red - and the message is sent out using the normal methods
configured for the recipients for that particular host+test
combination.

So what happens is that when you disable a test, everyone that would
normally receive an alert about that test will get a message that it
has been disabled.

And the same when it is re-enabled, of course.

I think that makes more sense than sending to the generic
"notify-admin" recipient.
Right on money as always!
Henrik

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
"It is not the strongest of the species that survives, not the most intelligent, but
 the one most responsive to change."    - Charles Darwin