References > Template Reference > Server Clock Drift > Server Clock Drift (Perl)

Server Clock Drift (Perl)

The template allows you to check server clock drift by comparing the target server time with internet time.

Prerequisites

Perl must be installed on the target server.

Credentials

Root on target server.

This template is based on the following script: http://www.cs.cf.ac.uk/Dave/PERL/node174.html.

Monitored Components

For details on monitors, see SAM Component Monitor Types.

Clock Drift

This monitor shows the clock drift on the target server in seconds. Positive values of clock drift in the message field indicates that time on the target server is running faster than it should. Negative values indicates time on the target server is running slower than it should. This monitor also returns the current time on the target server. 

In the Scripts Arguments field you should provide the hostname of the time server. Time servers can be found here: http://tf.nist.gov/tf-cgi/servers.cgi.

Following is an example of how to use the Scripts Arguments field: perl ${SCRIPT} nist.netservicesgroup.com