[Pkg-nagios-devel] Bug#722482: Bug#722482: check_http: fix for different virtual port

Jan Wagner waja at cyconet.org
Thu Aug 20 09:35:21 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

tags 722482 +moreinfo
thanks

Hi Christopher,

Am 11.09.2013 um 16:58 schrieb Christopher Odenbach:
> we have two webservers behind a loadbalancer. The LB acts as a NAT
> and PAT gateway, so requests to www.uni-paderborn.de:80 are
> forwarded to siri1.uni-paderborn.de:5033 and
> siri2.uni-paderborn.de:5033.
> 
> Now I want to monitor both webservers, not only the LB. So I want
> to use check_http with the following options:
> 
> check_http -I siri1 -p 5033 -H www.uni-paderborn.de:80
> 
> But in this case the current version of check_http (also checked
> the version in unstable, same result) creates an HTTP request to
> siri1:80 which is wrong.
> 
> If I leave out the ":80" in the virtual host the request is wrong
> also:
> 
> check_http -I siri1 -p 5033 -H www.uni-paderborn.de -v | grep Host 
> Host: www.uni-paderborn.de:5033
> 
> So the plugin does distinguish between physical and virtual host
> names, but it does NOT distinguish between physical and virtual
> ports.

did you test the package from jessie (or wheezy-backports)? This
should be fixed since 1.5 accordingly to
https://github.com/monitoring-plugins/monitoring-plugins/issues/1026#iss
uecomment-46850782

Thanks for your feedback, Jan.
- -- 
Never write mail to <waja at spamfalle.info>, you have been warned!
- -----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V-
PS PE Y++
PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++
- ------END GEEK CODE BLOCK------
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJV1Z9ZAAoJEAxwVXtaBlE+i5gQAJrlwDYi7jQ35t4I2qawrWpA
DB9l4uoeNPtGTTRzePaZykFQarEwmpv40Rg3uExgNx1D+Tefm5At7PCLDColvMV0
HYp73x1o75532ErGkYa6g3QlKBFPzf3MZpJ/PALLoCRBnksQJ/V028gpMWYAp9TY
vqN1QaHAFapePPlkx+sSA0/ylEqzHt3PGLd0JMYC6uotLkM9LbMppc5PZLPlESxz
di0gPz1rZ7uV+bw14EgFGyeZq5C2azr+x+dQHA9BFYa88gSibt8+41Kguz3aIDVa
bPUgAVCz1FY0OP7/RW+ly8nqTXbL2D0oQ1FeAlhQPY8XKctgKVn+kIvwX/dmh9u4
OXSbhqEjgMKXxMP6ikNtLiopeLop4kSbFQ5+074Zg/2HKj0s4NwytXVRHC/E5xgp
NcQBAx6LtpTbqogbElxsoMvXrvDOfG3nvDjc5BR9/q5kJf2PcIUl1oF4S2cvfo28
lYwwQZdlTFk3+mhQF1AJnxZUqOENqEj9NvxPKvhMIDaJXwJMu9T6n6AD3hbsZLNH
ypPqlFOL/cPVPpG7t4Y7CnLh56hkuIL0KaFT7MTkGGJXwa1GtnJRyXfzmPWDqIIs
QZYfyhwwXezl0t8vnNDpfMhj8auUIVRhwhFQt+Dkb8UwUOEm7XeCKcB0SCSOe+Ue
4jY1hNLIhZE7/2/Q3ecl
=2Ez0
-----END PGP SIGNATURE-----



More information about the Pkg-nagios-devel mailing list