Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Jul 17, 2019 9:37 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Cacti sends too many e-mails
PostPosted: Fri Mar 01, 2019 2:17 am 
Offline

Joined: Tue Feb 26, 2019 4:06 am
Posts: 10
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 448 times ]
Top
 Profile  
 
 Post subject: Re: Cacti sends too many e-mails
PostPosted: Fri Mar 01, 2019 5:26 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2585
Is that at the exact same time? Does that show in the Cacti log as multiple entries too?

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Cacti sends too many e-mails
PostPosted: Tue Mar 05, 2019 9:38 am 
Offline

Joined: Tue Feb 26, 2019 4:06 am
Posts: 10
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


Top
 Profile  
 
 Post subject: Re: Cacti sends too many e-mails
PostPosted: Tue Mar 05, 2019 10:45 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2585
What are your Cacti and Plugin versions?

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Cacti sends too many e-mails
PostPosted: Wed Mar 06, 2019 2:06 am 
Offline

Joined: Tue Feb 26, 2019 4:06 am
Posts: 10
The plugin version is 1.0.4.
The cacti version is 1.1.10.

Thank
rancini1999


Top
 Profile  
 
 Post subject: Re: Cacti sends too many e-mails
PostPosted: Wed Mar 06, 2019 8:45 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2585
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.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Cacti sends too many e-mails
PostPosted: Tue Mar 19, 2019 6:08 am 
Offline

Joined: Tue Feb 26, 2019 4:06 am
Posts: 10
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 328 times ]
Top
 Profile  
 
 Post subject: Re: Cacti sends too many e-mails
PostPosted: Tue Mar 19, 2019 8:20 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2585
root should likely NOT be the owner/group since most servers have a specific website user (such as apache or www-data).

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Cacti sends too many e-mails
PostPosted: Wed Jul 03, 2019 5:00 am 
Offline

Joined: Tue Feb 26, 2019 4:06 am
Posts: 10
Hello,
updated cacti to the latest version.
the problem persists.

thank you


Top
 Profile  
 
 Post subject: Re: Cacti sends too many e-mails
PostPosted: Wed Jul 03, 2019 10:34 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2585
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.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Cacti sends too many e-mails
PostPosted: Thu Jul 11, 2019 1:48 am 
Offline

Joined: Tue Feb 26, 2019 4:06 am
Posts: 10
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 '[email protected]', Subject: 'xxxxxx xxxxxxx'
09/07/2019 18:02:13 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
09/07/2019 18:03:11 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
09/07/2019 18:04:09 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
09/07/2019 18:05:12 - MAILER Mail Successfully Sent to '[email protected]', 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 '[email protected]', Subject: 'xxxxxx xxxxxxx'
09/07/2019 21:44:12 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
09/07/2019 21:45:13 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
09/07/2019 21:46:13 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
09/07/2019 21:47:10 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
09/07/2019 22:38:15 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 10:01:17 - MAILER Mail Successfully Sent to '[email protected]', 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 '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 12:47:12 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 12:48:12 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 12:49:09 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 12:50:14 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 13:16:15 - MAILER Mail Successfully Sent to '[email protected]', 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 '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 13:35:12 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 13:36:13 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 13:37:11 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 13:38:10 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 13:54:12 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 15:08:16 - MAILER Mail Successfully Sent to '[email protected]', 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 '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 18:12:12 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 18:13:11 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 18:14:08 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 18:15:13 - MAILER Mail Successfully Sent to '[email protected]', 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.xxx[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 22:35:14 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 22:36:14 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 22:37:12 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
10/07/2019 22:38:10 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'
11/07/2019 07:51:15 - MAILER Mail Successfully Sent to '[email protected]', 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 '[email protected]', Subject: 'xxxxxx xxxxxxx'
11/07/2019 08:13:14 - MAILER Mail Successfully Sent to '[email protected]', Subject: 'xxxxxx xxxxxxx'


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 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