How do I change the time in nagiosxi?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
perius
Posts: 13
Joined: Wed Mar 03, 2010 4:10 am

How do I change the time in nagiosxi?

Post 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?

:arrow: :roll: :?:
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: How do I change the time in nagiosxi?

Post 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.
SomeClown
Posts: 6
Joined: Tue Mar 02, 2010 2:24 pm

Re: How do I change the time in nagiosxi?

Post 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
perius
Posts: 13
Joined: Wed Mar 03, 2010 4:10 am

Re: How do I change the time in nagiosxi?

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: How do I change the time in nagiosxi?

Post 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
Last edited by Box293 on Wed Jun 09, 2010 6:43 am, edited 2 times in total.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
lntyee
Posts: 36
Joined: Thu Apr 22, 2010 3:03 pm

Setting the time

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Setting the time

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
lntyee
Posts: 36
Joined: Thu Apr 22, 2010 3:03 pm

Re: Setting the time

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Setting the time

Post by Box293 »

Hopefully the forum moderators will have a better answer, this is beyond my knowledge scope :o
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
lntyee
Posts: 36
Joined: Thu Apr 22, 2010 3:03 pm

Re: Setting the time

Post by lntyee »

No worries - thanks for trying! :)
Locked