lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

Events & Notifications - ARGGGHHHH

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> General
Author Message
vectorz
Initiate


Joined: 24 Jan 2007
Posts: 1

PostPosted: Thu Jan 25, 2007 6:56 pm    Post subject: Events & Notifications - ARGGGHHHH Reply with quote

I can't find any docs on this, and searched on it but there's such little info on it.

Basically , here's what I do:

1. Create an event :

Name: Alert
Trigger Type: On Change
Situation: Normal *** What's the diff between normal critical, etc?

2. Click Modify Conditions (on 'Alert' event item) -> Add

Value Type: Current Value
Condition: >
Value: 1

** This is just a test scenario

3. Create Notification:

NAME: Email
COMMAND: /usr/bin/echo "ALERT" | /usr/bin/mail -s "NETMRG ALERT" me@gmail.com

4. Go back to Event "Alert", Click on the Alert, Add Response.

Notification: Email
Parameters: <blank>

-------------------------


I then viewed the Device Tree, looked at the status column and see one GREEN bubble that is lit in green. That events field next to that, shows 'Alert', and the 'Event Log' section does indicate an alert has been triggered.

However, no notification has been sent. I've done the obvious troubleshooting by running the email command as a test from the command line of that server. Any ideas?
Back to top
silfreed
Site Admin


Joined: 19 Jan 2003
Posts: 393
Location: Shippensburg, PA, USA

PostPosted: Fri Jan 26, 2007 2:08 pm    Post subject: Re: Events & Notifications - ARGGGHHHH Reply with quote

vectorz wrote:
I can't find any docs on this, and searched on it but there's such little info on it.

You're right - it's not very well documented. We hope to improve notifications and events in a future version.

vectorz wrote:
Situation: Normal *** What's the diff between normal critical, etc?

"normal", "warning", and "critical" all just give you different hooks for attaching notifications and also change the "light" to green, yellow, or red.

vectorz wrote:
3. Create Notification:

NAME: Email
COMMAND: /usr/bin/echo "ALERT" | /usr/bin/mail -s "NETMRG ALERT" me@gmail.com

4. Go back to Event "Alert", Click on the Alert, Add Response.

Notification: Email
Parameters: <blank>
[..snip..]
However, no notification has been sent. I've done the obvious troubleshooting by running the email command as a test from the command line of that server. Any ideas?


Try running netmrg-gatherer from the command line, similar to:
Code:
netmrg-gatherer -sm
and looking for when the notification is executed. Feel free to post this output here if you need us to take a look at it.

-Doug
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> General All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group