hobbit-alerts question
list Rick Ridgeway
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
▸
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
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
▸
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
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
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 Steve Holmes
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 Larry Barber
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
▸
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
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)
list David W David Gore
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
To unsubscribe from the hobbit list, send an
e-mail to
user-095ef1c764a2@xymon.invalid
▸
--
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
So are you saying it should be HOST=%"^regex.*com$" or HOST="%^regex.*com$" ?
▸
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
That doesn't work, it prevents the string, HOST=%"^pan$" or HOST="%^pan$" both prevent 'pan' from being matched. Thanks, Larry Barber
▸
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)