LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   set timezone for nagios in ubuntu 9.10 (https://www.linuxquestions.org/questions/linux-newbie-8/set-timezone-for-nagios-in-ubuntu-9-10-a-824478/)

Xanios 08-05-2010 08:59 PM

set timezone for nagios in ubuntu 9.10
 
so as the title says.

i saw this in nagios.cfg:

Code:

# TIMEZONE OFFSET
# This option is used to override the default timezone that this
# instance of Nagios runs in.  If not specified, Nagios will use
# the system configured timezone.
#
# NOTE: In order to display the correct timezone in the CGIs, you
# will also need to alter the Apache directives for the CGI path
# to include your timezone.  Example:
#
#  <Directory "/usr/local/nagios/sbin/">
#      SetEnv TZ "Australia/Brisbane"
#      ...
#  </Directory>

#use_timezone=US/Mountain
#use_timezone=Australia/Brisbane

how to change it to Singapore timezone?

EricTRA 08-06-2010 02:57 AM

Quote:

Originally Posted by Xanios (Post 4057427)
so as the title says.

i saw this in nagios.cfg:

Code:

# TIMEZONE OFFSET
# This option is used to override the default timezone that this
# instance of Nagios runs in.  If not specified, Nagios will use
# the system configured timezone.
#
# NOTE: In order to display the correct timezone in the CGIs, you
# will also need to alter the Apache directives for the CGI path
# to include your timezone.  Example:
#
#  <Directory "/usr/local/nagios/sbin/">
#      SetEnv TZ "Australia/Brisbane"
#      ...
#  </Directory>

#use_timezone=US/Mountain
#use_timezone=Australia/Brisbane

how to change it to Singapore timezone?

Hi,

If your system timezone is set to your location (Singapore?) then Nagios will use that timezone. This option is only used if you have servers in different timezones as far as I know.

Kind regards,

Eric

Xanios 08-06-2010 03:11 AM

Hi,

i re-set the timezone for my ubuntu 9.10 to Singapore timing but still the time and date in nagios browser is not of Singapore.

Code:

sudo dpkg-reconfigure tzdata

EricTRA 08-06-2010 03:19 AM

Hi,

Have you restarted Nagios?

Kind regards,

Eric

Xanios 08-06-2010 03:37 AM

Hi,

Ya, it works now.

Thank you.


By the way, may i know how to use the above timezone offset ? Just curious.

EricTRA 08-06-2010 03:39 AM

Hi,

I've never used the timezone offset in Nagios for our servers since they're all in the same timezone. I know it exists and its function but never configured it.

If you consider your problem/question solved then please mark it as such using the Thread Tools.

Kind regards,

Eric

Xanios 08-06-2010 03:44 AM

Oh okay.

Marked it as solved already :)

EricTRA 08-06-2010 03:51 AM

Hi,

Fantastic, thanks.

Kind regards,

Eric

lzecca 06-20-2012 04:18 AM

Even if i did the same operations, my nagios didn't change the mail Date/time Macros output (LONGDATETIME).
I solved this huge issue uncommenting the follow directive in the nagios.cfg:
time_change_threshold=90

Hope to be useful to someone that go crazy,
Bye, Luca


All times are GMT -5. The time now is 02:17 AM.