Home Directory Plugins Network Protocols NTP and Time check_timezone.pl (Advanced Nagios Plugins Collection)

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_timezone.pl (Advanced Nagios Plugins Collection)

Rating
0 votes
Favoured:
0
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
Hits
30695
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Checks a Linux Server's timezone is set as expected
Part of the Advanced Nagios Plugins Collection, download it here:

https://github.com/harisekhon/nagios-plugins

./check_timezone.pl --help

Nagios Plugin to check a Linux Server's timezone is set as expected

usage: check_timezone.pl [ options ]

-T --timezone Timezone to expect the server in. Required (can be any valid timezone from /usr/share/zoneinfo/ eg. UTC or GMT)
-A --alternate Alternative timezone to expect the server in. Optional (defaults to timezone). Useful to allowing BST daylight saving time shifts by specifying a second timezone to allow (eg BST)
-L --localtime-file Timezone file to compare /etc/localtime and /etc/sysconfig/clock to. Optional (defaults to timezone). Useful when your localtime is set to say Europe/London which shows up as GMT but you still want to validate that /etc/localtime is set to Europe/London for following DST changes. (Can be any valid timezone file under /usr/share/zoneinfo/ eg. UTC or GMT)
-h --help Print description and usage options
-t --timeout Timeout in secs (default: 10)
-v --verbose Verbose mode
-V --version Print version and exit