Alerts not firing upon resolution

The forum for help and support with FreeNATS as well as any useful hints and tips
Post Reply
paullanders
Posts: 92
Joined: Thu Sep 04, 2008 9:48 pm

Alerts not firing upon resolution

Post by paullanders » Thu Sep 04, 2008 11:01 pm

Hi. Alerts are firing properly upon problem detection, but although I've ticked the box for Decreases I am not receiving another email when the problem is resolved.

Thank you!

dave
Site Admin
Posts: 260
Joined: Fri May 30, 2008 9:09 pm
Location: UK
Contact:

Re: Alerts not firing upon resolution

Post by dave » Fri Sep 05, 2008 5:41 pm

Hi there,

If you view the alert history of a node and then go into one of these previous alerts it should show you the alert log.

This should contain an entry for each and every time the alert was updated (the test was tried again) and also when it was closed.

Do you see an Alert Closed entry in this log? If so - is it the last thing.

Also - do you have warnings set for the alert action (I know it shouldn't matter but I'm wondering if it might be there before trying to find the bug directly in the code).

Thanks,

Dave.

paullanders
Posts: 92
Joined: Thu Sep 04, 2008 9:48 pm

Re: Alerts not firing upon resolution

Post by paullanders » Fri Sep 05, 2008 5:54 pm

Hi Dave.
Below is the alert log. For the Action Alert I have Warnings unchecked and Decreases checked.

Node Alerts for: el_paso_papercut_server

Alert : el_paso_papercut_server/3
Opened : 16:31:11 04/09/2008
Status : Resolved
Closed : 16:46:11 04/09/2008 (Open for 00:15:00)
Level : Failed

Alert Log
16:46:11 04/09/2008 : Alert Closed
16:41:10 04/09/2008 : El Paso PaperCut Admin page failed
16:36:10 04/09/2008 : El Paso PaperCut Admin page failed
16:31:11 04/09/2008 : El Paso PaperCut Admin page failed


Alert History for el_paso_papercut_server

el_paso_papercut_server/3 Resolved 16:31:11 04/09/2008 - 16:46:11 04/09/2008

Thanks!

Paul

dave
Site Admin
Posts: 260
Joined: Fri May 30, 2008 9:09 pm
Location: UK
Contact:

Re: Alerts not firing upon resolution

Post by dave » Fri Sep 05, 2008 6:07 pm

Hi Paul,

Thanks for the info - it was indeed a logic fault if warnings were not checked.

http://www.purplepixie.org/freenats/dow ... 28a.tar.gz

This should now pass on Alert Closed if decreases are set but warnings aren't.

Let me know how you get on and if it works I'll build a beta with both those changes in.

Regards,

Dave.

paullanders
Posts: 92
Joined: Thu Sep 04, 2008 9:48 pm

Re: Alerts not firing upon resolution

Post by paullanders » Fri Sep 05, 2008 8:33 pm

Works beautifully! Thanks for the quick fix!

Can the verbage be modified (e.g. instead of Alert Closed say Issue Resolved)

dave
Site Admin
Posts: 260
Joined: Fri May 30, 2008 9:09 pm
Location: UK
Contact:

Re: Alerts not firing upon resolution

Post by dave » Fri Sep 05, 2008 8:56 pm

Good stuff.

I'm afraid you can't modify that text. I will add that to the feature list and it'll be added to version 1 (though I'm not sure when...).

Regards,

Dave.

Post Reply