Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-05-2010, 08:59 PM
|
#1
|
Member
Registered: Jul 2010
Posts: 216
Rep:
|
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?
Last edited by Xanios; 08-05-2010 at 09:00 PM.
|
|
|
08-06-2010, 02:57 AM
|
#2
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Quote:
Originally Posted by Xanios
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
|
|
|
08-06-2010, 03:11 AM
|
#3
|
Member
Registered: Jul 2010
Posts: 216
Original Poster
Rep:
|
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
|
|
|
08-06-2010, 03:19 AM
|
#4
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hi,
Have you restarted Nagios?
Kind regards,
Eric
|
|
|
08-06-2010, 03:37 AM
|
#5
|
Member
Registered: Jul 2010
Posts: 216
Original Poster
Rep:
|
Hi,
Ya, it works now.
Thank you.
By the way, may i know how to use the above timezone offset ? Just curious.
|
|
|
08-06-2010, 03:39 AM
|
#6
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
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
|
|
|
08-06-2010, 03:44 AM
|
#7
|
Member
Registered: Jul 2010
Posts: 216
Original Poster
Rep:
|
Oh okay.
Marked it as solved already 
|
|
|
08-06-2010, 03:51 AM
|
#8
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hi,
Fantastic, thanks.
Kind regards,
Eric
|
|
|
06-20-2012, 04:18 AM
|
#9
|
LQ Newbie
Registered: Jun 2012
Posts: 1
Rep: 
|
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 03:43 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|