[Nagiosplug-devel] add returned content-type check to check_http

Graham Collinson graham.collinson at googlemail.com
Fri May 18 18:14:15 CEST 2007


Hi,
I added an extra option to check_http for checking that the returned
content-type is a certain value.
The header check is based on the existing code for checking the date
headers.
Perhaps this would be useful to include?
Attached are patches against 1.4.8 and latest cvs.
I used -U for this option purely because it follows on from the -T used for
passing content-type in outgoing headers.
Perhaps a better letter can be picked from the few left available for this
plugin.

cheers,
Graham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20070518/9b31f101/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_http.1.4.8.patch
Type: application/octet-stream
Size: 4398 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20070518/9b31f101/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_http.cvs.patch
Type: application/octet-stream
Size: 4564 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20070518/9b31f101/attachment-0001.obj>


More information about the Devel mailing list