Xymon Mailing List Archive search

hobbit-alerts question

12 messages in this thread

list Rick Ridgeway · Fri, 11 May 2007 13:31:46 -0400 ·
In Big Brother, there was an unmatched rule where you could send a message to anything that did not match a rule to a specified email address. How would I accomplish this in Hobbit?
list Henrik Størner · Fri, 11 May 2007 19:39:26 +0200 ·
▸ quoted from Rick Ridgeway
On Fri, May 11, 2007 at 01:31:46PM -0400, Rick Ridgeway wrote:
In Big Brother, there was an unmatched rule where you could send a message to anything that did not match a rule to a specified email address. How would I accomplish this in Hobbit?
Put this at the end:

HOST=*
  MAIL user-a23e7a0937b2@xymon.invalid UNMATCHED


Regards,
Henrik
list Sean R. Clark · Fri, 11 May 2007 15:15:29 -0400 ·

In BB, I had two channels for messages, a status message and a page message

For a particular test I would send:


bb-> status host,domain,com.disk red Fri May  11 11:16:33 EST 2007 Disk
partitions on host,domain.com OK
/dev/wd0s1a    496053    25081   431288     5%    /
/dev/wd0s4e   1998122  1094955   743318    60%    /home
/dev/wd0s2e   1489830  1094928   275716    80%    /usr
Bleh more html
Etc etc long status message


bb-> page host,domain,com.disk red Fri May  11 11:16:33 EST 2007 Disk
partitions on host,domain.com OK
/dev/wd0s2e   1489830  1094928   275716    80%    /usr


And that's it - none of the html extras from my status message.


In hobbit, it seems to page on status messages and ignore the page channel
messages

Is there a way to make this work in hobbit like it did in Big Brother?


-Sean
list Henrik Størner · Fri, 11 May 2007 23:12:20 +0200 ·
▸ quoted from Sean R. Clark
On Fri, May 11, 2007 at 03:15:29PM -0400, Sean R. Clark wrote:
In BB, I had two channels for messages, a status message and a page message
[snip]
In hobbit, it seems to page on status messages and ignore the page channel
messages
Correct. Sending the same information twice is a waste of bandwidth, and
it also means you have to do the data analysis on the client - which is
contrary to the Hobbit design.
Is there a way to make this work in hobbit like it did in Big Brother?
No, but You can write a custom alerting script to filter the alert messages.


Regards,
Henrik
list Larry Barber · Thu, 17 May 2007 12:49:21 -0500 ·
I am having a problem with alerts going to the wrong people. I have a line
in hobbit-alerts.cfg:

HOST=%pan$

