[Xymon] twitter style alerts are not working

Phil Crooker Phil.Crooker at orix.com.au
Fri Sep 18 08:49:14 CEST 2015


I think the >< characters are just email addons, they weren't in the original message.

However, I do see the main command line is surrounded by backticks:

`/usr/lib/xymon/server/ext/twitter/infrabot-tweet.pl recepient $X $msg`

Is that the case in the script? They should not be there.
________________________________________
From: Xymon <xymon-bounces at xymon.com> on behalf of zep <zgreenfelder at gmail.com>
Sent: Friday, 18 September 2015 1:38 PM
To: xymon at xymon.com
Subject: Re: [Xymon] twitter style alerts are not working

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

_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon




More information about the Xymon mailing list