Cannot received email when reach threshold!!

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
trungmv
Cacti User
Posts: 87
Joined: Wed Feb 15, 2012 10:32 pm

Cannot received email when reach threshold!!

Post by trungmv »

Hi all,

I setup threshold and fine, but has trouble with receives email when reach a threshold.
Though, can received email when testing.
This is my setting threshold:
Image

In Thold Tab:
Image

Log in cacti.log:
Image

Notification List:
Image

My threshold under Setting:
Image

Some one can help me to solved this issue?
I take long time to find the caused but not yet,
Any replay is appreciated

Regards,
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Cannot received email when reach threshold!!

Post by noname »

THOLD: Sending email to 'xxxx@xxxx.xxxx'
Thold plugin says: "I sent an alert mail".

1) Remove leading '@' of "@png2jpeg(...);" in thold_functions.php, then make sure whether there is any error in Cacti log, SMTP log, and PHP error log.
(Of course you need to make sure whether those logging is working)

2) If you enabled "Send Alerts as Text", can you get an alert mail?
trungmv
Cacti User
Posts: 87
Joined: Wed Feb 15, 2012 10:32 pm

Re: Cannot received email when reach threshold!!

Post by trungmv »

Hi,

I tried both of 2 case above, but not yet.
This is my Mail/DNS under Setting:
Image

When i checked log on server and saw:

Code: Select all

q2G1ASmH002576: to=<my email address>, ctladdr=<cactiuser@machine.domain> (502/502), delay=00:00:05, xdelay=00:00:01, mailer=esmtp, pri=150918, relay=mail.servername [IP address], dsn=2.0.0, stat=Sent (Message accepted for delivery) 
When i add extra Emails box with other mail domain(eg: gmail), i can received email when reach threshold.
Do i need setup a smtp server or configure smtp server in somewhere in Threshold file?
trungmv
Cacti User
Posts: 87
Joined: Wed Feb 15, 2012 10:32 pm

Re: Cannot received email when reach threshold!!

Post by trungmv »

This is my setting in php.ini:

Code: Select all

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
;date.timezone =

[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.).  Turning it off is a good idea performance-wise.  In
; runtime, you can define these variables by calling define_syslog_variables().
define_syslog_variables  = Off

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
Do i need changing some in here??
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Cannot received email when reach threshold!!

Post by noname »

trungmv wrote: When i checked log on server and saw:

Code: Select all

q2G1ASmH002576: to=<my email address>, ctladdr=<cactiuser@machine.domain> (502/502), delay=00:00:05, xdelay=00:00:01, mailer=esmtp, pri=150918, relay=mail.servername [IP address], dsn=2.0.0, stat=Sent (Message accepted for delivery) 
Sendmail says: "I sent an alert mail".
trungmv wrote:When i add extra Emails box with other mail domain(eg: gmail), i can received email when reach threshold.
Do i need setup a smtp server or configure smtp server in somewhere in Threshold file?
Not sure.
As far as one mail server (gmail) can receive alert mail, Cacti server sent the mail successfully.
Please check the server's log that the mail was relayed to.
trungmv
Cacti User
Posts: 87
Joined: Wed Feb 15, 2012 10:32 pm

Re: Cannot received email when reach threshold!!

Post by trungmv »

Hi,

I am not own our server email.
So, what happen if i using Sendmail or SMTP instead of PHP mail function??
Could you guide me how to setting up one of them??

Thank you very much!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest