[Nagiosplug-devel] [ nagiosplug-Bugs-949521 ] --no-body and --max-age options for check_http

SourceForge.net noreply at sourceforge.net
Thu May 6 22:32:04 CEST 2004


Bugs item #949521, was opened at 2004-05-06 22:39
Message generated for change (Comment added) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=949521&group_id=29880

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jamie Zawinski (jwz)
>Assigned to: Ton Voon (tonvoon)
Summary: --no-body and --max-age options for check_http

Initial Comment:
I recently upgraded to Nagios 1.2.0 from an old
Netsaint, and I needed to add a couple of features to
the check_http plugin.

I sent these patches in a couple of years ago, but they
haven't made it into the distribution, so here they are
again...  (I hope you include them this time, so that I
don't have to rewrite this code again the next time I
upgrade...)

Anyway, I added two new options to check_http:

     -N, --no-body
         Don't wait for document body: stop reading
after headers.

I needed this so that I can check for the existence of
Icecast MP3 streams: such streams look like audio/mpeg
files, except that they are of infinite length.

     -M, --max-age=SECONDS
         Warn if the document is more than SECONDS old.

I needed this so that I can check whether my webcam is
still working: if the date on the JPEG file has stopped
updating, the webcam is down.

Here's how I use these:

define command{
 command_name    check_icecast
 command_line    $USER1$/check_http2 -H $HOSTADDRESS$     -p 8000 --no-body -u $ARG1$
 }

define command{
 command_name    check_http_age
 command_line    $USER1$/check_http -H $HOSTALIAS$     -I $HOSTADDRESS$ --no-body -u $ARG1$ --max-age $ARG2$
 }


The attached patch is against check_http.c 1.24.2.4
from nagios-plugins-1.3.1.

Thanks!


----------------------------------------------------------------------

>Comment By: Ton Voon (tonvoon)
Date: 2004-05-07 06:31

Message:
Logged In: YES 
user_id=664364

Jamie,

These sound like decent patches. However, we are not making any more 
enhancements to r1.3.1. Can you provide a patch against CVS? Just one 
more update of the code then :)

Ton

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=949521&group_id=29880




More information about the Devel mailing list