Hi All,
What are the different color codes and letters i.e. (R,S) for alerts on the info page ?
Why will my normal macro config not work ie $NEWHOSTS=host1,host2 but $NEWHOSTS=%(host1|host2) works ?
I have a alert with a group as above and I have a general alert rule for the rest of the page. I have the group definition first and then the page definition second. After the mail receipient on the hostgroup I have a STOP keyword, but on the page definition still is shown on the info page (although in another color)
Here is my config:
$ALERT=REPEAT=30 DURATION>17 COLOR=RED $ALERT_MAIL=REPEAT=30 DURATION>17 COLOR=RED,YELLOW
$SMS-HELPDESK=sms at sms-gateway.mycompany.com $HELPDESK=helpdesk at mycompany.com
$NEWHOSTS=%(host1|host2)
HOST=$NEWHOSTS EXSERVICE=trends MAIL $SMS-HELPDESK $ALERT RECOVERED TIME=w:0800:1559 FORMAT=sms MAIL $HELPDESK $ALERT_MAIL RECOVERED TIME=w:0800:1559 STOP
PAGE=customers/dk-customers MAIL $SMS-HELPDESK $ALERT FORMAT=sms MAIL $HELPDESK $ALERT_MAIL
Should I upgrade to a newer version ? i have tested the rules with 4.1.2p1 from Nov 24.
Best regards, Thomas
On Mon, Dec 12, 2005 at 09:12:22AM +0100, Thomas wrote:
What are the different color codes and letters i.e. (R,S) for alerts on the info page ?
The "(R)" for a recipient means that he also gets the "Recovered" notices.
The "(S)" means this recipient is a "Stop" recipient, i.e. you have used the STOP keyword for this recipient. So if an alert is sent to this recipient, none of the recipient below will get one.
Why will my normal macro config not work ie $NEWHOSTS=host1,host2 but $NEWHOSTS=%(host1|host2) works ?
Both should work. Could you try each of the configs and run "bbcmd hobbitd_alert --dump-config" ? That will show how your macros are expanded.
HOST=$NEWHOSTS EXSERVICE=trends
Just FYI, the "trends" column can never trigger an alert since it is always green. In fact, it doesn't exist as a real status as far as Hobbit is concerned.
Should I upgrade to a newer version ? i have tested the rules with 4.1.2p1 from Nov 24.
That is the latest release.
Henrik
It was my macro definitions that were messing the alerts configuration up and the dumpconfig made me realise this. Thanks,
Henrik Stoerner wrote:
On Mon, Dec 12, 2005 at 09:12:22AM +0100, Thomas wrote:
What are the different color codes and letters i.e. (R,S) for alerts on the info page ?
The "(R)" for a recipient means that he also gets the "Recovered" notices.
The "(S)" means this recipient is a "Stop" recipient, i.e. you have used the STOP keyword for this recipient. So if an alert is sent to this recipient, none of the recipient below will get one.
Why will my normal macro config not work ie $NEWHOSTS=host1,host2 but $NEWHOSTS=%(host1|host2) works ?
Both should work. Could you try each of the configs and run "bbcmd hobbitd_alert --dump-config" ? That will show how your macros are expanded.
participants (2)
-
henrik@hswn.dk
-
tlp-hobbit@holme-pedersen.dk