Page 1 of 3
How do I change the time in nagiosxi?
Posted: Wed Mar 03, 2010 6:28 am
by perius
The clock is totally wrong in my webinterface nagiosxi. Its default in the vmware machine. Never had the chanse to set it.
So how do I change it?

Re: How do I change the time in nagiosxi?
Posted: Wed Mar 03, 2010 11:08 am
by mmestnik
It's likely that VMWare needs to be told to report the time in GMT. Lunux/UNIX systems store the wall clock time differently in the hardware clock(CMOS??). Windows stores local-time and Linux uses GMT(London), so your clock is likely 6hrs off.
Linux can be told to use localtime, however I wouldn't expect that and think it's strange.
You may also need to run 'tzconfig' to configure the local time zone.
Re: How do I change the time in nagiosxi?
Posted: Wed Mar 03, 2010 12:45 pm
by SomeClown
The localtime file in /etc is probably wrong (mine was.) Easiest thing to do is find something that is in your timezone within the /usr/share/zoneinfo directory tree and link it to the localtime file. I just made a backup copy of my localtime file then linked. Something like:
(1) mv localtime localtime.bak
(2) ln -s /usr/share/zoneinfo/America/Vancouver /etc/localtime
Re: How do I change the time in nagiosxi?
Posted: Fri Mar 05, 2010 2:30 am
by perius
Thank you for your help.
But I solved it my self. It was pretty easy. I was to hooked up on that nagiosxi had the problem.
Off course so was not the case. The system it lais on was. CentOS.
So a
system-config-date was all it took.
Thank you anyway.
If anyone sees this, if you can tell me where to find more documents and facts for nagiosxi.
I have this page, and its all good

. And Nagios Wiki feels undone.
It would be great if there would be more pages.
Re: How do I change the time in nagiosxi?
Posted: Tue Mar 30, 2010 12:37 am
by Box293
SomeClown wrote:The localtime file in /etc is probably wrong (mine was.) Easiest thing to do is find something that is in your timezone within the /usr/share/zoneinfo directory tree and link it to the localtime file. I just made a backup copy of my localtime file then linked. Something like:
(1) mv localtime localtime.bak
(2) ln -s /usr/share/zoneinfo/America/Vancouver /etc/localtime
Thanks for this, it fixed my problem. Just so it's very clear here are the steps I took to make it work:
Open a console session or a putty session to the Nagios XI host
- Type cd /etc and press Enter
Type mv localtime localtime.bak and press Enter
Type ln -s /usr/share/zoneinfo/America/Vancouver /etc/localtime and press Enter
Type date and press Enter
This should now show the date / time for your timezone
And then we reboot the Nagios XI host
Type reboot and press Enter
Once the Nagios XI host has rebooted you should notice times on the checks that are specific to your timezone.
Another method is to install the
system-config-date utility.
Open a console session or a putty session to the Nagios XI host
- Type yum install ntp system-config-date and press Enter
Answer the questions to install the package
Type service ntpd start and press Enter
Type system-config-date and press Enter
Select your timezone and save
Type date and press Enter
This should now show the date / time for your timezone
Setting the time
Posted: Fri Apr 23, 2010 3:59 pm
by lntyee
I've tried doing a search for this, but pretty much anything I search for on this forum comes back with a "this is too common", so I'll just ask the question - how do I set the local time? Currently I'm in PST, but the program is showing CST. I can't find anywhere in the GUI to change this, nor anything in the help files.
Thanks.
Re: Setting the time
Posted: Sat Apr 24, 2010 10:14 pm
by Box293
Here you go.
http://support.nagios.com/forum/viewtop ... t=159#p906
mmestnik edit:
For conveyance you can try using our little tiny url service:
http://go.nagios.com/forum/159/906
I think you'll agree this rocks.
Re: Setting the time
Posted: Sun Apr 25, 2010 11:07 am
by lntyee
Thanks. I followed this exactly (I'm also in the same timezone as Vancouver) and now I'm 7 hours off instead of two. What am I missing? Thanks.
Re: Setting the time
Posted: Sun Apr 25, 2010 6:22 pm
by Box293
Hopefully the forum moderators will have a better answer, this is beyond my knowledge scope

Re: Setting the time
Posted: Sun Apr 25, 2010 7:35 pm
by lntyee
No worries - thanks for trying!
