LinHES Forums http://forums.linhes.org/ |
|
RRD Perl wart - rrd.config does not override script values http://forums.linhes.org/viewtopic.php?f=6&t=16038 |
Page 1 of 1 |
Author: | razalasm [ Sat Aug 04, 2007 6:29 am ] |
Post subject: | RRD Perl wart - rrd.config does not override script values |
A small misuse of Perl in some RRD scripts ... if a script contains Code: my($x) = "someValue";
do $configFile; any setting for $x in $configFile will have no effect because the my() construct prevents it. You need to drop the "my" from whatever variables you want overridden from the config file. For me this fixed the HDtemp device setting. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |