|
From: Casey S. <CSt...@pi...> - 2002-09-03 10:45:40
|
I'm checking for the same kind of thing. We have a page on our website that
checks that our web portal and com objects are functioning. This is the
string the page produces:
callingcreatedmethod success: 0
Term Session Object Successful
This is my service description:
# Service definition
define service{
use generic-service ; Name of service template to use
host_name eprodwebfarm
service_description testprod
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups nt-admins,web-emergency
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command testprod!"Term Session Object Successful"!
\/testprod.asp
}
This is my command definition:
# 'testprod' command definition
define command{
command_name testprod
command_line $USER1$/check_http -H $HOSTADDRESS$ -S -s $ARG1$ -u $ARG2$
}
Casey Stamper
A+, MCP+I, MCSE
Senior Network Administrator
Pivot, a division of Info-One
400 Lazelle Rd, Suite 16
Columbus, OH 43240
614.825.5831
614.825.5844 Fax
Note: This transmission may not be protected by encryption software, though
the information contained herein may be privileged and confidential and
protected from disclosure. If the reader of this message is not the intended
recipient, or an employee or agent responsible for delivering this message
to the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
are receiving this communication in error, please notify us immediately by
replying to the message and deleting it from your computer. Thank you for
your cooperation.
> -----Original Message-----
> From: Rick . [mailto:ric...@ho...]
> Sent: Monday, September 02, 2002 12:00 AM
> To: net...@li...
> Subject: [Netsaintplug-help] check_http OK
>
>
> Hi,
>
> I want to check for a string of text in a html page, if the
> string exists I
> want to make netsaint send an alert email.
>
> The current command im using:
> service[www.something.com]=check_for_error1;0;24x7;10;60;4;con
> tactgroup1;60;24x7;1;1;1;;check_http!service[www.something.com$-I
> www.something.com -p 80 -w 5 -c 10 -f follow -s temporarily
> unavailable
>
> This is the opposite to what I want, it raises an alert when
> this DOESN'T
> exist, but I want to send an alert when this DOES exist in
> the html file.
>
> Can anyone help?
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone? Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Netsaintplug-help mailing list
> Net...@li...
> https://lists.sourceforge.net/lists/listinfo/netsaintplug-help
> http://netsaintplug.sf.net/
> http://sf.net/projects/netsaintplug/
>
|