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

All times are UTC - 5 hours




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Dead Host Notification - Email Flooding
PostPosted: Sun Feb 20, 2011 7:09 pm 
Offline

Joined: Wed Mar 31, 2010 10:26 pm
Posts: 8
At first downed host notifications were sending one notification per minute per host with re-alerting set to 0 minutes.
This has stopped but now when a host comes up i get literally dozens of mails per host simultaneously with a "returned from DOWN" message.

Cacti Version: 0.8.7g, Plugin Architecture Version: 2.8, Thold 0.4.3 on Debian Lenny


Top
 Profile  
 
 Post subject: Re: Dead Host Notification - Email Flooding
PostPosted: Sun Feb 20, 2011 7:42 pm 
Offline
Cacti User
User avatar

Joined: Tue May 15, 2007 5:24 am
Posts: 85
Location: Romania
it depend how you set the
Host Up/Down Settings from the poller category
if set Failure Count to 0 it possible to happen what you say,i don't make test whit my machine

i have it set to the value 2
and have more device monitored and collect graph from them,more then 3 years

and the re alert it for minimum the poller interval
because if set to 0 will send all the re alert at once
so will have more then one email :)

Hope to help you

_________________
Cacti - 0.8.7h
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
    (tools - v0.3) (Thold - v0.4.6) (Ntop - v0.2) (Discovery - v1.2a) (Monitor - v1.2)


Top
 Profile  
 
 Post subject: Re: Dead Host Notification - Email Flooding
PostPosted: Sun Feb 20, 2011 10:25 pm 
Offline

Joined: Wed Mar 31, 2010 10:26 pm
Posts: 8
Thanks for the reply dragossto.

My Settings are:

Cacti Settings (Poller)
Host Up/Down Settings
Failure Count 3
Recovery Count 3

Cacti Settings (Thresholds)
Default Alerting Options
Default Trigger Count 5
Re-Alerting 0

I thought and hoped that Re-Alerting 0 would disable re-alerting. Even if not, I don't understand why I would be getting multiple alerts that that the host is up!


Top
 Profile  
 
 Post subject: Re: Dead Host Notification - Email Flooding
PostPosted: Mon Feb 21, 2011 3:12 am 
Offline
Cacti User
User avatar

Joined: Tue May 15, 2007 5:24 am
Posts: 85
Location: Romania
how many emails did you receive ?

_________________
Cacti - 0.8.7h
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
    (tools - v0.3) (Thold - v0.4.6) (Ntop - v0.2) (Discovery - v1.2a) (Monitor - v1.2)


Top
 Profile  
 
 Post subject: Re: Dead Host Notification - Email Flooding
PostPosted: Mon Feb 21, 2011 5:35 pm 
Offline

Joined: Wed Mar 31, 2010 10:26 pm
Posts: 8
Hi dragossto, I estimate each host generated between 5 and 25 alerts on its way up. I started deleting them as soon as they got to more than 5 alerts per host but they were being sent for at least an hour after the host was up.


Top
 Profile  
 
 Post subject: Re: Dead Host Notification - Email Flooding
PostPosted: Tue Feb 22, 2011 6:29 am 
Offline
Cacti User
User avatar

Joined: Tue May 15, 2007 5:24 am
Posts: 85
Location: Romania
in Threshold u have another Re-Alert Cycle setting
set that one to never

another idea i don't have , because i use thold only for email notification for dead host

_________________
Cacti - 0.8.7h
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
    (tools - v0.3) (Thold - v0.4.6) (Ntop - v0.2) (Discovery - v1.2a) (Monitor - v1.2)


Top
 Profile  
 
 Post subject: Re: Dead Host Notification - Email Flooding
PostPosted: Wed Feb 23, 2011 6:23 pm 
Offline

Joined: Wed Mar 31, 2010 10:26 pm
Posts: 8
Thanks for the reply dragossto, the only re-alerting setting i could find was the one in

Cacti Settings (Thresholds)
Default Alerting Options
Default Trigger Count 5
Re-Alerting 0

I only have downed host notifications, no additional thresholds set. Just this morning I received 14 UP messages from a single host and 12 from another spanning a period of just over 2/12 hrs for a single event.

Thold doesn't seem to have registered this event - the thold page looks like this

Server 19 1 1 Up 0 xx.xx.xx.30 47.65 68.21 95.67
Router 5 2 2 Up 0 xx.xx.xx.1 37.81 85.09 94.73

And I haven't received any downed host notifications yet.

Are there any other settings or debug I could check? I could only find one re-alerting setting in thold settings, and that is set to 0.


Top
 Profile  
 
 Post subject: Re: Dead Host Notification - Email Flooding
PostPosted: Wed Feb 23, 2011 7:14 pm 
Offline
Cacti User
User avatar

Joined: Tue May 15, 2007 5:24 am
Posts: 85
Location: Romania
ok
it little mistake in code, i understand now your problem
even it down or up you receive email only whit up :)
that it fix in my modif thold from hear,
Email notification update off monitor device

and the re-alerting setting it only for Thresholds
i don't receive extra emails and the code also in not designed to send re alerts for one host go down or up and stay there
for a long time,only receive email when cacti declare that host down or up

