Thanks for you help!
Its now running with zabbix and generating sms alters!
The problem was really a firewall rule which was blocking the traffic on port 25 :/
As far as I can see, the settings you use are correct. It is a pity that Zabbix does not have an option to test the settings of the SMTP media type, that would make it a lot easier to check what goes wrong.
Can you telnet the Diafaan SMTP server from the Zabbix server (with the command: telnet IP_address_from_diafaan_server 25) and get a response from the Diafaan SMTP server? That will rule out that the Diafaan SMTP server is not set up correctly or that port 25 is blocked by a firewall.
I think I got it now how it works, but I can´t still receive an sms from diafaan sms server.
Here are my Zabbix Media config:
SMTP server: "IP_address_from_diafaan_server"
SMTP helo: "localhost"
SMTP email: "+43mobile_number_from_3g_umts_modem@IP_address_from_diafaan_server"
And the user config in Zabbix:
Media Type: Diafaan SMS
Sent to: +firstname.lastname@example.org
I can also ping from the zabbix server the diafaan sms server, so there is no firewall blocking something
No, that probably won't work. Unless the SMTP server of Diafaan SMS Server is exposed to the Internet but I would not recommend that for this application.
I have set up a quick Zabbix appliance to check how this program handles email and there are a couple of things you need to do in Zabbix to send email to a specific SMTP server.
The first thing is to add a new "Diafaan SMS" media type (select Administration-Media types-Create media type). Here you set the type to Email, the SMTP server to the host name or IP address where Diafaan SMS Server is installed and SMTP email to +43123456789@diafaan_server_ip_address.
Then you can add a new media to a user, select type "Diafaan SMS" and set the "Send to:" field to the proper email address that contains the GSM number, e.g.: +email@example.com.
You can add this user to the action of a trigger and if all is set up correctly, it will send an email straight to the SMTP server of Diafaan SMS Server with the right GSM number.
Thanks for you quick reply!
So if I´m correct...
I add a new user in Zabbix with the email address: +43123456789@diafaan_server_ip_address:25 (is the port required?)
Then I assign the user in Zabbix to an alert group which is receiving server alerts via email.
But how can the SMS gateway forward the alert email from Zabbix to the mobile number as a sms?
Because I have no where entered the mobile number on the diafaan server Email Connector proberties
The SMTP server in Diafaan SMS Server expects emails that are sent to an email address with the format firstname.lastname@example.org or number@hostip. The domain part of the email address is ignored and the number part is the number of the mobile phone.
In Zabbix you can set the To Address of the email to, for example, +43650111111@diafaanhost (or p43650111111@diafaanhost, if there is a problem with the '+' character in the email address).
I have configured the same on my internal monitoring system (Zabbix) as you described.
I have added a new SMS user with the email address from the IP address from the diafaan server with port 25.
But where can I configure in diafaan, to which sms number the email message should be forwarded?
The built in SMTP is running on the diafaan server but I have only the option to say where the sms should be sent to, when I choose the POP option in "email to sms" chart.
Could you please explain to me how it should work?
In your alerting system you can specify an email host (the server were the mail is delivered). If you only want to use the alerting system to send SMS messages you can enter the IP number of the host running Diafaan SMS Server with port number 25 and all email will be sent to Diafaan SMS Server. Some alerting systems can specify multiple email servers, if that is the case you can use it to send both email and SMS messages through different email server.
If you want to use your alerting system to send both email and SMS messages it is more complicated, in that case you need to specify an email server that has the capacity to divert some email to an alternative SMTP server (Diafaan SMS Server). This only works well when you have full control over the email server and when it runs on your local network.
Diafaan SMS Server expects email with an email address like +email@example.com. The domain part (@host.com) is ignored, only the number part is used to send the message.
Essentially I would like to pass my Email Alerts to the Diafaan server so they are sent via SMS to a mobile phone. Currently testing this solution with the Demo software (latest)
For testing I have configured the server on my laptop and the GSM modem is all set and active.
Where I am confused is what email address do I add to my internal alerting system so the email will reach the Diaafaan SMS server?
I currently have the SMTP connector running so I can send email to SMS. I do not need to receive SMS.
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 405
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 641