how to configure SMS in Zabbix using AWS SNS2 min read
Hi All, this document deals with how to configure SMS in Zabbix using AWS SNS.
Zabbix is an open source monitoring software tool for diverse IT components, including networks, servers, virtual machines, and cloud services. Zabbix provides monitoring metrics, among others network utilization, CPU load and disk space consumption
Its required to have a monitoring system to monitor your infrastructure an including server, application, network device. Zabbix does this with an alerting system including emails and SMS. Since we have cloud service available for sending SMS here we are going to use AWS SNS ( simple notification service) for sending SMS rather than using GSM modem.
You can approach GSM modem when you have your monitoring system in On-premises, where is use cloud services when you deployed your monitoring system in the cloud.
So here I will guide you how to set up SMS alerts in Zabbix using AWS SNS.
prerequisites
1. AWS IAM user with access and a secret key which have access to SNS for sending SMS.
2. Installed Zabbix Server, if not installed check this link.
Configuration
login to Zabbix server via SSH and create a sns.sh script in location /usr/lib/zabbix/alertscripts
vi sns.sh
Add the following lines in the script, replace your access key, secret key, and region.
Apply execution permission to the file
chmod +x sns.sh
Now login to WEB UI of Zabbix server.
Go to Administration – Media types
Create a Media Type
Then Goto User- select user – add media
Make sure that AWS SNS support your Country.
that’s it now you have completed SMS alert configuration.
The user will receive the alerts via SMS in there any issues are triggered.
He is a Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!
Hi Prabhin, thanks for this tutorial. I’ve followed the steps but when i try to test the SNS service i get this msg
usr/lib/zabbix/alertscripts/sns.sh: 2: /usr/lib/zabbix/alertscripts/sns.sh: /bin/aws: not found
install awscli
Thanks for your swift response appreciated.. I’ve installed aws cli on ubuntu 18.04. after that i tried to run the SNS test again, however same error
root@ip-10-0-1-154:~# aws –version
aws-cli/1.14.44 Python/3.6.9 Linux/4.15.0-1057-aws botocore/1.8.48
root@ip-10-0-1-154:~#