only setting that affect that it under polling settings
Host Up/Down Settings
Failure Count 2
Recovery Count 1

_________________
Cacti - 0.8.7h
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
    (tools - v0.3) (Thold - v0.4.6) (Ntop - v0.2) (Discovery - v1.2a) (Monitor - v1.2)


Top
 Profile  
 
 Post subject: Re: Dead Host Notification - Email Flooding
PostPosted: Thu Mar 31, 2011 2:05 am 
Offline

Joined: Thu Mar 31, 2011 12:27 am
Posts: 4
dragossto wrote:
ok
it little mistake in code, i understand now your problem
even it down or up you receive email only whit up :)
that it fix in my modif thold from hear,
http://forums.cacti.net/viewtopic.php?f=17&t=36235


No, it's not that. I have the same problem, but on DOWN notifications.
I receive 3 e-mails everytime a host goes DOWN, on UP it's only one e-mail.
I already use your code from svn, but the problem remains.


Top
 Profile  
 
 Post subject: Re: Dead Host Notification - Email Flooding
PostPosted: Thu Mar 31, 2011 2:29 am 
Offline
Cacti User
User avatar

Joined: Tue May 15, 2007 5:24 am
Posts: 85
Location: Romania
hy , once again

it some thing wrong in the setting , i use
this thold ( modified by me ) for over 400 devices
and i don't have this problem

one question , did u have that ip multiple time in yours devices ?

_________________
Cacti - 0.8.7h
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
    (tools - v0.3) (Thold - v0.4.6) (Ntop - v0.2) (Discovery - v1.2a) (Monitor - v1.2)


Top
 Profile  
 
 Post subject: Re: Dead Host Notification - Email Flooding
PostPosted: Thu Mar 31, 2011 8:50 am 
Offline

Joined: Thu Mar 31, 2011 12:27 am
Posts: 4
dragossto wrote:
hy , once again

it some thing wrong in the setting , i use
this thold ( modified by me ) for over 400 devices
and i don't have this problem

one question , did u have that ip multiple time in yours devices ?


Well, I use cacti on +500 devices too.
And each time a host goes down I get 3 e-mails confirming downtime of the same host.
Can you point me to the code where the mails are generated? I 'll take a look.
That "3" must come from somewhere....
PS 1 device = 1 unique ip, so it's not that.

Also, I got this option Default Trigger Count set to 7 and I poll every 5 minutes, so expect an e-mail after 30minutes of down host, I get it after 10 minutes :-(
There sure is somethign wrong, but what?
EDIT: Ok, about the last part, I see it uses the setting on the poller settings page, so that's ok. But still no explanation for the multiple e-mails...

kind regards


Top
 Profile  
 
 Post subject: Re: Dead Host Notification - Email Flooding
PostPosted: Fri Apr 01, 2011 4:01 am 
Offline
Cacti User
User avatar

Joined: Tue May 15, 2007 5:24 am
Posts: 85
Location: Romania
Hello , sorry for the delay
for dead host notification count the settings from cacti
under poller settings

Host Up/Down Settings
Failure Count

to me the Failure Count it 2

and the polling interval have to be same value like in your crond (schedule pollings)

the setting for alerting in the thold setting plugin it only for Thresholds
the only one ho have influent over email body and subject it Emailing Options,but they do not have influent
over the number of emails sent , it a little strange for me , and i don't understand why
you receive 3 emails for dead hosts ,

i will try to make some test whit some tresholds make for some devices to see what happen.
if i receive more emails for dead hosts , but in my opinion that should not happen ,because the part whit email for dead host and the one whit trigger for a Threshold they are different functions.

hope to figure out why happen to you.

_________________
Cacti - 0.8.7h
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
    (tools - v0.3) (Thold - v0.4.6) (Ntop - v0.2) (Discovery - v1.2a) (Monitor - v1.2)


Top
 Profile  
 
 Post subject: Re: Dead Host Notification - Email Flooding
PostPosted: Sat Apr 02, 2011 1:56 am 
Offline

Joined: Thu Mar 31, 2011 12:27 am
Posts: 4
Yes, I don't understand too.
I have no other tresholds set, only host UP/DOWN notification is activated.


Top
 Profile  
 
 Post subject: Re: Dead Host Notification - Email Flooding
PostPosted: Tue Aug 28, 2012 12:08 pm 
Offline
Cacti User

Joined: Thu Jan 07, 2010 10:33 am
Posts: 119
Has anyone found the solution to this issue yet? I have the same problem. I get one down and multiple up on "some" hosts not all.


Top
 Profile  
 
 Post subject: Re: Dead Host Notification - Email Flooding
PostPosted: Thu Jan 03, 2013 12:21 am 
Offline

Joined: Sun Oct 28, 2012 2:56 pm
Posts: 17
Hi everyone...

Has any of you been able to solve this issue? I am monitoring about 60 devices ...polling every minute. I think I encountered this problem after starting to use the PHP mail function to send the emails. Before I was using the SMTP settings on Cacti. (<<I am not 100% sure about this yet).

Please let me know what mail function that you are using and if you've already found a solution please share.

Thanks.

D.


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] 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