Xymon Mailing List Archive search

EXT :Re: Timestamp of last xymond read of hosts.cfg?

list David Mills
Tue, 23 Jul 2013 17:24:42 +0000
Message-Id: <user-68713d62d748@xymon.invalid>

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