mrtg config indexmaker problem
by vinmansbrew from LinuxQuestions.org on (#537PD)
Rhel 8.1
snmpd 5.8
mrtg-2.17.7-1.el8.x86_64
working on a new mrtg server, I did not set up the old one, and I have no notes for it.
Snmp is installed, I created a user for it, since I am doing snmp v3.
I can run the snmpwalk command:
Code:snmpwalk -v3 -u admin -l authNoPriv -a MD5 -x DES -A 12345678 -X 12345678 localhostAnd it does output as it should, from what I can tell.
Latest mrtg for rhel8.
I mkdir /var/www/mrtg.
Then I run Code:cfgmaker --global 'WorkDir: /var/www/mrtg' --output /etc/mrtg/mrtg.cfg public@localhostAnd it does make the mrtg.cfg file, but it doesn't seem to populate much, not sure if it should be.
Contents of mrtg.cfg:Quote:
Maybe there should be more?
Problem comes when I run the indexmaker, Code:indexmaker --output=/var/www/mrtg/index.html /etc/mrtg/mrtg.cfgI get the error: ERROR: did not find any matching data in cfg file
I am running as root for all of this. I can't seem to find much info on rhel8 for this error, plenty of ubuntu, but the fixes don't seem to apply.
Permissions match the old server. Snmp is same on both servers, but I am not sure that is the issue.
Any thoughts on this?
Thanks!


snmpd 5.8
mrtg-2.17.7-1.el8.x86_64
working on a new mrtg server, I did not set up the old one, and I have no notes for it.
Snmp is installed, I created a user for it, since I am doing snmp v3.
I can run the snmpwalk command:
Code:snmpwalk -v3 -u admin -l authNoPriv -a MD5 -x DES -A 12345678 -X 12345678 localhostAnd it does output as it should, from what I can tell.
Latest mrtg for rhel8.
I mkdir /var/www/mrtg.
Then I run Code:cfgmaker --global 'WorkDir: /var/www/mrtg' --output /etc/mrtg/mrtg.cfg public@localhostAnd it does make the mrtg.cfg file, but it doesn't seem to populate much, not sure if it should be.
Contents of mrtg.cfg:Quote:
# Created by # /bin/cfgmaker --global "WorkDir: /var/www/mrtg" --output /etc/mrtg/mrtg.cfg public@localhost ### 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 ###################################################################### # System: fqdn # Description: Linux fqdn 4.18.0-193.el8.x86_64 #1 SMP Fri Mar 27 14:35:58 UTC 2020 x86_64 # Contact: Root <root@localhost> (configure /etc/snmp/snmp.local.conf) # Location: Unknown (edit /etc/snmp/snmpd.conf) ###################################################################### |
Problem comes when I run the indexmaker, Code:indexmaker --output=/var/www/mrtg/index.html /etc/mrtg/mrtg.cfgI get the error: ERROR: did not find any matching data in cfg file
I am running as root for all of this. I can't seem to find much info on rhel8 for this error, plenty of ubuntu, but the fixes don't seem to apply.
Permissions match the old server. Snmp is same on both servers, but I am not sure that is the issue.
Any thoughts on this?
Thanks!