[rrd-users] help!!! 14all Script and Timezones

Dean Singh dsingh at sitelite.com
Fri Aug 31 23:24:43 MEST 2001


	How can one reflect timezone changes using the 14all script with
MRTG/RRD?  Did any of you guys modify the script to do this?  Here is my
thoughts to do what MRTG does.

	To save the current timezone and set it from the CFG.


	my($savetz) = $ENV{'TZ'};
	if (defined $rcfg{'timezone'}{$router}) {
       $ENV{'TZ'} = $rcfg{'timezone'}{$router}
      }


	
	To set the Timezone back.


	if ($savetz) {
                $ENV{'TZ'} =  $savetz;
      } else {
                delete $ENV{'TZ'};
      }


	

	

	

Sincerely,
Dean Singh
949-635-2513 Direct
949-475-1075 Fax
www.sitelite.com


--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list