APC NBRK0550, NBRK0450, NBRK0570 manual NetBotz Appliance User’s Guide

Models: NBRK0550 NBRK0450 NBRK0570

1 152
Download 152 pages 42.21 Kb
Page 126
Image 126

Example target URLs. When creating a Send Custom HTTP GET alert action, a data handling application such as CGI script, ASP script, or servlet, for example, must be invoked on the Web host invoked in the Target URL, and data must be passed to the application in the proper format. The content of the Target URL field depends on the configuration of the target server which processes the HTTP GET. The following examples demonstrate two possible ways in which this alert action could be configured.

Example #1. In this example, the custom HTTP GET command provides user-specified values for a CGI script (pagersend.cgi). This custom HTTP GET would send the message hello there, with a subject of test message, from mike to the specified pin (telephone number):

http://www.mymmode.com/messagecenter/pagersend.cgi?pin=512

5551212&from=mike&subject=test+message&message=hello+there

Example #2. In this example, alert data is sent to a pager using the same CGI script (pagersend.cgi) as used in Example #1, but this time BotzWare macros dynamically generate the message content:

http://www.mymmode.com/messagecenter/pagersend.cgi?pin=512

5551212&from=${HOSTNAME}&subject=test+message&message=${SENSORNAME}+$ {SENSORVAL}+at+${ALERTPOD}

A message generated by this Target URL could read “Humidity 94% at Sensor Pod 0930261” from “myappliance.apc.com.”

NetBotz Appliance User’s Guide

116

Page 126
Image 126
APC NBRK0550, NBRK0450, NBRK0570 manual NetBotz Appliance User’s Guide