gzip support in check_http

If you need gzip support in your nagios check_http plugin, here’s what you need to do.
First of all, fetch the latest version (1.4.15) of the nagios-plugins :

http://sourceforge.net/projects/nagiosplug/files/nagiosplug/1.4.15/

tar xzfv the downloaded file somewhere and enter the nagios-plugins-1.4.15/plugins directory…
Here you’ll find the check_http.c sourcefile which needs to be patched.
You can find the patch here :

http://sourceforge.net/tracker/index.php?func=detail&aid=3294169&group_id=29880&atid=397599

patch the sourcefile with the patch command : patch check_http.c checkhttpgzipdeflate.patch
Go down one directory and run ./configure && make
You’ll have a freshly compiled check_http plugin with gzip support in the plugins-directory.
Copy it to your nagios-plugins directory or wherever you keep maintained versions.

Be Sociable, Share!

Tags: , , ,

Leave a Reply