<div>The bb-ack.cgi program expects to be run by a web server with things passed to it using environment variables. A quick read of the source suggests something like this would get you your command-line:</div><div><br></div>
<div>REQUEST_METHOD=GET</div><div>QUERY_STRING="ACTION=Ack&NUMBER=1&DELAY=500&MESSAGE=Test+Message"</div><div>export REQUEST_METHOD QUERY_STRING</div><div>/home/xymon/server/bin/bb-ack.cgi --no-pin</div>
<div><br></div><div>The value of MESSAGE would need to be url-encoded.</div><div> </div><div>Ralph Mitchell</div><div><br></div><div><br></div><br><div class="gmail_quote">On Mon, Feb 8, 2010 at 4:08 PM, <span dir="ltr"><<a href="mailto:d.tom.schmitt@l-3com.com">d.tom.schmitt@l-3com.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="color:#1F497D">I still need some guidance on
this one!</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Is there a way to (from the
command line) ACK a device?</span></p>
<p class="MsoNormal"><span style="color:#1F497D">I can use the ‘bb’ command
to DISABLE/ENABLE a device from the command line but not ACK, that I know of.</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">I would like to ACK an event as
someone responds to a call out.</span></p>
<p class="MsoNormal"><span style="color:#1F497D">I am not able to setup the Xymon
server to receive email so that is not an option.</span></p>
<p class="MsoNormal"><span style="color:#1F497D">But using Asterisk (PiaF), I can
create an out bound voice call and prompt the person for the OK to ACK.</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Then the Asterisk machine would
run the command line program to ACK the device.</span></p><div class="im">
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<div>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><b><i><span style="font-size:8.0pt;color:#1F497D">Thanks,</span></i></b></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><b><i><span style="font-size:8.0pt;color:#1F497D"> </span></i></b></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><b><i><span style="font-size:8.0pt;color:#1F497D">Tom
Schmitt</span></i></b></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><i><span style="font-size:8.0pt;color:#1F497D">Senior
IT Staff - R&D</span></i><span style="font-size:8.0pt;color:#1F497D"></span></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:8.0pt;color:#1F497D">Salt
Lake City, UT 84116</span></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:8.0pt;color:#1F497D">Phone
(801) <i>594-3030</i></span></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:8.0pt;color:#1F497D">Cell
(801) 231-7230</span></p>
<p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none"><span style="font-size:8.0pt;color:#1F497D">eFax
(413) <i>480-6873</i></span></p>
<p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none"><b><i><span style="font-size:8.0pt;color:#1F497D">D.Tom.Schmitt@L-3Com.com</span></i></b></p>
<p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none"><b><i><span style="font-size:8.0pt;color:#1F497D"> </span></i></b><b><span style="font-size:8.0pt;font-family:"OCR A Extended";color:#1F497D">\\\\||////</span></b><b><i><span style="font-size:8.0pt;color:#1F497D"></span></i></b></p>
<p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none"><b><i><span style="font-size:8.0pt;color:#1F497D">
</span></i></b><b><span style="font-size:8.0pt;font-family:"OCR A Extended";color:#1F497D">\ ~ ~ / </span></b><b><i><span style="font-size:8.0pt;color:#1F497D"></span></i></b></p>
<p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none"><b><i><span style="font-size:8.0pt;color:#1F497D">
</span></i></b><b><span style="font-size:8.0pt;font-family:"OCR A Extended";color:#1F497D">| @ @ | </span></b><b><i><span style="font-size:8.0pt;color:#1F497D"></span></i></b></p>
<p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none"><b><span style="font-size:8.0pt;font-family:"OCR A Extended";color:#1F497D">--oOo---(_)---oOo--</span></b><b><i><span style="font-size:8.0pt;color:#1F497D"></span></i></b></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
</div><div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> Schmitt, D Tom @
CSW-SLC <br>
<b>Sent:</b> Wednesday, February 03, 2010 11:28 AM<br>
<b>To:</b> <a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a><br>
<b>Subject:</b> TS - blackberry small web page for ACK</span></p>
</div>
</div><div class="im">
<p class="MsoNormal"> </p>
<p class="MsoNormal">I have an urgent requirement to be able to create a small
web page for display on the blackberry.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">OK SOLUTION (if I can get it to work):</p>
<p class="MsoNormal">I tried to use bb-ack.cgi but the documentation is not
straight forward.</p>
<p class="MsoNormal">I see that it has “Ack” as a hidden value for
ACTION.</p>
<p class="MsoNormal">FORM METHOD=GET and ACTION=”&SCRIPT_NAME”</p>
</div><p class="MsoNormal">Wh<span style="color:#1F497D">ere</span> does script<span style="color:#1F497D">_</span>name get set to on a correct run?</p><div class="im">
<p class="MsoNormal"> </p>
<p class="MsoNormal">BETTER SOLUTION:</p>
<p class="MsoNormal">I can create a simple small web page and pass the link to
the blackberry to the person on-call.</p>
<p class="MsoNormal">But I need to have a command line equivalent to the
bb-ack.cgi to ACK the outage and supply the following variables.</p>
<p class="MsoNormal">
Same items on the bb-ack.cgi man page:</p>
<p class="MsoNormal">
bb-ack.cgi</p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in">ACTION=action</p>
<p class="MsoNormal" style="margin-left:1.0in">NUMBER=acknum</p>
<p class="MsoNormal" style="margin-left:1.0in">DELAY=validity</p>
<p class="MsoNormal" style="margin-left:1.0in">MESSAGE=text</p>
<p class="MsoNormal">
I have not found the correct command.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I can DISABLE/ENABLE the device easily from ‘bb’
but I need to make an easy way to acknowledge </p>
<p class="MsoNormal">the event from a smart phone (blackberry).</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><b><i><span style="font-size:8.0pt">Thanks,</span></i></b></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><b><i><span style="font-size:8.0pt"> </span></i></b></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><b><i><span style="font-size:8.0pt">Tom Schmitt</span></i></b></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><i><span style="font-size:8.0pt">Senior IT Staff -
R&D</span></i><span style="font-size:8.0pt"></span></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:8.0pt">Salt Lake City,
UT 84116</span></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:8.0pt">Phone (801) <i>594-3030</i></span></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:8.0pt">Cell
(801) 231-7230</span></p>
<p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none"><span style="font-size:8.0pt">eFax
(413) <i>480-6873</i></span></p>
<p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none"><b><i><span style="font-size:8.0pt"><a href="mailto:D.Tom.Schmitt@L-3Com.com" target="_blank">D.Tom.Schmitt@L-3Com.com</a></span></i></b></p>
<p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none"><b><i><span style="font-size:8.0pt">
</span></i></b><b><span style="font-size:8.0pt;font-family:"OCR A Extended"">\\\\||////</span></b><b><i><span style="font-size:8.0pt"></span></i></b></p>
<p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none"><b><i><span style="font-size:8.0pt">
</span></i></b><b><span style="font-size:8.0pt;font-family:"OCR A Extended"">\
~ ~ / </span></b><b><i><span style="font-size:8.0pt"></span></i></b></p>
<p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none"><b><i><span style="font-size:8.0pt">
</span></i></b><b><span style="font-size:8.0pt;font-family:"OCR A Extended"">|
@ @ | </span></b><b><i><span style="font-size:8.0pt"></span></i></b></p>
<p class="MsoNormal" style="margin-left:.25in;text-indent:.25in;text-autospace:none"><b><span style="font-size:8.0pt;font-family:"OCR A Extended"">--oOo---(_)---oOo--</span></b><b><i><span style="font-size:8.0pt"></span></i></b></p>
<p class="MsoNormal"> </p>
</div></div>
</div>
</blockquote></div><br>