Page 1 of 1

Nagios not showing Certificate expiry date only SSL Version

Posted: Thu Aug 18, 2016 4:13 am
by retro2707
Hi,

I updated to the latest nagios plugins and since then all of our checks in nagios just show "SSL Version: TLSv1.2" on the "Status Information" instead of the warning on the 2nd line. Below is an example of the check I run. Can we omit the SSL version line so we can see the warning in Nagios somehow pleaes? Thanks!

Code: Select all

[root@DALSKMONS01 libexec]# ./check_http -H apps.website.co.uk -C 5,1

SSL Version: TLSv1.2
WARNING - Certificate '*.website.co.uk' expires in 5 day(s) (Wed 17 Aug 2016 01:00:00 PM BST)

Re: Nagios not showing Certificate expiry date only SSL Vers

Posted: Thu Aug 18, 2016 8:58 am
by mcapra
This has actually been raised as an issue on github:
https://github.com/nagios-plugins/nagio ... issues/168

The only 2 workarounds i've found involve either modifying and recompiling check_http or using a wrapper script to strip out the SSL Version.

Re: Nagios not showing Certificate expiry date only SSL Vers

Posted: Fri Aug 19, 2016 9:39 am
by jfrickson
Fixed in branch 'maint' at https://github.com/nagios-plugins/nagio ... tree/maint via commit https://github.com/nagios-plugins/nagio ... e59b117991

There was some debugging code left behind. My apologies!