0

I've created the following command to send nagios alerts via whatsapp. This command sends the alerts to a whatsapp group.

/usr/bin/yowsup-cli demos -c /etc/yowsup-cli.conf -s 49phonenumber-1471509469 '***** NAGIOS Notification ***** -- Type: $NOTIFICATIONTYPE$ -- Service: $SERVICEDESC$ -- Host: $HOSTALIAS$ -- Address: $HOSTADDRESS$ -- State: $SERVICESTATE$ -- Date/Time: $LONGDATETIME$ -- Additional Info: $SERVICEOUTPUT$ -- Duration: $SERVICEDURATION$'

Now, when it is executed from nagios it doesn't work, but a similar command from the shell works without issues.

yowsup-cli demos -c /etc/yowsup-cli.conf -s 49phonenumber-1471509469 "text to send"

On the nagios logs there is no error related to this command. Is there anything I'm missing here. Please help. thanks.

Erjol Bane
  • 47
  • 8

0 Answers0