Hi
I have Cacti Version 0.8.8b running on CentOS 7.
Plugins:
Autom8 - 0.35
Monitor - 1.3
Fix64bit - 0.4
Settings 0.71
Thold 0.5
This is a brand new server and install as of Jan 15 2016.
At first I was getting one email for host down and one email for host returned from down.
Now, a day later, I get 2 emails for both down and up.
I've google and found a few posts but nothing that I can use.
Has anybody had this and solved it.
My old Cacti server always send two host down and one up email. I couldn't fix that either. But this is a later version now and a new OS.
Thanks
Duplicate emails for Host down and Host up
Moderators: Developers, Moderators
-
- Posts: 6
- Joined: Tue May 15, 2012 12:18 pm
-
- Posts: 6
- Joined: Tue May 15, 2012 12:18 pm
Re: Duplicate emails for Host down and Host up
Also looking in /var/log/maillog I do not see any entries for the mail it sends.
Which log shows those host up/down emails?
thanks
Which log shows those host up/down emails?
thanks
-
- Posts: 6
- Joined: Tue May 15, 2012 12:18 pm
Re: Duplicate emails for Host down and Host up
Solved.
I have found a few other posts that include adding tables to the database, changing the code in the thold poller script, increasing the size of a field and so on. I tried all those (taking a snapshot of my VM so that I could revert to the original).
While trying to figure this out I was looking at the cacti log, not knowing even what to look for. I did see a bunch of these:
ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output
I thought this was some other issue that I would address later. But I eventually looked up this error and found that it can be caused by having 2 pollers running. I had suspected 2 pollers but couldn't find the 2nd.
So it ended up that the same command I had calling the poller script every 5 minutes, in the root crontab, was also in /etc/cron.d/cacti
So I commented out the line in /etc/cron.d/cacti and now I get one email per polling cycle when host is down, and one email when host returns from down.
I have found a few other posts that include adding tables to the database, changing the code in the thold poller script, increasing the size of a field and so on. I tried all those (taking a snapshot of my VM so that I could revert to the original).
While trying to figure this out I was looking at the cacti log, not knowing even what to look for. I did see a bunch of these:
ERROR: A DB Exec Failed!, Error:'1062', SQL:"insert into poller_output
I thought this was some other issue that I would address later. But I eventually looked up this error and found that it can be caused by having 2 pollers running. I had suspected 2 pollers but couldn't find the 2nd.
So it ended up that the same command I had calling the poller script every 5 minutes, in the root crontab, was also in /etc/cron.d/cacti
So I commented out the line in /etc/cron.d/cacti and now I get one email per polling cycle when host is down, and one email when host returns from down.
Who is online
Users browsing this forum: No registered users and 1 guest