E-Mail alert doesn't work
Moderators: Developers, Moderators
-
- Posts: 14
- Joined: Mon Feb 11, 2008 7:47 am
- Location: Switzerland
E-Mail alert doesn't work
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
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
-
- Posts: 14
- Joined: Mon Feb 11, 2008 7:47 am
- Location: Switzerland
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.
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.
-
- Posts: 14
- Joined: Mon Feb 11, 2008 7:47 am
- Location: Switzerland
php.ini
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?
I had check the file but I don't found lines that I think I must change.
can you help me?
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
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.
[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
-
- Posts: 14
- Joined: Mon Feb 11, 2008 7:47 am
- Location: Switzerland
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
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
-
- Posts: 14
- Joined: Mon Feb 11, 2008 7:47 am
- Location: Switzerland
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:
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:
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
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
-
- Posts: 14
- Joined: Mon Feb 11, 2008 7:47 am
- Location: Switzerland
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=
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=
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:
Not sure what i am doing wrong? How do i enable AUTH?[/quote]
Code: Select all
SMTP Host does not appear to support authenication: 533 5.7.1 AUTH command is not enabled.
[/quote]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:Not sure what i am doing wrong? How do i enable AUTH?Code: Select all
SMTP Host does not appear to support authenication: 533 5.7.1 AUTH command is not enabled.
Nevermind, I just fixed it by taking out SNMP username and password.
Who is online
Users browsing this forum: No registered users and 2 guests