Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Apr 26, 2017 6:50 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Thold 0.6.1 beta4
PostPosted: Fri Sep 11, 2015 7:14 pm 
Offline
Cacti User

Joined: Thu Apr 10, 2008 6:52 pm
Posts: 141
--- 0.6.1 --- [proposed version]
feature: delayed host down alerts - so you don't get host down alerts for problems that quickly resolve themselves. Set the delay per notification list.
beta 2: cleanup, and better debug messages
beta 3: resolved a major bug where delayed down alerts behaved properly, but host up alerts were sent even if a delayed down alert was unsent (still in queue).
beta 4: hopefully I have resolved the bug where host up messages went to the wrong notification lists. I am now initializing all variables.

Thank you cigamit for creating the thold plugin. Hopefully my contribution will help people!


Please test and let me know how it goes!


Attachments:
File comment: proposed thold changes to be included in Thold 0.6.1. beta4
thold_0.6.1-beta4.zip [138.29 KiB]
Downloaded 610 times
File comment: screenshot1
2015-09-15 16_50_48-Clipboard.jpg
2015-09-15 16_50_48-Clipboard.jpg [ 71.92 KiB | Viewed 5528 times ]
File comment: proposed thold changes to be included in Thold 0.6.1. beta3
thold_0.6.1-beta3.zip [138.19 KiB]
Downloaded 99 times
File comment: proposed thold changes to be included in Thold 0.6.1. Second draft, beta2.
thold_0.6.1-beta2.zip [137.72 KiB]
Downloaded 69 times


Last edited by computer_guru on Thu Sep 17, 2015 7:05 pm, edited 4 times in total.
Top
 Profile  
 
 Post subject: Re: Thold 0.6.1 beta1
PostPosted: Fri Sep 11, 2015 7:48 pm 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2517
Location: B/CS Texas
First, please don't just make up a version number, you will confuse others further down the road.

2nd, why would you need delayed alerts? That is exactly what the "Breach Duration" setting is for in each threshold. You make it so each threshold would need to be in breach status for even longer before an alert is actually sent.

_________________
CactiEZ CD


Top
 Profile  
 
 Post subject: Re: Thold 0.6.1 beta1
PostPosted: Fri Sep 11, 2015 10:37 pm 
Offline
Cacti User

Joined: Thu Apr 10, 2008 6:52 pm
Posts: 141
sorry about the version thing.

Delayed threshold works great already, but I wanted delayed host down messages. I've wanted it for a long time. My mistake for not being more clear.

What version number should be used?

I could try to make a new plugin if you prefer, but I really like the notification lists in thold.


Last edited by computer_guru on Fri Sep 11, 2015 10:47 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Thold 0.6.1 beta1
PostPosted: Fri Sep 11, 2015 10:45 pm 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2517
Location: B/CS Texas
Ah, delayed Host Down. Ya, normally you would change the Cacti settings for detecting a host down, but that has been problematic for some people. I will look over your changes some more, and then roll them into the current Git Repo. Its about time we have another release as it is.

Thanks!

_________________
CactiEZ CD


Top
 Profile  
 
 Post subject: Re: Thold 0.6.1 beta1
PostPosted: Fri Sep 11, 2015 10:52 pm 
Offline
Cacti User

Joined: Thu Apr 10, 2008 6:52 pm
Posts: 141
Sorry for going about it the wrong way.

That would be awesome if you would go through my changes. I'm sure there is a bug or two. I did say "beta". ;-). I have some extra logging that probably needs removed or wrapped in a debug block.

Thanks for all the Cacti support you do.


I will test it more on Monday.


Top
 Profile  
 
 Post subject: Re: Thold 0.6.1 beta1
PostPosted: Mon Sep 14, 2015 11:26 am 
Offline
Cacti User

Joined: Thu Apr 10, 2008 6:52 pm
Posts: 141
I found the function thold_debug so I'm cleaning up my code.

will have the changes done soon.


Top
 Profile  
 
 Post subject: Re: Thold 0.6.1 beta2
PostPosted: Mon Sep 14, 2015 12:11 pm 
Offline
Cacti User

Joined: Thu Apr 10, 2008 6:52 pm
Posts: 141
Ok, I've updated the attachment at the top of this thread with beta2. much more polished version. better debug messages that only appear when Thold's debug setting is enabled.

also, delay selection box now goes from 5 minutes to 3 hours.


Top
 Profile  
 
 Post subject: Re: Thold 0.6.1 beta2
PostPosted: Mon Sep 14, 2015 4:38 pm 
Offline
Cacti User

Joined: Thu Apr 10, 2008 6:52 pm
Posts: 141
cigamit,

What do you think about adding a feature where each notification list can be designated as HTML or Plain Text or Brief (SMS) ?


Top
 Profile  
 
 Post subject: Re: Thold 0.6.1 beta3
PostPosted: Tue Sep 15, 2015 3:57 pm 
Offline
Cacti User

Joined: Thu Apr 10, 2008 6:52 pm
Posts: 141
beta3 - uploaded. see top post for details.


To anyone trying to beta test this: let me know if you run into any issues.


Top
 Profile  
 
 Post subject: Re: Thold 0.6.1 beta3
PostPosted: Thu Sep 17, 2015 1:48 pm 
Offline
Cacti User

Joined: Thu Apr 10, 2008 6:52 pm
Posts: 141
I'm investigating a possible bug.

I just switched to a new Cacti server. During the transition all hosts showed as "down" because the server NIC was not setup for a few minutes.

When all 400 hosts came backup, the "returned from down" messages did not honor the correct notification lists. Many of the message went to too many recipients / notification lists.

I'm not sure if I introduced this bug or if the bug was already present in a situation where there are so many emails being processed.


Top
 Profile  
 
 Post subject: Re: Thold 0.6.1 beta4
PostPosted: Thu Sep 17, 2015 7:10 pm 
Offline
Cacti User

Joined: Thu Apr 10, 2008 6:52 pm
Posts: 141
beta4 release - fixed bug that was present if a large number of up/down notifications went out at the same time (my cacti server was offline and marked all 400 hosts as down), then the notification lists were scrambled/wrong.

It appeared to be appending:

wrong behavior: 1st email = list1; 2nd email = list1, list2; 3rd email = list1, list2, list3 (i.e. it would use the correct notification list + all previously used lists)

correct behavior with bug fix: 1st email = list1; 2nd email = list2; 3rd email = list3 (or whatever list it should have used)


Top
 Profile  
 
 Post subject: Re: Thold 0.6.1 beta4
PostPosted: Tue Dec 01, 2015 5:54 pm 
Offline
Cacti User

Joined: Thu Apr 10, 2008 6:52 pm
Posts: 141
The latest version (beta4) appears to be working well for me. I have not heard feedback from others yet. I hope it is working well for others as well.


Top
 Profile  
 
 Post subject: Re: Thold 0.6.1 beta4
PostPosted: Wed Dec 02, 2015 1:30 pm 
Offline
Cacti User

Joined: Thu Jan 21, 2010 8:41 pm
Posts: 157
Computer_guru. It does work well I been using your Thold 0.6.1 beta4 in my prod for the last month all works well. I'm hoping to contribute to the thold plugin project by providing a fixed up version of Thold 0.6.1 beta4 that includes a fix for thold daemon that is currently non-functional in a near future...


Top
 Profile  
 
 Post subject: Re: Thold 0.6.1 beta4
PostPosted: Mon Dec 21, 2015 7:57 am 
Offline

Joined: Mon Dec 21, 2015 7:49 am
Posts: 1
On cacti 0.8.8f and beta4 have error 12/21/2015 03:52:09 PM - CMDPHP: Poller[0] ERROR: SQL Save Command Failed for Table 'thold_data'. Error was 'Column 'time_fail_trigger' cannot be null' .
Thold has not been created.


Top
 Profile  
 
 Post subject: Re: Thold 0.6.1 beta4
PostPosted: Mon Dec 21, 2015 2:45 pm 
Offline

Joined: Sun Dec 20, 2015 9:55 am
Posts: 2
tsobolev wrote:
On cacti 0.8.8f and beta4 have error 12/21/2015 03:52:09 PM - CMDPHP: Poller[0] ERROR: SQL Save Command Failed for Table 'thold_data'. Error was 'Column 'time_fail_trigger' cannot be null' .
Thold has not been created.


I get the same error : (

Can someone help us?

Is there anyone who has cacti 0.8.8f + thold 0.5 running??


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group