Hi all, I am having problem installing mrtg on RHEL6
The commands I followed are the following: /usr/bin/cfgmaker --output=/etc/mrtg/mrtg.cfg --global "WorkDir: /var/www/mrtg" --global "options[_]: growright,bits" [email protected] it creates the mrtg.cfg with the following info: # Created by # /usr/bin/cfgmaker --output=/etc/mrtg/mrtg.cfg --global "WorkDir: /var/www/mrtg" --global "options[_]: growright,bits" [email protected] ### Global Config Options # for UNIX # WorkDir: /home/http/mrtg # or for NT # WorkDir: c:\mrtgdata ### Global Defaults # to get bits instead of bytes and graphs growing to the right # Options[_]: growright, bits EnableIPv6: no WorkDir: /var/www/mrtg options[_]: growright,bits ###################################################################### then: [root@kuto3 ~]# env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg And then: [root@kuto3 ~]# indexmaker /var/www/mrtg/index.html /etc/mrtg/mrtg.cfg ERROR: unable to open config file: /var/www/mrtg/index.html [root@kuto3 ~]# touch /var/www/mrtg/index.html [root@kuto3 ~]# chmod 777 /var/www/mrtg/index.html This is where the problem start when i populate /var/www/mrtg [root@kuto3 ~]# indexmaker /var/www/mrtg/index.html /etc/mrtg/mrtg.cfg Use of uninitialized value $first in pattern match (m//) at /usr/bin/../lib/mrtg2/MRTG_lib.pm line 611. ERROR: "WorkDir" not specified in mrtg config file I dont know where the problem is coming from as my directives are found in my mrtg.cfg [root@kuto3 ~]# rpm -qa | grep -i mrtg mrtg-libs-2.16.2-5.el6.i686 mrtg-2.16.2-5.el6.i686 [root@kuto3 ~]# rpm -qa | grep -i snmp net-snmp-utils-5.5-27.el6.i686 net-snmp-libs-5.5-27.el6.i686 net-snmp-5.5-27.el6.i686 perl-SNMP_Session-1.12-4.el6.noarch [root@kuto3 ~]# I need help on solving problem =(( Thanks. -- View this message in context: http://mrtg-mailinglists.795376.n2.nabble.com/ERROR-WorkDir-not-specified-in-mrtg-config-file-tp6337483p6337483.html Sent from the MRTG Users Mailinglist mailing list archive at Nabble.com. _______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
