Page 1 of 1
Not able to change Nagios XI time zone
Posted: Mon May 19, 2014 4:17 am
by cyient
Hi,
We have added changed the system timezone as per the document and the system time has changed to IST timezone but when checked logs in Nagios XI date and time is showing as different.
I have attached screenshot for reference regarding the issue.
How to change the Nagios XI system time.
Re: Not able to change Nagios XI time zone
Posted: Mon May 19, 2014 9:19 am
by tmcdonald
You should be able to run
grep "date.timezone" /etc/php.ini
ls -l /etc/localtime
php -r 'echo date("D M j G:i:s T Y")."\n";'
date
to get a good idea if your time settings are matching up or not.
Re: Not able to change Nagios XI time zone
Posted: Fri May 23, 2014 3:48 am
by cyient
Hi all these are matching.
When checked in system profile under Nagios XI --> Admin tab Date/Time is as follows.
Date/Time
PHP Timezone: Asia/Kolkata
PHP Time: Fri, 23 May 2014 14:17:01 +0530
System Time: Fri, 23 May 2014 08:47:01 +0000
Re: Not able to change Nagios XI time zone
Posted: Fri May 23, 2014 10:05 am
by lmiltchev
Have you tried restarting the server?
Re: Not able to change Nagios XI time zone
Posted: Sat May 24, 2014 9:11 pm
by cyient
Yes we have restarted the server but no difference.
Re: Not able to change Nagios XI time zone
Posted: Tue May 27, 2014 10:21 am
by scottwilkerson
Your system time isn't set to IST
Run
Code: Select all
rm -f /etc/localtime
cp /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
Re: Not able to change Nagios XI time zone
Posted: Fri May 30, 2014 5:51 am
by cyient
thank q system time got corrected.
You can close the thread. Thank u for helping to resolve the issue.
Re: Not able to change Nagios XI time zone
Posted: Fri May 30, 2014 9:01 am
by slansing
Sounds good, locking it up.