[mrtg] ERROR: "WorkDir" not specified in mrtg config file
kutasheax
rmabeza at gmail.com
Fri May 6 14:48:29 CEST 2011
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" snmpo at 192.168.0.197
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" snmpo at 192.168.0.197
### 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 at kuto3 ~]# env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
And then:
[root at kuto3 ~]# indexmaker /var/www/mrtg/index.html /etc/mrtg/mrtg.cfg
ERROR: unable to open config file: /var/www/mrtg/index.html
[root at kuto3 ~]# touch /var/www/mrtg/index.html
[root at kuto3 ~]# chmod 777 /var/www/mrtg/index.html
This is where the problem start when i populate /var/www/mrtg
[root at 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 at kuto3 ~]# rpm -qa | grep -i mrtg
mrtg-libs-2.16.2-5.el6.i686
mrtg-2.16.2-5.el6.i686
[root at 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 at 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.
More information about the mrtg
mailing list