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?
Performance graph time line
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Performance graph time line
Try the following:
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
Code: Select all
yum install ntp
ntpdate pool.ntp.org
http://support.nagios.com/wiki/index.ph ... e.22_Error
-
- Posts: 16
- Joined: Fri Oct 07, 2011 4:28 pm
Re: Performance graph time line
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
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
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Performance graph time line
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
-
- Posts: 16
- Joined: Fri Oct 07, 2011 4:28 pm
Re: Performance graph time line
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?
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Performance graph time line
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
http://www.wikihow.com/Change-the-Timezone-in-Linux
-
- Posts: 16
- Joined: Fri Oct 07, 2011 4:28 pm
Re: Performance graph time line
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.
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: Performance graph time line
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.
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!
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Performance graph time line
Try restarting apache, mysql, and postgresql
If that fails, try restarting the server.
Code: Select all
service httpd restart
service mysqld restart
service postgresql restart