E-Mail alert doesn't work

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
p.schweingruber
Posts: 14
Joined: Mon Feb 11, 2008 7:47 am
Location: Switzerland

E-Mail alert doesn't work

Post by p.schweingruber »

Hi guys
I have a big problem. I had to config cacti to alert me (e-mail) when a Problem appears.
Now I have config complet install cacti (Version 0.8.7b) under windows server 2003 and all works excepting the alert per mail.

I have tried with SNMP and the PHP Mail() Function. I make this settings under the <setting> tab under Mail /DNS. But both function:
SNMP and PHP Mail not work.
can somone help me to configure the e-mail alert option?

Sorry for my bad english and thanks for any help
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Have a look in your php.ini file to ensure that you have configured the SMTP settings correctly. If you go the SETTINGS plugin, and use the TEST email feature there, what is the output ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
p.schweingruber
Posts: 14
Joined: Mon Feb 11, 2008 7:47 am
Location: Switzerland

Post by p.schweingruber »

thank you for your answer

the output ist this:
Checking Configuration...
Creating Message Text...

This is a test message generated from Cacti. This message was sent to test the configuration of your Mail Settings.

Your email settings are currently set as follows

Method: PHP's Mailer Class

Sending Message...

ERROR: Unable to send email with php mail function, check your system logs
Unable to send email with php mail function, check your system logs

under snmp option I had the right SNMP Hostname (the exchange server) and the right snmp port.
p.schweingruber
Posts: 14
Joined: Mon Feb 11, 2008 7:47 am
Location: Switzerland

php.ini

Post by p.schweingruber »

I don't know what I must change in my php.ini file.
I had check the file but I don't found lines that I think I must change.
can you help me?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

In php.ini, look for the lines:


[mail function]
; For Win32 only.
SMTP = xxx.xxx.xxx.xxx (your ip address here)

; For Win32 only.
sendmail_from = alerts@cacti.local (example)

Edit the above so that it reflects your setup, save, and reboot server.

Hope this helps.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
p.schweingruber
Posts: 14
Joined: Mon Feb 11, 2008 7:47 am
Location: Switzerland

Post by p.schweingruber »

thank you for your answer
I had make this change in my php.ini file:

[mail function]
; For Win32 only.
SMTP = 172.31.31.113 ; for Win32 only --> This is the localhost not the enxchange. I see this right?
smtp_port = 25
sendmail_from= erplap@xxxxxxxxxx.ch ; for Win32 only

; For Win32 only.
sendmail_from = erplap@xxxxxxxxxx.ch

after this I had save the php.ini file and restart the server.
Then I have trie the e-mail alert function again.
But I have the same error:

Your email settings are currently set as follows

Method: PHP's Mailer Class

Sending Message...

ERROR: Unable to send email with php mail function, check your system logs
Unable to send email with php mail function, check your system logs

thanks for any help
p.schweingruber
Posts: 14
Joined: Mon Feb 11, 2008 7:47 am
Location: Switzerland

Post by p.schweingruber »

you think its better when I use the Mail Services as SNMP than PHP Mail function?
When I go to <Settings> <Mail / DNS>
Mail Service and choose SNMP I had folowing error:

Checking Configuration...
Method: SMTP
Creating Message Text...


This is a test message generated from Cacti. This message was sent to test the configuration of your Mail Settings.

Your email settings are currently set as follows

Method: SMTP
Host: 172.31.31.150
Port: 25
Authenication: false

Sending Message...

ERROR: Error returned by SMTP host:
Error returned by SMTP host:
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

You need to fill in the SNMP for phpmail and SMTP itself in php.ini. Did you restart the server after this change (or at least an iisreset if running IIS, or restart Apache services if this applies), and does your mail server allow relay connections from your CACTI host ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
p.schweingruber
Posts: 14
Joined: Mon Feb 11, 2008 7:47 am
Location: Switzerland

Post by p.schweingruber »

Yes I had restart my server (than the IIS restarts automatic)

The next step:
I must contact our Network Administrator and ask him for allow relay connections from my CACTI host.

I thank you very much for your help. I know my english is very basic and not easy to understand.

I had a appeal to you. I think you know a lot about cacti.
Can you take a little look to a other post of me in this forum when you have the time?
http://forums.cacti.net/viewtopic.php?t ... highlight=
cjblade54
Cacti User
Posts: 58
Joined: Tue Mar 04, 2008 10:08 am

Post by cjblade54 »

It seems like my email problem is a bit different. I changed the php.ini config file and rebooted as suggested and it still gave me the error message as following:

Code: Select all

SMTP Host does not appear to support authenication: 533 5.7.1 AUTH command is not enabled. 
Not sure what i am doing wrong? How do i enable AUTH?[/quote]
cjblade54
Cacti User
Posts: 58
Joined: Tue Mar 04, 2008 10:08 am

Post by cjblade54 »

cjblade54 wrote:It seems like my email problem is a bit different. I changed the php.ini config file and rebooted as suggested and it still gave me the error message as following:

Code: Select all

SMTP Host does not appear to support authenication: 533 5.7.1 AUTH command is not enabled. 
Not sure what i am doing wrong? How do i enable AUTH?
[/quote]

Nevermind, I just fixed it by taking out SNMP username and password.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests