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.
Not able to change Nagios XI time zone
Not able to change Nagios XI time zone
You do not have the required permissions to view the files attached to this post.
Re: Not able to change Nagios XI time zone
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.
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.
Former Nagios employee
Re: Not able to change Nagios XI time zone
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
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
Have you tried restarting the server?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Not able to change Nagios XI time zone
Yes we have restarted the server but no difference.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Not able to change Nagios XI time zone
Your system time isn't set to IST
Run
Run
Code: Select all
rm -f /etc/localtime
cp /usr/share/zoneinfo/Asia/Kolkata /etc/localtimeRe: Not able to change Nagios XI time zone
thank q system time got corrected.
You can close the thread. Thank u for helping to resolve the issue.
You can close the thread. Thank u for helping to resolve the issue.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Not able to change Nagios XI time zone
Sounds good, locking it up.