<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    It works!<br>
    <br>
    I added this code to my php script:<br>
    <br>
                    $is_flap=exec("xymon 127.0.0.1 'xymondboard
    host=".$BBVARS["BBHOSTNAME"]." test=".$BBVARS["BBSVCNAME"]."
    fields=flapinfo'");<br>
                    if( $is_flap[0]== '1' ){<br>
                        $BBVARS["BBALPHAMSG"]="FLAPPING STATUS\n\nLast
    message:".$BBVARS["BBALPHAMSG"];<br>
                    }<br>
    <br>
    Thank you!<br>
    <br>
    Best regards<br>
    <div class="moz-signature">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <title>Documento senza titolo</title>
      <title>Untitled</title>
      <br>
      <div class="moz-signature">
        <div class="moz-signature">
          <div class="moz-signature"> <span><span><span><span><small><font
                        color="#000000"><b><br>
                          Gianluca Ongaro<br>
                          <br>
                          <br>
                        </b></font></small></span></span></span></span>
          </div>
        </div>
      </div>
    </div>
    <div class="moz-cite-prefix">Il 16/02/2016 22:00, J.C. Cleaver ha
      scritto:<br>
    </div>
    <blockquote
      cite="mid:30da76a65c0628361c4b0a209fc970e6.squirrel@mail.kkytbs.net"
      type="cite">
      <pre wrap="">

On Tue, February 16, 2016 3:24 am, Gianluca Ongaro - Var Itt wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">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?

</pre>
      </blockquote>
      <pre wrap="">
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
</pre>
      <blockquote type="cite">
        <pre wrap="">xymon $XYMSRV "xymondboard host=<hostname> test=<testname> fields=flapinfo"
</pre>
      </blockquote>
      <pre wrap="">
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

</pre>
    </blockquote>
    <br>
  </body>
</html>