Simple regular expressions & http_check

Michael T. Halligan michael at halligan.org
Thu Apr 15 03:06:43 CEST 2004


I'm trying to use a check_http to monitor a url on a webserver. If the appserver behind the webserver is working, it will always include a specific string :

<form name="PdcSurvey" action="http://test.domain/pss/pss6" onsubmit="return PdcProcessPage();" method="post">

My service check entry is this : 

/usr/lib/nagios/plugins/check_http -t  60 -H test.domain -u http://test.domain/pss/survey/2gnsJ/app_test_survey.htm?U2=test -r '<form name=\"PdcSurvey\" action=\"http://test.domain/pss/pss6\" onsubmit=\"return PdcProcessPage\(\);\" method=\"post\">'

And this works  just fine if I do it from the command line.

However, if I run this from nagios, it always fails claiming "No Output"

What am I doing wrong with this? Does nagios end up quoting things funny?

-------------------
Michael T. Halligan
Chief Geek
Halligan Infrastructure Designs.
http://www.halligan.org/
2250 Jerrold Ave #11
San Francisco, CA 94124-1012
(415) 724.7998 - Mobile



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list