Nagios Timezone

Robert Hajime Lanning lanning at lanning.cc
Thu Jan 4 01:38:46 CET 2007


<quote who="Israel Brewster">
> I have done some searching on this, and while I have found some
> similar questions in the archives, I haven't found an answer, so I
> figure I'll ask. I am running Nagios 2.5 on an OpenBSD 4.0 box. The
> machine is set to the proper time, and if I run "date" or "perl -e
> 'print scalar(localtime()) . "\n";' "(as suggested in one of the
> threads I found) it returns the proper time, in the proper timezone.
> Nagios, however, displays the time in GMT. Since I am off of GMT by a
> full 9 hours, this is rather annoying. Any way to fix this? Thanks.

1) make sure Nagios is started with the TZ environment variable
   unset, so it will use the system setting.

2) make sure your web server also does not start with the TZ variable.

-- 
And, did Galoka think the Ulus were too ugly to save?
                                         -Centauri


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list