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.

Tags: , , ,

nagios-plugins and check_http version 1.4.12

Yes, it’s broken! I found out today after moving to a new nagios-server. My old http checks did not work, they only resulted in WARNINGS. Seems this is a redirect problem in check_http. It is fixed in the latest version.
I did not have time to go trough all the plugins this evening (friday and all) so I simply downloaded the latest tar.gz pluginpack from nagios.org, extracted it, ran “./configure” and then make all. After that I just moved the check_http from the freshly compiled plugin folder to my nagios plugins folder. Problem solved. 1.4.13 works fine.

Tags: , ,