[Nagiosplug-help] Check_http

Tony Yarusso tyarusso at nagios.com
Thu Oct 28 17:24:53 CEST 2010


On Thu, 2010-10-28 at 16:00 +0200, Bokx, Mark de wrote:

> Check_http returns US date notation (mm/dd/yyyy) when used to check
> SSL-certificates. Could this be changed to Euro (dd/mm/yyyy) date
> notation or at least made configurable to enable both options? 

> Setting the Nagios system settings to use Euro notation (in
> nagios.cfg) does not solve the dates being returned in US notation by
> the way.

Even better would be to support custom formatting using similar syntax
to the system 'date' command.  This actually affects more plugins than
just check_http, since the return string appears to be the job of
sslutils.c - with the format currently hardcoded on line #153.  Lines
117-147 already break it down into year, month, day, hour, minute,
second in separate variables, so you have all of the parts you need to
be able to format however you want once you add in an argument for that
option.  Ideally if no option is given it should default to the
date_format given in nagios.cfg.

Hopefully that will point someone with the relevant coding skills in the
right direction.  :)

-- 
Tony Yarusso
Technical Team
___
Nagios Enterprises, LLC
Email:  tyarusso at nagios.com
Web:    www.nagios.com





More information about the Help mailing list