Changeset d81603daee0f28cba26482b80eb0b223338ae787

Show
Ignore:
Timestamp:
02/21/11 22:29:57 (3 years ago)
Author:
Brian Clapper <bclapper@omniti.com>
git-committer:
Brian Clapper <bclapper@omniti.com> 1298327397 +0000
git-parent:

[01144b78af5408a407165c8b36e6a644cc9d3696]

git-author:
Brian Clapper <bclapper@omniti.com> 1298327397 +0000
Message:

return cert_end_in metric (seconds until expire). closes #352

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules-lua/noit/module/tcp.lua

    rf60d872 rd81603d  
    170170    check.metric_uint32("cert_start", ssl_ctx.start_time) 
    171171    check.metric_uint32("cert_end", ssl_ctx.end_time) 
     172    check.metric_uint32("cert_end_in", ssl_ctx.end_time - os.time()) 
    172173    if noit.timeval.seconds(starttime) > ssl_ctx.end_time then 
    173174      good = false