[Xymon] Flapping status not in BBALPHAMSG

Gianluca Ongaro - Var Itt g.ongaro at varitt.it
Wed Feb 17 17:03:00 CET 2016


It works!

I added this code to my php script:

                 $is_flap=exec("xymon 127.0.0.1 'xymondboard 
host=".$BBVARS["BBHOSTNAME"]." test=".$BBVARS["BBSVCNAME"]." 
fields=flapinfo'");
                 if( $is_flap[0]== '1' ){
                     $BBVARS["BBALPHAMSG"]="FLAPPING STATUS\n\nLast 
message:".$BBVARS["BBALPHAMSG"];
                 }

Thank you!

Best regards
Documento senza titolo Untitled
*
Gianluca Ongaro


*
Il 16/02/2016 22:00, J.C. Cleaver ha scritto:
>
> On Tue, February 16, 2016 3:24 am, Gianluca Ongaro - Var Itt wrote:
>> Hi,
>> I'm using Xymon on a server with an external dispatcher system.
>> To integrate it, I use the "SCRIPT" command in alerts.cfg, but I have a
>> problem with the flapping status messages.
>> In the variable BBALPHAMSG I have not the "WARNING: Flapping Status"
>> message and I see only a red status with a green message.
>> Can you help me? Is possible to integrate the "flapping status" message?
>>
> At the moment, the "flapping status" message isn't well exposed to a
> xymond_alert SCRIPT process. Rather than integrate it directly (like
> disable or acknowledgement messages are), it would probably be better to
> have it passed in via a distinct environment variable...
>
> Until this is added, and as long as you aren't concerned about high
> concurrency spirals during an alert storm, you can get this info by
> calling back into xymon from your script using
>> xymon $XYMSRV "xymondboard host=<hostname> test=<testname> fields=flapinfo"
> What comes back will be as described in the xymon man page under
> 'xymondboard'. If the first character is '1', then it's flapping.
>
>
> HTH,
> -jc
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20160217/a596b3d2/attachment.html>


More information about the Xymon mailing list