Plugin for Zenoss to send SMS Alerts with SMSEagle device (http://www.smseagle.eu)
Script source: https://bitbucket.org/proximus/smseagle-zenoss/
Published on BSD License
-
Create a new user for this script in SMSEagle.
-
Open the Access to API menu, enable APIv2 and generate an access token.
-
In the same menu, assign the right permissions (depending on what type of message/call you want to send)
-
Download latest version of the script zenoss_smseagle.py from: https://bitbucket.org/proximus/smseagle-zenoss
-
Edit following lines in the script:
SMSEAGLE_TOKEN = "123abc456def"
SMSEAGLE_TYPE = "sms"
SMSEAGLE_IP = "192.168.0.101"
Optionally, change the parameters required for TTS calls:
SMSEAGLE_DURATION = 10
SMSEAGLE_VOICE_ID = 1
-
Save the script to the location: $ZENHOME/bin/zenoss_smseagle.py (where $ZENHOME is your Zenoss directory). Ensure that it's executable (chmod 755 zenoss_smseagle.py).
-
Add a cell phone number to the "Pager" field of each Zenoss user account.
-
Go to Advanced->Settings and modify the "Page Command" to:
$ZENHOME/bin/zenoss_smseagle.py $RECIPIENT
-
When finished, test by using the "test" link next to the cell number shown in the Pager column of each user.
-
If testing is successful (a SMS message/call is received at the cell phone) create alerts in Zenoss and specify "page" as the action for an alert.