Email issues

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
h4rri
Posts: 11
Joined: Thu Aug 15, 2013 8:34 am

Email issues

Post by h4rri »

All,

I have scoured Google et al for an answer to no avail and I'm starting to lose the will to type.

I have a Cacti install that is working without error, I recently installed 'setting' and 'thold' plugins.

Under settings for Mail/DNS I have specified valid SMTP setting and verifies these with a test email, this is delivered without issue.

Under the Notification Lists I have created a user group with valid email addresses, associated this with my test hosts and specified the same email addresses under the Thresholds section of Cacti.

My syslog is showing:

Code: Select all

Aug 15 14:35:04 HP CactiTholdLog[9307]: HOST1 - Ping Host [ping] went above threshold of 0.05 with 0.727 at trigger 1 out of 29 - http://URL/cacti//graph.php?local_graph_id=80&rra_id=all
Aug 15 14:35:04 HP CactiTholdLog[9307]: HOST2 - Ping Host [ping] went above threshold of 0.05 with 2.77 at trigger 1 out of 29 - http://URL/cacti//graph.php?local_graph_id=79&rra_id=all
And my mail.log is showing:

Code: Select all

Aug 15 14:39:01 HP sendmail[9567]: r7FDd1lm009567: from=root, size=38343, class=0, nrcpts=1, msgid=<201308151339.r7FDd1lm009567@domain>, relay=root@localhost
Aug 15 14:39:01 HP sm-mta[9569]: r7FDd1BE009568: to=username, ctladdr=<root@domain> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=98797, dsn=2.0.0, stat=Sent
Which I am not sure if this is a red herring, I have specified a valid mail address and set it to use SMTP with working details.

Why would thold be trying to send emails username@ rather than the specified email address?
h4rri
Posts: 11
Joined: Thu Aug 15, 2013 8:34 am

Re: Email issues

Post by h4rri »

Ok so I have identified that:

Code: Select all

Aug 15 14:39:01 HP sendmail[9567]: r7FDd1lm009567: from=root, size=38343, class=0, nrcpts=1, msgid=<201308151339.r7FDd1lm009567@domain>, relay=root@localhost
Aug 15 14:39:01 HP sm-mta[9569]: r7FDd1BE009568: to=username, ctladdr=<root@domain> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=98797, dsn=2.0.0, stat=Sent
Is a red herring and was an unrelated Cron job causing spurious emails.

I am unable to see a way to debug direct SMTP connections from thold/cacti. I have enabled the highest level of debug and pushed all data to my syslog server with no relevant SMTP output.

Help!
h4rri
Posts: 11
Joined: Thu Aug 15, 2013 8:34 am

Re: Email issues

Post by h4rri »

So the plot thickens:

Code: Select all

08/16/2013 11:05:04 AM - THOLD: Sending email to 'mymemailaddress.net'
08/16/2013 11:05:04 AM - THOLD: Preparing to send email
08/16/2013 11:05:04 AM - THOLD: Alerting is necessary
08/16/2013 11:05:04 AM - THOLD: Threshold HI / Low check breached HI:0.05 LOW: VALUE:0.677
08/16/2013 11:05:04 AM - THOLD: Checking Threshold: DS:ping RRA_ID:88 DATA_ID:245 VALUE:0.677 
But the email never arrives.
nickjail
Posts: 1
Joined: Sun Aug 18, 2013 1:31 pm

Re: Email issues

Post by nickjail »

Hi there! maybe it help a little..

I was able to send and receive test message through GMAIL (PHP Mail and SMTP). But alerts or warnigs doesn't arrive :(
I don't know why this happens but I've lose a day to figure out that I can't do my alert or warning notifications with gmail.

When I tryed to use another mail system (without TLS) I was able to receive alert message only throuth SMTP.

p.s. My gmail debug log from cacti seems similar with yours. triggers work, but gmail "blocks" message.

Code: Select all

08/18/2013 10:48:22 PM - THOLD: Sending email to 'xxxxxxxx@gmail.com'
08/18/2013 10:48:19 PM - THOLD: Preparing to send email
08/18/2013 10:48:19 PM - THOLD: Alerting is necessary
08/18/2013 10:48:19 PM - THOLD: Threshold HI / Low Warning check breached HI:2 LOW: VALUE:3.22
p.p.s. I'm using Cacti 0.8.8a, settings 0.7, Thold 0.5
p.p.p.s.. No testing with sendmail were done, because my system doent't have it installed.
guillo
Posts: 9
Joined: Wed Oct 09, 2013 10:36 am

Re: Email issues

Post by guillo »

I have the same issue to get it to work with gmail, any suggestions how to install the tls authentication?
guillo
Posts: 9
Joined: Wed Oct 09, 2013 10:36 am

Re: Email issues

Post by guillo »

guillo wrote:I have the same issue to get it to work with gmail, any suggestions how to install the tls authentication?
Sorry I tried with ssl://smtp.gmail.com in 465 and it work using SMTP.

Thanks
slakstap
Posts: 3
Joined: Thu Oct 24, 2013 2:06 am

Re: Email issues

Post by slakstap »

Hi there, I'm having exactly the same issue where the Test email is working 100% but any THOLD related emails are MIA.

cacti 0.8.8b
thold 0.5
settings 0.71

I'm also trying to send using a googlle account but I don't think that is a problem because I have another instance of older thold running on a different machine with the same settings and that one is working.

Any ideas?
slakstap
Posts: 3
Joined: Thu Oct 24, 2013 2:06 am

Re: Email issues

Post by slakstap »

This was a gmail spam filtering issue. Fixed now.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests