[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bigsister-general] sending Alarm to a selfwritten script - How is data sent to pagerscript?


Hi Shane,

AFAIK you have to read the standard input in your script. The parameters
sent are defined in the skin you use when you call your script. 

For instance, for an in-house alert system called GWS:

- there is a skins called GWS, which defines mailalarm.sub as 
@item@
@host@
@ARG0@
@textstatus@
@short@

- there is a script GWSinject that is called in bb_event_generator.cfg:
PAGER{$mail eq "GWS"} pager="/usr/local/bigsister/bin/GWSinject.sh"
skin=GWS

- the script GWSinject (python) reads the standard input 5 times and
gets the variables defined in mailalarm.sub.

Hope this helps,

Silviu

-----Original Message-----
From: suppressed
[mailto:suppressed On Behalf Of
suppressed
Sent: 24 October 2006 12:16
To: suppressed
Subject: [Bigsister-general] sending Alarm to a selfwritten script - How
is data sent to pagerscript?

dear all,
I wrote a perl script which is able to send sms messages to my
mobile-provider. I entered the scriptname in an alarming section in the
file "bb_event_generator.cfg" where i use "pager=mysript". the script is
called sucessfully, when the alarm is triggered. My problem is that no
data is sent to the script. No command line parameters where given to my
script, neither some data over stdin is piped to the script. I didnt
found any documentation how the alarming message could be send to a
script and in which message format. It would be great if somebody could
give me a hint how to send alarmingdata to an external script. Thanking
you in advance for helping me.

regards,
  Shane


------------------------------------------------------------------------
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bigsister-general mailing list
suppressed
https://lists.sourceforge.net/lists/listinfo/bigsister-general

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bigsister-general mailing list
suppressed
https://lists.sourceforge.net/lists/listinfo/bigsister-general


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.