Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 52 lines (36 sloc) 1.86 KB

This plugin compares the time of the icinga/nagios machine with the time of a remote device.

Differences to

Up to now we used the plugin, but we had problems with the daylight saving time.

  • does not need a reconfiguration for summer and wintertime anymore
  • works for windows and linux installations
  • normally an offset is now unnecessary (so set --tzoffset to 0 or delete it)
  • warnings and criticals are now adapted to icinga standard


  -h, --help            show this help message and exit
  -H                    Hostname or ip address
  -C, --community       SNMP community of the SNMP service on target host.
  -V, --snmpversion     SNMP version. (1 or 2)
  -o, --tzoffset        the local systems utc offset to the servers utc, in minutes (use only if your
                        remote device is in a different timezone)
  -l, --localtime       force to use local time (only recommended if you have a non Windows OS remote device,   
                        that returns localtime and not utc)
  --th, --threshold     threshold configuration for warning- and critical-threshold to the metric offset


-C, --community         "public"
-V, --snmpversion       2
-o, --tzoffset          0


check with custom warning and critical threshold

./ -H --th metric=offset,warning=-5:5,critical=-15:15 


OK - Remote UTC: 20:23:49. Offset = 0 s | 'offset'=0.0s;;;;

forced check with localtime

./ -H -l

Not all devices return the time as UTC time. For example Windows return the local time. With this parameter the script compares the time from the remote device, with the local time (instead of UTC) of the nagios/icinga machine.

You can’t perform that action at this time.