[Nagiosplug-devel] [ nagiosplug-Patches-3123940 ] print time in rfc 822 format

SourceForge.net noreply at sourceforge.net
Tue Nov 30 23:42:35 CET 2010


Patches item #3123940, was opened at 2010-11-30 23:42
Message generated for change (Tracker Item Submitted) made by mmjo
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3123940&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Bugfix
Group: release-1.4.15
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: mmjo (mmjo)
Assigned to: Nobody/Anonymous (nobody)
Summary: print time in rfc 822 format

Initial Comment:
check_http prints the expiry time of a certificate in an ambiguous fixed format
this patch changes that to rfc 822 format (see: man strftime)
e.g.: 
$ LC_ALL=C ./plugins/check_http -H www.verisign.com -C 14
OK - Certificate will expire on Fri, 25 Jun 2012 23:59:00 +0000.
and another example:
$ LC_TIME=nl_NL ./plugins/check_http -H www.verisign.com -C 14
OK - Certificate will expire on vr, 25 jun 2012 23:59:00 +0000.

Patch against Plugin Version (-V output): check_http v1.4.15 (nagios-plugins 1.4.15)
Plugin Name: check_http
Example Plugin Commandline: LC_ALL=C ./plugins/check_http -H www.verisign.com -C 14
Tested on operating system: fc13
Tested on architecture: i686
Tested with compiler: gcc version 4.4.5 20101112 (Red Hat 4.4.5-2) (GCC) 


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3123940&group_id=29880




More information about the Devel mailing list