[PATCH] allow nagios server to run in configurable timezone

Grant Byers grant.byers at gmail.com
Thu Nov 1 01:35:05 CET 2007


Hi all,

We'd like to be able to run multiple nagios servers is differing
timezones on the same physical/virtual server. To enable this, nagios
needs to honour the TZ environment variable, or allow this to be
overriden via the main nagios config.
Note that the CGIs do not need to change, as we can simply setup
multiple "VirtualHost" instances and use the "SetEnv" directive to set
necessary environment variables. ie.

      <Directory "/usr/local/nagios3/sbin/">
        SetEnv TZ "Australia/Brisbane"
        SetEnv NAGIOS_CGI_CONFIG "/usr/local/nagios3/etc/qld_cgi.cfg


I've attached two simple patches to add this TZ support.

Regards,
Grant
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: timezone_base_config_c.diff
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20071101/f69ec7c3/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: timezone_base_nagios_c.diff
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20071101/f69ec7c3/attachment-0001.ksh>
-------------- next part --------------
-------------------------------------------------------------------------
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/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list