R1.5

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jlee
Posts: 38
Joined: Fri May 13, 2011 11:23 am

R1.5

Post by jlee »

Hi,

We just upgraded from R1.2 to R1.5 and it lost all it time/date settings, and now it won't send out any email alerts. (but the test email does work).

any one else having the problems?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: R1.5

Post by mguthrie »

You can make sure your system time is accurate with the following commands:

Code: Select all

yum install ntp
ntpdate pool.ntp.org
We'll keep our eyes peeled to see if anyone else is experiencing this.
jlee
Posts: 38
Joined: Fri May 13, 2011 11:23 am

Re: R1.5

Post by jlee »

I tried :

yum install ntp
ntpdate pool.ntp.org

but it didn't work.

I think our installed has died!

Reboot it and not it won't boot now :(
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: R1.5

Post by mguthrie »

See if you can boot from a live cd and check the hard drive space. If it's completely full you would definitely have some problems.
jlee
Posts: 38
Joined: Fri May 13, 2011 11:23 am

Re: R1.5

Post by jlee »

Hi,

I had to reinstall R1.5 because everything I tried didnt work.

However, on the new install the time is wrong again.

i.e. Wed Jul 6 11:30:54 CDT 2011
the time is the uk is 17:35.

I have tried

yum install ntp
ntpdate pool.ntp.org

but it didn't work.

How can I change time zone and getthe right time for the uk?

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

Re: R1.5

Post by mguthrie »

Can you elaborate on what you mean by "it didn't work." Are you able to install the yum package? Do you get an error when updating the time?
jlee
Posts: 38
Joined: Fri May 13, 2011 11:23 am

Re: R1.5

Post by jlee »

The steps worked.. but the time is still wrong. i.e I am in the UK.

if my time is :17:35 in the uk.

Nagios is saying 11:30:54 CDT 2011
How can I correct this? so nagios is showing the correct UK time?

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

Re: R1.5

Post by mguthrie »

What Linux distro is this on?

You may need to specify your timezone settings in your /etc/php.ini file.

You'll need to either edit or add:

Code: Select all

 date.timezone = Etc/GMT-13
with your appropriate timezone.

http://nz.php.net/manual/en/timezones.php

When you run the "date" command from the command-line, do you get the correct date and time?
jlee
Posts: 38
Joined: Fri May 13, 2011 11:23 am

Re: R1.5

Post by jlee »

Hi,

I have fixed the issue from running the following:
[root@linu-nag02 etc]# nano localtime
[root@linu-nag02 etc]# mv localtime localtime.old
[root@linu-nag02 etc]# ln -s /usr/share/zoneinfo/Europe/London /etc/localtime

Thanks
James
jlee
Posts: 38
Joined: Fri May 13, 2011 11:23 am

Re: R1.5

Post by jlee »

Sorry another issue with the time.

Nagsoi now has the correct uk time.

However, when nagios sends out a email alert, the time on the email is incorrect.

How can I fix this?

Thanks,
James
Locked