I have two servers, one is Zabbix, and the other to use as sending Script's.
Server one - Zabbix Server installed
Server two - Raspberry (Debian installed with Huawei device connected to perform sending sms GSM). Apt gammu installed.
I have e-mail script, working.
I made an ssh connection without a password between the two, and created the following script at /etc/zabbix/alertscripts:
#! / bin / bash
ssh [email protected] "echo "$1" "$2" | gammu sendsms TEXT "$3"";
Manually works.
When I drop a VM tests, Zabbix alarm and send email and sms, email is received, the sms not.
I performed the following test:
#! / bin / bash
ssh [email protected] "echo "$1" "$2" "$3" >> test.txt"
Manually works.
But does not receive zabbix variables
What to do?
Server one - Zabbix Server installed
Server two - Raspberry (Debian installed with Huawei device connected to perform sending sms GSM). Apt gammu installed.
I have e-mail script, working.
I made an ssh connection without a password between the two, and created the following script at /etc/zabbix/alertscripts:
#! / bin / bash
ssh [email protected] "echo "$1" "$2" | gammu sendsms TEXT "$3"";
Manually works.
When I drop a VM tests, Zabbix alarm and send email and sms, email is received, the sms not.
I performed the following test:
#! / bin / bash
ssh [email protected] "echo "$1" "$2" "$3" >> test.txt"
Manually works.
But does not receive zabbix variables
What to do?
Comment