[Xymon] twitter style alerts are not working

zep zgreenfelder at gmail.com
Fri Sep 18 06:08:06 CEST 2015



On 09/17/2015 07:35 PM, usa ims via Xymon wrote:
> Subject:
> twitter style alerts are not working
> From:
> usa ims <usaims at yahoo.com>
> Date:
> 09/17/2015 07:22 PM
>
> To:
> "xymon at xymon.com" <xymon at xymon.com>
>
>
> My twitter style alerts are not alerting me when there is an alert.
>
> My 'alerts.cfg' file looks like:
> HOST=www.xxx.com SERVICE=xxxWebPage
>          SCRIPT /usr/lib/xymon/server/etc/xx.sh FORMAT=SMS
> COLOR=yellow,red RECOVERED
>
> My 'hosts.cfg' file looks like:
> 216.x.x.x     www.xxx.com  #xxxWebPage
>
> My 'xx.sh' looks like:
> #!/bin/bash
> X=`date`
> msg=`echo "${BBALPHAMSG}"`
> >`</usr/lib/xymon/server/ext/twitter/infrabot-tweet.pl recepient $X
> $msg>`<

.... what is your intended purpose of the marks between >< chars?
I wouldn't expect them there.   also, is it a typo od does the script
really try to call 'ext' instead etc? (note the path difference from
your SCRIPT line and the path you call in the xx.sh script).

>
> The xymon display server will turn red when there is an alert but I
> don't get the twitter alert.
> If I fire off the infrabot-tweet.pl on the command line, it works and
> I get the twitter alert.
>
> I checked the permissions and all files under /usr/lib/xymon are owned
> by 'xymon:xymon'.
>
> Please suggest, thanks.

-- 
public gpg key id: AE60F64C




More information about the Xymon mailing list