[hobbit] RE: TS - blackberry small web page for ACK
Ralph Mitchell
ralphmitchell at gmail.com
Tue Feb 9 01:49:32 CET 2010
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:
REQUEST_METHOD=GET
QUERY_STRING="ACTION=Ack&NUMBER=1&DELAY=500&MESSAGE=Test+Message"
export REQUEST_METHOD QUERY_STRING
/home/xymon/server/bin/bb-ack.cgi --no-pin
The value of MESSAGE would need to be url-encoded.
Ralph Mitchell
On Mon, Feb 8, 2010 at 4:08 PM, <d.tom.schmitt at l-3com.com> wrote:
> I still need some guidance on this one!
>
> Is there a way to (from the command line) ACK a device?
>
> I can use the ‘bb’ command to DISABLE/ENABLE a device from the command line
> but not ACK, that I know of.
>
>
>
> I would like to ACK an event as someone responds to a call out.
>
> I am not able to setup the Xymon server to receive email so that is not an
> option.
>
> But using Asterisk (PiaF), I can create an out bound voice call and prompt
> the person for the OK to ACK.
>
> Then the Asterisk machine would run the command line program to ACK the
> device.
>
>
>
> *Thanks,*
>
> * *
>
> *Tom Schmitt*
>
> *Senior IT Staff - R&D*
>
> Salt Lake City, UT 84116
>
> Phone (801) *594-3030*
>
> Cell (801) 231-7230
>
> eFax (413) *480-6873*
>
> *D.Tom.Schmitt at L-3Com.com*
>
> * **\\\\||////***
>
> * **\ ~ ~ / ***
>
> * **| @ @ | ***
>
> *--oOo---(_)---oOo--***
>
>
>
> *From:* Schmitt, D Tom @ CSW-SLC
> *Sent:* Wednesday, February 03, 2010 11:28 AM
> *To:* hobbit at hswn.dk
> *Subject:* TS - blackberry small web page for ACK
>
>
>
> I have an urgent requirement to be able to create a small web page for
> display on the blackberry.
>
>
>
> OK SOLUTION (if I can get it to work):
>
> I tried to use bb-ack.cgi but the documentation is not straight forward.
>
> I see that it has “Ack” as a hidden value for ACTION.
>
> FORM METHOD=GET and ACTION=”&SCRIPT_NAME”
>
> Where does script_name get set to on a correct run?
>
>
>
> BETTER SOLUTION:
>
> I can create a simple small web page and pass the link to the blackberry to
> the person on-call.
>
> But I need to have a command line equivalent to the bb-ack.cgi to ACK the
> outage and supply the following variables.
>
> Same items on the bb-ack.cgi man page:
>
> bb-ack.cgi
>
> ACTION=action
>
> NUMBER=acknum
>
> DELAY=validity
>
> MESSAGE=text
>
> I have not found the correct command.
>
>
>
> I can DISABLE/ENABLE the device easily from ‘bb’ but I need to make an easy
> way to acknowledge
>
> the event from a smart phone (blackberry).
>
>
>
> *Thanks,*
>
> * *
>
> *Tom Schmitt*
>
> *Senior IT Staff - R&D*
>
> Salt Lake City, UT 84116
>
> Phone (801) *594-3030*
>
> Cell (801) 231-7230
>
> eFax (413) *480-6873*
>
> *D.Tom.Schmitt at L-3Com.com*
>
> * **\\\\||////***
>
> * **\ ~ ~ / ***
>
> * **| @ @ | ***
>
> *--oOo---(_)---oOo--***
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20100208/f148204c/attachment.html>
More information about the Xymon
mailing list