Page 1 of 1
Performance Graph time line
Posted: Thu Nov 17, 2011 1:02 pm
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?
Re: Performance Graph time line
Posted: Thu Nov 17, 2011 1:25 pm
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
Re: Performance Graph time line
Posted: Thu Nov 17, 2011 4:29 pm
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
Re: Performance Graph time line
Posted: Thu Nov 17, 2011 5:19 pm
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
Re: Performance Graph time line
Posted: Fri Nov 18, 2011 9:10 am
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?
Re: Performance Graph time line
Posted: Fri Nov 18, 2011 11:47 am
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
Re: Performance Graph time line
Posted: Fri Nov 18, 2011 5:11 pm
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.
Re: Performance Graph time line
Posted: Fri Nov 18, 2011 5:22 pm
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.
Re: Performance Graph time line
Posted: Fri Nov 18, 2011 5:27 pm
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.