Nagios Web Plugin
Scott Lundgren
selundgr at email.uncc.edu
Tue Apr 18 16:22:24 CEST 2006
I'm using Nagios 1.2 with APAN .3-sql and that's what I'm doing. I call a
wrapper shell script that calls check_http :
VALUE=`$PLUGINSDIR/check_http -I $HOST -H $VHOST -p $PORT -w $WARN -c $CRIT
$XARGS`
RESULT=$?
# debug "`date` HTTP snu, Res: $RESULT, Val: $VALUE"
FOUND=`echo $VALUE|grep "|"|wc -l|awk '{print $NF}'`
if [ $FOUND = 0 ]; then
ERR=1
fi
TIME=`echo $VALUE|awk '{print $NF}'`
#RESULT=2
RES=`echo $VALUE|cut -d "|" -f 2|sed "s/time= /Time: /g"`
CODE=`echo $VALUE|cut -d "|" -f 1|cut -d "-" -f 1|cut -d ":" -f 2`
RETSTR="Request Response:$CODE<br>Request $RES seconds"
if [ $RESULT -gt $RETVAL ]; then
RETVAL=$RESULT
fi
On 4/18/06 9:47 AM, "Sandeep Narasimha Murthy" <sandeep-n-murthy at telecom.pt>
wrote:
> I could probably use the check_http plugin or the webinject.. has anyone used
> this before successfully ?
>
> thnx
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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