Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Apr 23, 2019 9:49 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 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: 8
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 192 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: 2401
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: 8
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: 2401
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: 8
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: 2401
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: 8
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 72 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: 2401
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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours


Who is online

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