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:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to