Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Jul 24, 2017 5:42 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Thold sends 5 emails for dead host
PostPosted: Wed Nov 10, 2010 6:00 pm 
Offline

Joined: Thu Jun 15, 2006 11:36 am
Posts: 48
For Every host that goes down thold sends 5 emails, each a minute apart. My cron and poller interval are set to 1.

Currently I am running:
Cacti version 0.8.7g
Thold version 0.4.2
on CentOS 4
PHP Version 5.2.14
mysql 5.1.50


Top
 Profile  
 
 Post subject: Re: Thold sends 5 emails for dead host
PostPosted: Wed Nov 10, 2010 7:56 pm 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2587
Location: B/CS Texas
You mention your cron interval and poller interval are set to 1 minute in Cacti Settings. I assume your Crontab / scheduled task is also set to 1 minute in the OS?

_________________
CactiEZ CD


Top
 Profile  
 
 Post subject: Re: Thold sends 5 emails for dead host
PostPosted: Fri Nov 12, 2010 11:03 am 
Offline

Joined: Thu Jun 15, 2006 11:36 am
Posts: 48
here is my crontab
Code:
*/1 * * * * php /var/www/html/plugins/monitor/fast_poller.php > /dev/null 2>&1
*/1 * * * * php /var/www/html/poller.php > /dev/null 2>&1


Top
 Profile  
 
 Post subject: Re: Thold sends 5 emails for dead host
PostPosted: Fri Nov 12, 2010 11:11 am 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2587
Location: B/CS Texas
Please remove fast poller, that hasn't been distributed with that plugin in > 3 years I believe.

_________________
CactiEZ CD


Top
 Profile  
 
 Post subject: Re: Thold sends 5 emails for dead host
PostPosted: Fri Nov 12, 2010 5:25 pm 
Offline

Joined: Thu Jun 15, 2006 11:36 am
Posts: 48
Well, you have put it in there, but OK ;-) (this is CactiEZ 0.4 if I am not mistaken)

Do you think that is what is causing it?


Top
 Profile  
 
 Post subject: Re: Thold sends 5 emails for dead host
PostPosted: Fri Nov 12, 2010 5:32 pm 
Offline
Developer

Joined: Thu Apr 07, 2005 3:29 pm
Posts: 2587
Location: B/CS Texas
imro wrote:
Well, you have put it in there, but OK ;-) (this is CactiEZ 0.4 if I am not mistaken)

Do you think that is what is causing it?


Most likely. Since it is re-polling the hosts every time (that was made back in the day when cacti only did 5 minute polls, but people wanted to know if it was down much much sooner than that).

_________________
CactiEZ CD


Top
 Profile  
 
 Post subject: Re: Thold sends 5 emails for dead host
PostPosted: Fri Nov 12, 2010 5:44 pm 
Offline

Joined: Thu Jun 15, 2006 11:36 am
Posts: 48
Well, that was not it.

I have all plugins up to date, including monitor. Therefore the fast_poller.php is not there. So the crontab was not doing anything.


Top
 Profile  
 
 Post subject: Re: Thold sends 5 emails for dead host
PostPosted: Mon Nov 15, 2010 10:47 am 
Offline

Joined: Thu Jun 15, 2006 11:36 am
Posts: 48
Ok, so I was poking around and found few things:

1. As I mentioned this installation is based on an old CactiEZ (turns out 0.2b and maybe even older), therefore most of the data templates are based on 5 minute interval.

2. From cmd.php it looks like hosts are checked for availability only when rrd needs updating. Based on this and 1. this happens only every 5 minutes for most hosts.

3. thold's dead host notification is dependent on status_event_count, which in turn based on 1. and 2. stays the same for 5 polling intervals for most hosts.

How do we fix this? ;-)


Top
 Profile  
 
 Post subject: Re: Thold sends 5 emails for dead host
PostPosted: Sat Jul 16, 2016 8:12 am 
Offline

Joined: Sat Jul 16, 2016 6:43 am
Posts: 3
I have same problem. I received 5 host down notification and 1 up notification. This is happening after i changed polar cycle and cron to 1 minute in cacti and /etc/crontab.
Do you find any solution


Top
 Profile  
 
 Post subject: Re: Thold sends 5 emails for dead host
PostPosted: Sat Jul 16, 2016 8:14 am 
Offline

Joined: Sat Jul 16, 2016 6:43 am
Posts: 3
Howie or any other cacti guru plz suggest any solution.


Top
 Profile  
 
 Post subject: Re: Thold sends 5 emails for dead host
PostPosted: Mon Jul 18, 2016 4:58 am 
Offline

Joined: Sat Jul 16, 2016 6:43 am
Posts: 3
Problem resolved when i switch from cmd.php to spine poller :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 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