[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] RE: TS - blackberry small web page for ACK
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] RE: TS - blackberry small web page for ACK
- From: Ralph Mitchell <ralphmitchell (at) gmail.com>
- Date: Mon, 8 Feb 2010 19:49:32 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=NE/uQhD7l++mSHbYri0N9Xe5qoStHgr8JClBwYPqBuU=; b=fr+cpY8H2nXeCdXqkyqCKWIWUQ/R5W6Y7VksjEPmZ2dl6pywyHv3Czibmpqkbj/7Az RWQ7m5JA7PRBA8A4tpjTrS87gUpoBV/xQLA1kYMMvBfyl0WjjJxTDBGdLwUP5E7tw9nc e+oqb5tyF87mpS/gcGEbnjNRcEze0kxzFq7Gk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=IbSw97/XHLJLzUG4wXQSq4zgFPPHMHXkzec9wZcguwdJRYGBy/hLAYkY2Yxeq0bO23 LvMUnSwYZT5LOyQ3pPmVKs5g7bKs6VZFSJBeP90eHThwfM41Vls8grnXcPRBrkvoymBF v24aB7sQQ0hdd4BoWWSvw653zBxcjY7Koi24k=
- References: <2B2CEF0E4EE10B449E5D9BB95E6DA0E8028FDA4C (at) MAIL2.csw.l-3com.com> <2B2CEF0E4EE10B449E5D9BB95E6DA0E8028FDA5A (at) MAIL2.csw.l-3com.com>
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--***
>
>
>