check_http certificate expiration

Thomas Groman tgrom.automail at nuegia.net
Wed Oct 30 18:38:05 CET 2019


Hello,

Is there a reason why when you activate the -C parameter in check_http
it no longer displays any timing or telemetry information, ans just
shows the certificate's expire date alone? Is this a bug or the way the
software is supposed to work.

$ /usr/lib/nagios/plugins/check_http -S -H example.com
HTTP OK: HTTP/1.1 200 OK - 1618 bytes in 0.148 second response time
|time=0.147954s;;;0.000000;10.000000 size=1618B;;;0

Normally you'd get that pipe symbol and then telemetry data you can
programaticly parse. not with -C

$ /usr/lib/nagios/plugins/check_http -S -H example.com -C 14
OK - Certificate 'www.example.org' will expire on Wed 02 Dec 2020
12:00:00 PM GMT +0000.

I expect the output to look like this:

$ /usr/lib/nagios/plugins/check_http -S -H example.com -C 14
HTTP OK: HTTP/1.1 200 OK - Certificate 'www.example.org' will expire on
Wed 02 Dec 2020 12:00:00 PM GMT +0000.|time=0.147954s;;;0.000000;10.000000 size=1618B;;;0


More information about the Devel mailing list