Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_timezone.pl (Advanced Nagios Plugins Collection)
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios XI
35583
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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
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
Reviews (0)
Be the first to review this listing!