Xymon Mailing List Archive search

Duration for one round of server side module

list Ralph Mitchell
Thu, 14 May 2009 17:29:57 -0500
Message-Id: <user-feab04564228@xymon.invalid>

On Thu, May 14, 2009 at 2:39 PM, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On Thu, May 14, 2009 at 3:09 PM, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>wrote:
Maybe I'm missing something, but...  Why not just grab the system
date/time at the start, again at the end, then subtract one

How do I know the end? The clients are constantly feeding data to
hobbitd_channel and they may not be coming
in sequential order. I may receive data from one host twice who is right
next to hobbit server before I receive
client data for another host which is in different country
Looking at the ssmodule sample program, I think I would pick up the start
and end time in the 'processmessage' routine.  The hostname gets passed
through to that routine, so you could log a timestamp, the hostname and the
duration for each host.

Ralph Mitchell