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 (512) 873-6665
The timestamp in the top right of bb.html and bb2.html is written after it reads the hosts and such.
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
On Mon, Jul 22, 2013 at 1:20 PM, Mills, David (IS) <David.Mills at ngc.com> 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 (512) 873-6665
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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
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 (512) 873-6665
From: Xymon [xymon-bounces at xymon.com] on behalf of Henrik Størner [henrik at hswn.dk] 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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (3)
-
David.Mills@ngc.com
-
henrik@hswn.dk
-
josh@imaginenetworksllc.com