Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#100 closed defect (use support list)

Target[$] prepend no work properly. NoSpaceChar:

Reported by: human Owned by:
Version: 2.x Keywords: PREPEND
Cc:

Description (last modified by oetiker)

Hi, guys. First of all, I wanna thank you for all your work on great tool MRTG, which I find irreplaceble in my job, and use it for 5 years. Recently I faced the next problem. When I use Target[$] prepend option, it doesn't work properly. After processing config file it left space character after Target[router] keyword itself, what makes prepend unusefull for Target. Can you please fix it.

Thank you in advance.

MRTG: mrtg-2.16.2_6,1 OS: FreeBSD

flow# /usr/local/bin/mrtg -debug cfg /usr/local/etc/mrtg-conf/dslm-ies5000-pstn440.cfg
--cfg: dslam-ies5000[1]: EnableIPv6: no
--cfg: dslam-ies5000[2]: WorkDir: /usr/local/www/apache22/data/mrtg/           
--cfg: dslam-ies5000[3]: Options[_]: growright, bits, unknaszero
--cfg: dslam-ies5000[4]: MaxBytes[_]: 256000
--cfg: dslam-ies5000[5]: AbsMax[_]: 1024000
--cfg: /usr/local/etc/mrtg-conf/dslm-ies5000-pstn440.cfg[2]: Directory[_]: 10.8.44.253
--cfg: /usr/local/etc/mrtg-conf/dslm-ies5000-pstn440.cfg[3]: Title[_]: DSLAM PSTN 440
--cfg: /usr/local/etc/mrtg-conf/dslm-ies5000-pstn440.cfg[4]: NoSpaceChar: ~
--cfg: /usr/local/etc/mrtg-conf/dslm-ies5000-pstn440.cfg[5]: Target[$]: :public@10.8.44.253
--cfg: /usr/local/etc/mrtg-conf/dslm-ies5000-pstn440.cfg[6]: #####################################################
--cfg: /usr/local/etc/mrtg-conf/dslm-ies5000-pstn440.cfg[7]: Target[03-01]: -301
2010-12-12 13:10:17: ERROR: Target[03-01][_IN_] '-301 :public@10.8.44.253' (warn): Array found where operator expected at (eval 21) line 1, at end of line
2010-12-12 13:10:17: ERROR: Target[03-01][_OUT_] '-301 :public@10.8.44.253' (warn): Array found where operator expected at (eval 22) line 1, at end of line

Change History (3)

Note: See TracTickets for help on using tickets.
 

NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. Consider upgrading to a standard conformant browser like Mozilla Firefox or Opera but also Apple's Safari or KDE's Konqueror for example.