(this is just for demo and test purposes, I know that particular entry
doesn't make a lot of sense ) The problem is that this line is matching with
a host name "pandora". Is there any way to stop this?

Thanks,
Larry Barber
list Rick Ridgeway · Thu, 17 May 2007 13:59:16 -0400 ·
HOST=%^pan$
or
HOST=pan


Hope that helps
▸ quoted from Larry Barber


Larry Barber wrote:
I am having a problem with alerts going to the wrong people. I have a line in hobbit-alerts.cfg:

HOST=%pan$

(this is just for demo and test purposes, I know that particular entry doesn't make a lot of sense ) The problem is that this line is matching with a host name "pandora". Is there any way to stop this?

Thanks,
Larry Barber
list Steve Holmes · Thu, 17 May 2007 14:14:20 -0400 ·
Hang on there! Correct me if I'm wrong, but I think the point is that the $
should anchor the end of the string and it should never match pandora.
Right?
Steve.
▸ quoted from Rick Ridgeway


On 5/17/07, Rick Ridgeway <user-7ec02f74dd96@xymon.invalid> wrote:
HOST=%^pan$
or
HOST=pan


Hope that helps


Larry Barber wrote:
I am having a problem with alerts going to the wrong people. I have a
line in hobbit-alerts.cfg:

HOST=%pan$

(this is just for demo and test purposes, I know that particular entry
doesn't make a lot of sense ) The problem is that this line is matching
with a host name "pandora". Is there any way to stop this?

Thanks,
Larry Barber
-- 

I believe I found the missing link between animal and civilized man. It is
us. -Konrad Lorenz, ethologist, Nobel laureate (1903-1989)

We in America do not have government by the majority. We have government by
the majority who participate. -Thomas Jefferson, third US president,
architect and author (1743-1826)
list Larry Barber · Thu, 17 May 2007 13:14:24 -0500 ·
Nope, %^pan$ still matches 'pandora'.  The '$' should stop the match, but it
doesn't appear to be working.

I know HOST=pan works, what I gave was a simplified example for a larger
problem.

Thanks,
Larry Barber
▸ quoted from Rick Ridgeway

On 5/17/07, Rick Ridgeway <user-7ec02f74dd96@xymon.invalid> wrote:
HOST=%^pan$
or
HOST=pan


Hope that helps


Larry Barber wrote:
I am having a problem with alerts going to the wrong people. I have a
line in hobbit-alerts.cfg:

HOST=%pan$

(this is just for demo and test purposes, I know that particular entry
doesn't make a lot of sense ) The problem is that this line is matching
with a host name "pandora". Is there any way to stop this?

Thanks,
Larry Barber
list Larry Barber · Thu, 17 May 2007 13:33:31 -0500 ·
That's what I think.

Thanks,
Larry Barber
▸ quoted from Steve Holmes

On 5/17/07, Steve Holmes <user-ec1bf77b1b44@xymon.invalid> wrote:
Hang on there! Correct me if I'm wrong, but I think the point is that the
$ should anchor the end of the string and it should never match pandora.
Right?
Steve.


On 5/17/07, Rick Ridgeway <user-7ec02f74dd96@xymon.invalid> wrote:
HOST=%^pan$
or
HOST=pan


Hope that helps


Larry Barber wrote:
I am having a problem with alerts going to the wrong people. I have a
line in hobbit-alerts.cfg:

HOST=%pan$

(this is just for demo and test purposes, I know that particular entry
doesn't make a lot of sense ) The problem is that this line is
matching
with a host name "pandora". Is there any way to stop this?

Thanks,
Larry Barber
--
I believe I found the missing link between animal and civilized man. It is
us. -Konrad Lorenz, ethologist, Nobel laureate (1903-1989)

We in America do not have government by the majority. We have government
by
the majority who participate. -Thomas Jefferson, third US president,
architect and author (1743-1826)
list David W David Gore · Thu, 17 May 2007 18:39:00 +0000 ·
As it has been pointed out before somethings require double quotes ".
If that works, then this would be one of those cases.  All our regexes
are typically in double quotes.
 

David
▸ quoted from Larry Barber


	From: Larry Barber [mailto:user-6ef9c2864140@xymon.invalid] 
	Sent: Thursday, May 17, 2007 18:34
	To: user-ae9b8668bcde@xymon.invalid
	Subject: Re: [hobbit] hobbit-alerts question
	
	
	That's what I think.
	
	Thanks,
	Larry Barber
	
	
	On 5/17/07, Steve Holmes <user-ec1bf77b1b44@xymon.invalid> wrote: 

		Hang on there! Correct me if I'm wrong, but I think the
point is that the $ should anchor the end of the string and it should
never match pandora. Right? 
		Steve.
		
		
		On 5/17/07, Rick Ridgeway <user-7ec02f74dd96@xymon.invalid> wrote:

		
			HOST=%^pan$
			or
			HOST=pan
			
			
			Hope that helps
			
			
			Larry Barber wrote:
I am having a problem with alerts going to the
wrong people. I have a
line in hobbit-alerts.cfg:

HOST=%pan$ 

(this is just for demo and test purposes, I
know that particular entry
doesn't make a lot of sense ) The problem is
that this line is matching
with a host name "pandora". Is there any way
to stop this? 

Thanks,
Larry Barber
			
			To unsubscribe from the hobbit list, send an
e-mail to
			user-095ef1c764a2@xymon.invalid
▸ quoted from Larry Barber
			
			
		-- 
		I believe I found the missing link between animal and
civilized man. It is
		us. -Konrad Lorenz, ethologist, Nobel laureate
(1903-1989)
		
		We in America do not have government by the majority. We
have government by 
		the majority who participate. -Thomas Jefferson, third
US president,
		architect and author (1743-1826)
list Rick Ridgeway · Thu, 17 May 2007 15:11:08 -0400 ·
So are you saying it should be HOST=%"^regex.*com$" or HOST="%^regex.*com$"  ?
▸ quoted from David W David Gore

Gore, David W (David) wrote:
As it has been pointed out before somethings require double quotes ".  If that works, then this would be one of those cases.  All our regexes are typically in double quotes.
 
David


    *From:* Larry Barber [mailto:user-6ef9c2864140@xymon.invalid]
    *Sent:* Thursday, May 17, 2007 18:34
    *To:* user-ae9b8668bcde@xymon.invalid
    *Subject:* Re: [hobbit] hobbit-alerts question

    That's what I think.

    Thanks,
    Larry Barber

    On 5/17/07, *Steve Holmes* <user-ec1bf77b1b44@xymon.invalid
    <mailto:user-ec1bf77b1b44@xymon.invalid>> wrote:

        Hang on there! Correct me if I'm wrong, but I think the point is
        that the $ should anchor the end of the string and it should
        never match pandora. Right?
        Steve.


        On 5/17/07, *Rick Ridgeway* <user-7ec02f74dd96@xymon.invalid
        <mailto:user-7ec02f74dd96@xymon.invalid>> wrote:

            HOST=%^pan$
            or
            HOST=pan


            Hope that helps


            Larry Barber wrote:
 I am having a problem with alerts going to the wrong
            people. I have a
 line in hobbit-alerts.cfg:

 HOST=%pan$

 (this is just for demo and test purposes, I know that
            particular entry
 doesn't make a lot of sense ) The problem is that this
            line is matching
 with a host name "pandora". Is there any way to stop this?

 Thanks,
 Larry Barber

        --         I believe I found the missing link between animal and civilized
        man. It is
        us. -Konrad Lorenz, ethologist, Nobel laureate (1903-1989)

        We in America do not have government by the majority. We have
        government by
        the majority who participate. -Thomas Jefferson, third US president,
        architect and author (1743-1826) 
list Larry Barber · Thu, 17 May 2007 14:15:39 -0500 ·
That doesn't work, it prevents the string, HOST=%"^pan$" or HOST="%^pan$"
both prevent 'pan' from being matched.

Thanks,
Larry Barber
▸ quoted from Rick Ridgeway

On 5/17/07, Gore, David W (David) <user-3e5761c68b56@xymon.invalid> wrote:
 As it has been pointed out before somethings require double quotes ".  If
that works, then this would be one of those cases.  All our regexes are
typically in double quotes.


David

*From:* Larry Barber [mailto:user-6ef9c2864140@xymon.invalid]
*Sent:* Thursday, May 17, 2007 18:34
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] hobbit-alerts question

That's what I think.

Thanks,
Larry Barber

On 5/17/07, Steve Holmes <user-ec1bf77b1b44@xymon.invalid> wrote:
Hang on there! Correct me if I'm wrong, but I think the point is that
the $ should anchor the end of the string and it should never match pandora.
Right?
Steve.


On 5/17/07, Rick Ridgeway <user-7ec02f74dd96@xymon.invalid> wrote:
HOST=%^pan$
or
HOST=pan


Hope that helps


Larry Barber wrote:
I am having a problem with alerts going to the wrong people. I have
a
line in hobbit-alerts.cfg:

HOST=%pan$

(this is just for demo and test purposes, I know that particular
entry
doesn't make a lot of sense ) The problem is that this line is
matching
with a host name "pandora". Is there any way to stop this?

Thanks,
Larry Barber
--
I believe I found the missing link between animal and civilized man. It
is
us. -Konrad Lorenz, ethologist, Nobel laureate (1903-1989)

We in America do not have government by the majority. We have government
by
the majority who participate. -Thomas Jefferson, third US president,
architect and author (1743-1826)