Emails not sent Threshold!

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
256mxr
Posts: 6
Joined: Wed Oct 27, 2010 11:21 am

Emails not sent Threshold!

Post by 256mxr »

Hi!

I am running cacti 0.87g with Plugin Arch 2.8 and installed plugins: thold v0.42 and settings 0.5.

I want to send an email alert when a threshold is triggered. Thing is this does not work. When I run Email Test it works. The threshold appers as triggered in the Thresholds Menu.

In Cacti Log this is what I get:

12/15/2010 03:00:05 PM - THOLD: Threshold Breached ID: 1 DataTemplate: SNMP - Generic OID Template DataSource: snmp_oid Type: High/Low Enabled: on Current: 216 High: 226 Low: 223 Trigger: 5 Minutes SentTo:

There is no SentTo address!!!

In Mail/DNS tab I have the settings:

Test Email: the destination address
Mail Services: PHP MAIL
SMTP Hostname; localhost
SMTP Port: 25
Primary DNS: IP Primary DNS

Can someone help to debug this???

Thanks
256mxr
Posts: 6
Joined: Wed Oct 27, 2010 11:21 am

Re: Emails not sent Threshold!

Post by 256mxr »

Can someone help on setting this up???
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Emails not sent Threshold!

Post by cigamit »

Did you set an address to send it to in the threshold?
jdawg
Posts: 2
Joined: Fri Jan 07, 2011 3:19 pm

Re: Emails not sent Threshold!

Post by jdawg »

Hello - I have been pulling my hair out trying to get Threshold emails to work.

I am running Centos 5.5 with cacti 0.87g with Plugin Arch 2.8 and installed plugins: thold v0.43 and settings 0.5. I can successfully send test emails. However, email threshold alerts do not work.

The strange thing is that if I leave both the 'notify accounts' email AND 'extra alert email' accounts boxes empty, the thresholds will trigger and the Cacti log file will post correct entries '01/07/2011 12:11:00 PM - THOLD: Threshold Breached ID.......'

However, when I enter a 'notify account' and/or extra alert email address, there is no entry in the Cacti log and alert and thresholds no longer trigger.

There is one other thing - I do get an email when a dead host comes back up, but not when it goes down.

Can someone help? Thanks in advance.
ssletner
Posts: 24
Joined: Thu Oct 14, 2010 10:41 pm

Re: Emails not sent Threshold!

Post by ssletner »

I have the same exact issues. Anyone find a fix for this yet?
mirage
Posts: 24
Joined: Fri Feb 18, 2011 7:20 am

Re: Emails not sent Threshold!

Post by mirage »

Бляяяяяя такая же проблема.


Mmmm I have the same problem. Anybody? how can I solve this problem?
User avatar
dragossto
Cacti User
Posts: 86
Joined: Tue May 15, 2007 5:24 am
Location: Romania
Contact:

Re: Emails not sent Threshold!

Post by dragossto »

i make test , it a issue ,because when host go down
it send email whit host go up,and only receive emails whit go up , end never go down :)
i fix this in my post : http://forums.cacti.net/viewtopic.php?f=17&t=36235

Whit the emails for Thresholds
for each Thresholds you have to set the emails in the box whit Alert E-Mail,

for the moment i don't change the code , to accept emails configured in the setting
i make some test ,but i don't figure very well whit the settings for re-alerts
i don't make very much tests , but when thold set to Trigger i receive the email
also whit the graph

i have this extension for php
PHP Extensions - Core, date, ereg, libxml, pcre, sqlite3, dom, fileinfo, filter, hash, SPL, json, mcrypt, session, bz2, posix, Reflection, standard, SimpleXML, sockets, imap, sysvmsg, sysvsem, sysvshm, xml, xmlreader, xmlwriter, apache2handler, bcmath, openssl, calendar, ctype, curl, dba, dbase, enchant, exif, ftp, gd, gettext, gmp, iconv, ldap, mbstring, mysql, mysqli, zlib, PDO, pdo_mysql, pdo_sqlite, pspell, rrd, shmop, snmp, soap, SQLite, tokenizer, wddx, xsl, zip, Phar
Cacti - 0.8.7h
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
  • (tools - v0.3) (Thold - v0.4.6) (Ntop - v0.2) (Discovery - v1.2a) (Monitor - v1.2)
robdeep
Posts: 3
Joined: Thu Mar 10, 2011 4:45 pm

Re: Emails not sent Threshold!

Post by robdeep »

I'm also having this problem. Did anyone find a solution?
User avatar
dragossto
Cacti User
Posts: 86
Joined: Tue May 15, 2007 5:24 am
Location: Romania
Contact:

Re: Emails not sent Threshold!

Post by dragossto »

It no issue, the solution it is in your config
first step it to check
the test email work

under settings u find Mail / DNS , after make the configuration check if the
Send a Test Email
work

if this one work , check

under settings also u find Thresholds
where u have email options

if the settings don't look like this one try
latest thold from svn
or the one whit few extra options
from hear http://forums.cacti.net/viewtopic.php?f=17&t=36235

good luck
Attachments
thold email settings
thold email settings
thold email settings.JPG (188.62 KiB) Viewed 7236 times
Cacti - 0.8.7h
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
  • (tools - v0.3) (Thold - v0.4.6) (Ntop - v0.2) (Discovery - v1.2a) (Monitor - v1.2)
rmcdonald
Posts: 42
Joined: Wed Dec 22, 2010 4:03 pm
Location: Minnesota

Re: Emails not sent Threshold!

Post by rmcdonald »

I tried all the above mentioned steps and I can't get thresholds to trigger. If I downgrad all the way back to .4.2 alrets e-mails are sent. This is driving me crazy any help would be appericaited.

Thanks,
cacti 0.87g
Thold .4.4 (41)
PIA 2.9
settings .7
gocococ
Posts: 1
Joined: Mon Jan 16, 2012 11:11 pm

Re: Emails not sent Threshold!

Post by gocococ »

News for all with the same issue
0.8.7g
PIA 2.8
THOLD 0.4.3
I spent very much time to check, double check, compare between old box and new migration box.
Finally, i found out the problem is PHP EXTENTIONS.
So you must be install the list of php extentions as below will be fixed
With Centos, that's enough
php-cli php-snmp php-ldap php-gd php-pdo php-mcrypt php-common php-mysql php-mbstring
Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests