Cacti sends too many e-mails

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
rancini1999
Posts: 12
Joined: Tue Feb 26, 2019 4:06 am

Cacti sends too many e-mails

Post by rancini1999 »

Cacti sends 3 or more e-mails for both host down and host up.
I would like you to send an e-mail for both situations.
My settings are as follows.
How should I set them up?

Thank you
Attachments
FORUM.png
FORUM.png (165.91 KiB) Viewed 6537 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti sends too many e-mails

Post by netniV »

Is that at the exact same time? Does that show in the Cacti log as multiple entries too?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
rancini1999
Posts: 12
Joined: Tue Feb 26, 2019 4:06 am

Re: Cacti sends too many e-mails

Post by rancini1999 »

Hello, thanks for your reply.
To verify the log, I added a device with the wrong IP address (10.255.0.340).
Making a tail -f of cacti.log I find this:

05/03/2019 12:24:17 - SYSTEM STATS: Time:17.2804 Method:cmd.php Processes:1 Threads:N/A Hosts:134 HostsPerProcess:134 DataSources:158 RRDsProcessed:85
05/03/2019 12:25:00 - CMDPHP WARNING: ICMP Ping Error: gethostbyname failed for 10.255.0.340
05/03/2019 12:25:18 - SYSTEM STATS: Time:18.2780 Method:cmd.php Processes:1 Threads:N/A Hosts:134 HostsPerProcess:134 DataSources:158 RRDsProcessed:94
05/03/2019 12:26:00 - CMDPHP WARNING: ICMP Ping Error: gethostbyname failed for 10.255.0.340
05/03/2019 12:26:00 - CMDPHP Device[4] ERROR: HOST EVENT: Device is DOWN Message: SNMP not performed due to setting or ping result., ICMP Ping timed out
05/03/2019 12:26:01 - POLLER: Poller[1] WARNING: There are '1' detected as overrunning a polling process, please investigate
05/03/2019 12:26:02 - CMDPHP WARNING: ICMP Ping Error: gethostbyname failed for 10.255.0.340

How can I solve?
Thanks
rancini1999
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti sends too many e-mails

Post by netniV »

What are your Cacti and Plugin versions?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
rancini1999
Posts: 12
Joined: Tue Feb 26, 2019 4:06 am

Re: Cacti sends too many e-mails

Post by rancini1999 »

The plugin version is 1.0.4.
The cacti version is 1.1.10.

Thank
rancini1999
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti sends too many e-mails

Post by netniV »

OK, so that may have been resolved in later versions. You are quite a way behind so check through the CHANGELOG and README.md's for both core and plugin to see if your issue was resolved there. If you can't seem to find it, I would recommend upgrading and seeing if the issue goes away. If it does, great, if not then at least the code is current so we have change to try and replicate the issue.

Too much has changed to start that process with your current versions. If your lucky, others may be able to offer some assistance if they have experienced the same issue on the same version and resolved it.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
rancini1999
Posts: 12
Joined: Tue Feb 26, 2019 4:06 am

Re: Cacti sends too many e-mails

Post by rancini1999 »

Hi, I tried to update Cacti
giving all root permissions

drwxrwxrwx 4 root root 4096 feb 24 15:52 .
drwxrwxr-x 18 azazzaro 1004 4096 mar 19 11:07 ..
-rwxrwxrwx 1 root root 2580 feb 24 15:52 background.php
-rwxrwxrwx 1 root root 2451 feb 24 15:52 cli_check.php
-rwxrwxrwx 1 root root 1835 feb 24 15:52 cli_test.php
-rwxrwxrwx 1 root root 7730 feb 24 15:52 colors.csv
-rwxrwxrwx 1 root root 24866 feb 24 15:52 functions.php
-rwxrwxrwx 1 root root 1610 feb 24 15:52 index.php
-rwxrwxrwx 1 root root 4960 feb 24 15:52 install.css
-rwxrwxrwx 1 root root 22714 feb 24 15:52 install.js
-rwxrwxrwx 1 root root 5395 feb 24 15:52 install.php
-rwxrwxrwx 1 root root 3181 feb 24 15:52 step_json.php
drwxrwxrwx 2 root root 4096 feb 24 15:52 templates
drwxrwxrwx 2 root root 4096 feb 24 15:52 upgrades


however, accessing the web interface gives me this error.
how should I proceed to resolve the problem?

Thank
Rancini1999
Attachments
Cacti.PNG
Cacti.PNG (7.24 KiB) Viewed 6417 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti sends too many e-mails

Post by netniV »

root should likely NOT be the owner/group since most servers have a specific website user (such as apache or www-data).
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
rancini1999
Posts: 12
Joined: Tue Feb 26, 2019 4:06 am

Re: Cacti sends too many e-mails

Post by rancini1999 »

Hello,
updated cacti to the latest version.
the problem persists.

thank you
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti sends too many e-mails

Post by netniV »

When these emails are sent how many entries appear in the cacti logs? If only one, this suggests that it is something outside of cacti.. I would check if a group address is being used and if any of the addresses within that receiving group also have forwarding set which can lead to multiple copies landing in one persons inbox.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
rancini1999
Posts: 12
Joined: Tue Feb 26, 2019 4:06 am

Re: Cacti sends too many e-mails

Post by rancini1999 »

Hello,
no, write an entry for each time you send a notification email.
The following are the test log files.

09/07/2019 18:01:15 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
09/07/2019 18:02:13 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
09/07/2019 18:03:11 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
09/07/2019 18:04:09 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
09/07/2019 18:05:12 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
09/07/2019 21:43:10 - CMDPHP Device[103] ERROR: HOST EVENT: Device is DOWN Message: SNMP not performed due to setting or ping result., ICMP ping Timed out
09/07/2019 21:43:14 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
09/07/2019 21:44:12 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
09/07/2019 21:45:13 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
09/07/2019 21:46:13 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
09/07/2019 21:47:10 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
09/07/2019 22:38:15 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 10:01:17 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 12:46:07 - CMDPHP Device[73] ERROR: HOST EVENT: Device is DOWN Message: SNMP not performed due to setting or ping result., ICMP ping Timed out
10/07/2019 12:46:16 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 12:47:12 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 12:48:12 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 12:49:09 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 12:50:14 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 13:16:15 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 13:34:06 - CMDPHP Device[61] ERROR: HOST EVENT: Device is DOWN Message: SNMP not performed due to setting or ping result., ICMP ping Timed out
10/07/2019 13:34:14 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 13:35:12 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 13:36:13 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 13:37:11 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 13:38:10 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 13:54:12 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 15:08:16 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 18:11:04 - CMDPHP Device[32] ERROR: HOST EVENT: Device is DOWN Message: SNMP not performed due to setting or ping result., ICMP ping Timed out
10/07/2019 18:11:16 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 18:12:12 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 18:13:11 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 18:14:08 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 18:15:13 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 22:34:04 - CMDPHP Device[44] ERROR: HOST EVENT: Device is DOWN Message: SNMP not performed due to setting or ping result., ICMP ping Timed out
10/07/2019 22:34:13 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 22:35:14 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 22:36:14 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 22:37:12 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
10/07/2019 22:38:10 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
11/07/2019 07:51:15 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
11/07/2019 08:12:02 - CMDPHP Device[2] ERROR: HOST EVENT: Device is DOWN Message: Device did not respond to SNMP
11/07/2019 08:12:16 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
11/07/2019 08:13:14 - MAILER Mail Successfully Sent to 'xxxxxxx.xxxxxxx@xxxxxxxxxxxxxx.xx', Subject: 'xxxxxx xxxxxxx'
rancini1999
Posts: 12
Joined: Tue Feb 26, 2019 4:06 am

Re: Cacti sends too many e-mails

Post by rancini1999 »

Hello,
I am still waiting for a solution to the problem.
At your disposal for any verification.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests