Centreon SMS notifications – integration manual

Here we describe how to setup Centreon with SMSEagle for SMS notifications. It should take you about 5 min to have it up and running.

SMSEagle Setup

Create a new user for this script in SMSEagle. This user will be referenced below as: SMSEAGLEUSER and SMSEAGLEPASSWORD
Replace SMSEAGLEUSER and SMSEAGLEPASSWORD in script below with your values.

 

Centreon Setup

1. Download latest version of the script notify_eagle_sms.pl from our repository: https://bitbucket.org/proximus/smseagle-nagios
Place the plugin in your Centreon plugins directory – usually /usr/lib/centreon/plugins/

2. Create the SMS notification commands.

Go to: Configuration -> Commands -> Notifications.

Press Add new button.
Before you paste the code, please remember to:

– replace SMSEAGLEIP with IP Address of your SMSEagle device.
– replace SMSEAGLEUSER and SMSEAGLEPASSWORD with your user/password to SMSEagle.

Create first command: service-notify-by-sms

$CENTREONPLUGINS$/notify_eagle_sms.pl -s SMSEAGLEIP -u SMSEAGLEUSER -p SMSEAGLEPASSWORD -d $CONTACTPAGER$ -t "$NOTIFICATIONTYPE$ $SERVICESTATE$ $SERVICEDESC$ Host($HOSTNAME$) Info($SERVICEOUTPUT$) Date($SHORTDATETIME$)"

Create second command: host-notify-by-sms

$CENTREONPLUGINS$/notify_eagle_sms.pl -s SMSEAGLEIP -u SMSEAGLEUSER -p SMSEAGLEPASSWORD -d $CONTACTPAGER$ -t "$NOTIFICATIONTYPE$ $HOSTSTATE$ Host($HOSTALIAS$) Info($HOSTOUTPUT$) Time($SHORTDATETIME$)"

3. Remember to add newly created notification commands to desired contacts. You can do that via: Configuration > Users > Contacts / Users