Not able to change Nagios XI time zone

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cyient
Posts: 116
Joined: Thu May 08, 2014 4:45 am

Not able to change Nagios XI time zone

Post 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.
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Not able to change Nagios XI time zone

Post 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.
Former Nagios employee
cyient
Posts: 116
Joined: Thu May 08, 2014 4:45 am

Re: Not able to change Nagios XI time zone

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not able to change Nagios XI time zone

Post by lmiltchev »

Have you tried restarting the server?
Be sure to check out our Knowledgebase for helpful articles and solutions!
cyient
Posts: 116
Joined: Thu May 08, 2014 4:45 am

Re: Not able to change Nagios XI time zone

Post by cyient »

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cyient
Posts: 116
Joined: Thu May 08, 2014 4:45 am

Re: Not able to change Nagios XI time zone

Post by cyient »

thank q system time got corrected.

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

Post by slansing »

Sounds good, locking it up.
Locked