Personally I'd just ask named.
% rndc status
version: BIND 9.11.0
running on rock.dv.isc.org: Darwin x86_64 12.6.0 Darwin Kernel Version 12.6.0:
Wed Mar 18 16:23:48 PDT 2015; root:xnu-2050.48.19~1/RELEASE_X86_64
boot time: Fri, 30 Dec 2016 04:42:08 GMT
last configured: Fri, 30 Dec 2016 04:42:08
Server boot time is reported in the HTTP statistics channel.
For example, with this in named.conf:
statistics-channels { inet * port allow { localhost; }; };
$ curl http://localhost:/json/v1/status
{
"json-stats-version":"1.2",
"boot-time":"2017-01-05T22:01:35.313Z",
"config-time":
.
Regards,
Mathew Eis
Northern Arizona University
Information Technology Services
From: bind-users on behalf of Jonathan Reed
Date: Thursday, January 5, 2017 at 1:54 PM
To: bind-users
Subject: real BIND start time
Hi,
I'm running rndc stats and trying to determine how long the stats are goo
I don't know the official answer, but I can tell you the PS method reports to
me November, which is the last time named was started; whereas the pid file
date shows noon today, a few hours ago.
Ryan Pavely
Cologix
http://www.cologix.com/
On 1/5/2017 3:54 PM, Jonathan Reed wrote:
Hi,
Hi,
I'm running rndc stats and trying to determine how long the stats are good
for. I'm querying the server start time by a couple methods but they're not
the same. Which one should I rely on?
$ date -r /var/run/named/named.pid
Sun Jan 1 03:38:04 EST 2017
$ ps -C named -o lstart=
Sat Dec 24 12:0
5 matches
Mail list logo