Performance graph time line

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sdoan01
Posts: 16
Joined: Fri Oct 07, 2011 4:28 pm

Performance graph time line

Post by sdoan01 »

Hi,
I have added 3 Windows Server to my Nagios XI and inserted their performance graphs (CPU usage and Memory usage) in the Views so they would through each server. I have noticed that the time line of the graphs do not match the current time. Also, in Service Status and under the column Last Checked, it says 17:59:17 when it is only 11am. How do you fix the clock?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Performance graph time line

Post by mguthrie »

Try the following:

Code: Select all

yum install ntp
ntpdate pool.ntp.org
If the time still appears to be off, you'll have to set your timezone in the /etc/php.ini file, see the instructions below.
http://support.nagios.com/wiki/index.ph ... e.22_Error
sdoan01
Posts: 16
Joined: Fri Oct 07, 2011 4:28 pm

Re: Performance graph time line

Post by sdoan01 »

The yum install ntp would not work. I was getting error messages when it would try to install.

So I went to the php.ini file to change the time zone. It was set to London/England and I change it to date.timezone = "America/New_York", I tried date.timezone = "US/New_York", I tried date.timezone = Etc/GMT-13, and then restart httpd service. It still did not change in Nagios XI under Service Status and Host Detail.

Any idea why the time will not set to New York instead of London?

Thanks,
Steven
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Performance graph time line

Post by mguthrie »

If you run the "date" command from the command-line you'll be able to see what the current system time is set to, we'll see if that's the issue
sdoan01
Posts: 16
Joined: Fri Oct 07, 2011 4:28 pm

Re: Performance graph time line

Post by sdoan01 »

I ran the "date" command and it is set to London time. What should be the proper command to set the time to New_York in the php.ini file?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Performance graph time line

Post by mguthrie »

Take a look at the following wiki and follow instructions 2-7. Your php.ini file is good to go, you just need to update your server's system time.
http://www.wikihow.com/Change-the-Timezone-in-Linux
sdoan01
Posts: 16
Joined: Fri Oct 07, 2011 4:28 pm

Re: Performance graph time line

Post by sdoan01 »

I finally got the time to change, but now when I browse to Nagios XI, nothing appears in host details, service details, etc. I tried deleting and re-adding all of the servers and that didn't work. Any idea? If not, I may just have to reinstall Nagios Server.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Performance graph time line

Post by lmiltchev »

In order to delete a host, you should delete all of the services, associated with it. You delete host/services through the Core Config Manager. To make sure you don't have any config errors, you can try exporting the configuration manually by running the Write Config Tool. Please, take a look at this document:

http://assets.nagios.com/downloads/nagi ... tabase.pdf

Do you get any errors? Make sure that you don't have any errors and that the old Windows servers are deleted, then rerun the wizard.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Performance graph time line

Post by mguthrie »

Try restarting apache, mysql, and postgresql

Code: Select all

service httpd restart
service mysqld restart
service postgresql restart
If that fails, try restarting the server.