[Nagiosplug-devel] check_http responce code control

Thomas Guyot-Sionnest dermoth at aei.ca
Fri Dec 14 15:55:11 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14/12/07 09:21 AM, Mike Lykov wrote:
> Hi all.
> 
> I use 
> $ ./check_http -V
> check_http (nagios-plugins 1.4.8) 1.101
> 
> And almost all work fine, but I have a question or feature request about 
> control over http responce codes.
> 
> When code = 200, 301, 302 plugin give OK
> Code = 401, 404 etc give WARNING
> code = 500 etc give CRITICAL
> 
> and all it built-in in the plugin?
> 
> I have a site with basic authentication which reply 401 code 
> HTTP WARNING: HTTP/1.1 401 Authorization Required
> 
> but if site responded like this for my request i think it's live and i want to 
> return OK status from the plugin.
> 
> I don't want to create special user for nagios in that system/site by security 
> considerations (plaintext passwords in configs, and if someone know it he can 
> enter and manage someting on the site).
> 
> Can I use some option in 1.4.8 to make 401=OK state?
> Or, maybe, in later version?

Hi,

I believe there's no such feature in check_http (you can double check by
running "check_http --help" and looking at the options). However I'm
planing to rework some parts of the plugin as there's some issues right
now (for example a 302 ok status will not check the response time).

Please submit your feature to the "feature request" tracker of the
Nagios-plugins SF page located at:

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

I will assign it to myself and make sure it's being looked at when I
rework the plugin. I can't guarantee you any date as I work on
Nagios-plugins during my free time, but if you're lucky it could be for
the next release...

Thanks,

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHYplP6dZ+Kt5BchYRAiotAJ0a9Sq1CXQAgd3JLgN7SN0BQ+RcSQCgsP32
ef2DQsA6xkDhJhgC5Gi9Gvs=
=lN3k
-----END PGP SIGNATURE-----




More information about the Devel mailing list