Timestamp of last xymond read of hosts.cfg?
list David Mills
Hi! I'm really sorry if this is already staring me in the face, but what's the easiest way to extract the timestamp of the last time xymond successfully read in the hosts.cfg configuration data? Thanks! david ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ David Mills Systems Administrator Northrop Grumman (XXX) XXX-XXXX
list Josh Luthman
The timestamp in the top right of bb.html and bb2.html is written after it reads the hosts and such. Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX
▸
On Mon, Jul 22, 2013 at 1:20 PM, Mills, David (IS) <user-eb64c112f0e9@xymon.invalid> wrote:Hi! I'm really sorry if this is already staring me in the face, but what's the easiest way to extract the timestamp of the last time xymond successfully read in the hosts.cfg configuration data? Thanks! david ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ David Mills Systems Administrator Northrop Grumman (XXX) XXX-XXXX
list David Mills
Hey, thanks, Josh. Sorry for the lack of clarity: I need to determine this info programatically. I'm guessing it will be embedded in some form of the "xymon ... "xymondboard ..."" command. (... or??)
▸
Thanks!
david
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
David Mills
Systems Administrator
Northrop Grumman
(XXX) XXX-XXXX
From: Josh Luthman [user-4c45a83f15cb@xymon.invalid]
Sent: Monday, July 22, 2013 12:37 PM
To: Mills, David (IS)
Cc: xymon at xymon.com
Subject: EXT :Re: [Xymon] Timestamp of last xymond read of hosts.cfg?
The timestamp in the top right of bb.html and bb2.html is written
after it reads the hosts and such.
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Mon, Jul 22, 2013 at 1:20 PM, Mills, David (IS) <user-eb64c112f0e9@xymon.invalid> wrote:Hi! I'm really sorry if this is already staring me in the face, but what's the easiest way to extract the timestamp of the last time xymond successfully read in the hosts.cfg configuration data? Thanks! david ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ David Mills Systems Administrator Northrop Grumman (XXX) XXX-XXXX
list Ralph Mitchell
That same timestamp is in the title of that page. So, just locate your xymon.html wherever that is, and grep for "<TITLE>". It's about 8th line down. Ralph Mitchell
▸
On Mon, Jul 22, 2013 at 2:06 PM, Mills, David (IS) <user-eb64c112f0e9@xymon.invalid>wrote:
Hey, thanks, Josh. Sorry for the lack of clarity: I need to determine this info programatically. I'm guessing it will be embedded in some form of the "xymon ... "xymondboard ..."" command. (... or??) Thanks! david ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ David Mills Systems Administrator Northrop Grumman (XXX) XXX-XXXX From: Josh Luthman [user-4c45a83f15cb@xymon.invalid] Sent: Monday, July 22, 2013 12:37 PM To: Mills, David (IS) Cc: xymon at xymon.com Subject: EXT :Re: [Xymon] Timestamp of last xymond read of hosts.cfg? The timestamp in the top right of bb.html and bb2.html is written after it reads the hosts and such. Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX On Mon, Jul 22, 2013 at 1:20 PM, Mills, David (IS) <user-eb64c112f0e9@xymon.invalid> wrote:Hi! I'm really sorry if this is already staring me in the face, but what's the easiest way to extract the timestamp of the last time xymond successfully read in the hosts.cfg configuration data? Thanks! david ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ David Mills Systems Administrator Northrop Grumman (XXX) XXX-XXXX
list Henrik Størner
▸
On 22-07-2013 19:20, Mills, David (IS) wrote:
I'm really sorry if this is already staring me in the face, but what's the easiest way to extract the timestamp of the last time xymond successfully read in the hosts.cfg configuration data?
[...]
I need to determine this info programatically. I'm guessing it will be embedded in some form of the "xymon ... "xymondboard ..."" command. (...or??)
There really is no way of doing that. xymond doesn't have a way of telling you that, since I did not know it would be of use to anyone. In fact, xymond doesn't even track this information at all. What do you need it for ? Regards, Henrik
list David Mills
Thanks for the reply, Henrik. I'm fumbling my way through my first server-side extension, which, in the course of things, programatically manages additions / deletions to one of the contributing include files for hosts.cfg. I'm mostly having success but there are times when clients I'm adding appear on the Ghost Client list report rather than being instantiated as "real hosts" on the page that should be their "home". I wanted to check that my program is actually sending "xymond" a "kill -HUP" and toward that end I was looking for a timestamp for last-signal-caught I could compare against the "right-now" time. :-)
▸
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
David Mills
Systems Administrator
Northrop Grumman
(XXX) XXX-XXXX
From: Xymon [xymon-bounces at xymon.com] on behalf of Henrik Størner [user-ce4a2c883f75@xymon.invalid]
Sent: Tuesday, July 23, 2013 10:57 AM
To: xymon at xymon.com
Subject: EXT :Re: [Xymon] Timestamp of last xymond read of hosts.cfg?
On 22-07-2013 19:20, Mills, David (IS) wrote:I'm really sorry if this is already staring me in the face, but what's the easiest way to extract the timestamp of the last time xymond successfully read in the hosts.cfg configuration data?
[...]
I need to determine this info programatically. I'm guessing it will be embedded in some form of the "xymon ... "xymondboard ..."" command. (...or??)
There really is no way of doing that. xymond doesn't have a way of telling you that, since I did not know it would be of use to anyone. In fact, xymond doesn't even track this information at all. What do you need it for ? Regards, Henrik