How to do timedrift detection on agents

Started by Anders, December 14, 2012, 10:01:06 AM

Previous topic - Next topic

Anders

Hi,

I have been trying to setup a time-drift template, that monitors my agents local system time and compares it to the time of the monitoring server, basically I'd like to find servers that drifts in time despite of a NTP daemon (all servers are in the same time zone).

But I can't seem to get it to work as I only seem to be able to get the agents local time.

Any suggestions on how this could be solved?

Thanks

Anders

Victor Kirhenshtein

Hi!

You can use transformation script to calculate time difference with NetXMS server. Add parameter System.CurrentTime, and use the following transformation script:


return time() - $1;


You'll got difference in seconds between NetXMS server's local time and remote system time.

Best regards,
Victor

Anders

Aha! Thanks Victor, this should have been obvious, but for some reason I got the impression that time() returned the agents local time and not the netxms servers local time.