Nagios not showing Certificate expiry date only SSL Version

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
retro2707
Posts: 1
Joined: Thu Aug 18, 2016 4:10 am

Nagios not showing Certificate expiry date only SSL Version

Post 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)
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios not showing Certificate expiry date only SSL Vers

Post 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.
Former Nagios employee
https://www.mcapra.com/
jfrickson

Re: Nagios not showing Certificate expiry date only SSL Vers

Post 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!
Locked