Public bug reported: With Ubuntu 20.04 focal, the monitoring-plugins package is at version 2.2 This seems to have introduced a regression in the check_http plugin: When using -k parameter to set a "Host" header, this is ignored instead of used.
In 2.1.2 on Ubuntu 16.04, the following behavior is seen: ~~~~~~~~~~~~~~~~~~~~ # /usr/lib/nagios/plugins/check_http -I 127.0.0.1 -p 4007 -k "Host: www.example.com" -v |more GET / HTTP/1.0 User-Agent: check_http/v2.1.2 (monitoring-plugins 2.1.2) Connection: close Host: www.example.com ~~~~~~~~~~~~~~~~~~~~ Ubuntu 20.04 with monitoring-plugins 2.2: ~~~~~~~~~~~~~~~~~~~~ # /usr/lib/nagios/plugins/check_http -I 127.0.0.1 -p 4007 -k "Host: www.example.com" -v |more GET / HTTP/1.0 User-Agent: check_http/v2.2 (monitoring-plugins 2.2) Connection: close ~~~~~~~~~~~~~~~~~~~~ ** Affects: monitoring-plugins (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1940525 Title: check_http regression, 2.2 ignores -k Host header To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/monitoring-plugins/+bug/1940525/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs