Global users and time zones
Ton Voon
ton.voon at altinity.com
Tue Oct 30 18:22:19 CET 2007
Hi Benny,
On 29 Oct 2007, at 20:56, C. Bensend wrote:
> I realize this is borderline relevant, but I'm sure some of you
> have had to deal with this in the past. How do you do it? I'm
> trying to avoid having times displayed in a single time zone and
> having the local admins do time calculations and offsets just to
> get their systems monitored. I REALLY don't want to have a Nagios
> server in each time zone if I can in any way avoid it.
I think this is as simple as setting TZ=new_timezone before executing
the CGIs. This seems to be the case running on command line.
What you may want to do is setup different Apache virtual hosts, say
http://india.nagios.example.com//cgi-bin/status.cgi, http:///
uk.nagios.example.com/cgi-bin/status.cgi, etc and within each of
those virtual hosts in Apache, set the TZ variable. Then, from the
website, it is obvious which timezone data you are looking at.
> I'd also be open to any third-party front ends that may handle
> this more gracefully than I might. :) As of right now, I'm using
> PHP and PostgreSQL, and will be building the config files with
> perl.
With Opsview (http://opsview.org), we'd like to incorporate timezone
support so that a user can choose their timezone and get data
displayed accordingly (http://trac.opsview.org/wiki/RoadMap). Let us
know if your interested in sponsoring this development.
Ton
http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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