Univention Bugzilla – Bug 46698
Nagios CUPS test fails due to usage of HTTP 1.0
Last modified: 2022-06-27 17:48:18 CEST
In UCS 4.3 the CUPS NRPE check runs the following: /usr/lib/nagios/plugins/check_http -I 127.0.0.1 -p 631 -S -k "Host: 127.0.0.1:631" This fails with an error message (even though the web interface is apparently working just fine when you visit it with a browser): [0 root@master /etc/nagios/nrpe.univention.d] /usr/lib/nagios/plugins/check_http -I 127.0.0.1 -p 631 -S -k "Host: 127.0.0.1:631" HTTP WARNING: HTTP/1.0 400 Bad Request - 648 bytes in 0,009 second response time |time=0,008514s;;;0,000000;10,000000 size=648B;;;0 The reason seems to be that CUPS doesn't support HTTP 1.0 anymore. Forcing the check to use 1.1 by adding `-S 1.1` results in a positive check: [0 root@master /etc/nagios/nrpe.univention.d] /usr/lib/nagios/plugins/check_http -I 127.0.0.1 -p 631 -S -k "Host: 127.0.0.1:631" -S 1.1 HTTP OK: HTTP/1.1 200 OK - 2754 bytes in 0,008 second response time |time=0,007632s;;;0,000000;10,000000 size=2754B;;;0 How to reproduce: • Install the CUPS & Nagios apps on UCS 4.3 • Configure the server for Nagios, add the CUPS check • Observe the result Other users have reported the same issue: https://help.univention.com/t/nagios-problem-after-update-ucs-v4-3-http-warning/8201
*** Bug 46701 has been marked as a duplicate of this bug. ***
We now have three internal systems with this error.
A school customer now stumbles over this issue
Again in the next school environment. I set both tickets waiting for this bugfix
[4.3-1 5af158873c] Bug #46698: Use the host header option to ensure HTTP/1.1 is used [4.3-1 75cc0e523e] Bug #46698: YAML Package: univention-nagios-servicechecks Version: 7.0.0-3A~4.3.0.201808081424 Branch: ucs_4.3-0 Scope: errata4.3-1
OK - univention-nagios-cups OK - yaml
<http://errata.software-univention.de/ucs/4.3/169.html>