Hi All,
Need some help if anyone is doing the monitoring of "when there is a timezone change detected" on Linux servers. Additonally i would like to know if anything can be achieved via NTP server...
We have NPM, SAM and VMAN in place,
I found a simple Perl function here that may help: [Perl-beginners] how to get timezone in perl - Grokbase
use strict;
use warnings;
use POSIX;
print strftime("%Z", localtime()), "\n";
You could pipe this output into a log file on the node, and then check to see if it changes and alert if it's not the desired output.
for local time u referring to the timezone right? Coz if the date + time is shown then detecting change of that value will be difficult.
The function returns nothing but the timezone:
thanks a lot..