[mrtg] cannot get mrtg to work - problem ports ?!?!

Van Bossche Koen Koen.VanBossche at KONE.com
Wed Oct 31 13:44:54 MET 2001


Hi all,

I do not succeed getting mrtg running. The problem starts at making the
mrtg.cfg file. I assume problem is within forwarding snmp ports. Can
somebody help me out with this?

This is how it is configured and output of some things I have checked :

1/ squid.conf
acl snmppublic snmp_community public
snmp_port 3401
snmp_access allow localhost
snmp_access allow snmppublic koneip
snmp_access deny all
#snmp_incoming_address 0.0.0.0
#snmp_outgoing_address 0.0.0.0

2/ check port snmp
[root at MKOLXS01 local]# lsof -i | grep 3401
squid     17203   root   44u  IPv4 996925       UDP *:3401

3/ installed exactly according
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/unix-guide.html

4/ it screws up on cfgmaker :
[root at MKOLXS01 bin]# ./cfgmaker --global 'WorkDir: /var/squid/html/mrtg'
--global 'Options[_]: bits,growright' --output
/var/squid/html/mrtg/cfg/mrtg.cfg snmppublic at mkolxs01.nt.kone.com
--base: Get Device Info on snmppublic at mkolxs01.nt.kone.com:
SNMP Error:
no response received
SNMPv1_Session (remote host: "mkolxs01.nt.kone.com" [138.249.200.14].161)
                  community: "snmppublic"
                 request ID: 1412601396
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /opt/webtools/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for sysDescr sysContact sysName sysLocation sysObjectID on
snmppublic at mkolxs01.nt.kone.com:
 at ./cfgmaker line 657
--base: Vendor Id:
--base: Populating confcache

[root at MKOLXS01 bin]# ./cfgmaker --global 'WorkDir: /var/squid/html/mrtg'
--global 'Options[_]: bits,growright' --output
/var/squid/html/mrtg/cfg/mrtg.cfg snmppublic at localhost
--base: Get Device Info on snmppublic at localhost:
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "snmppublic"
                 request ID: 1318257636
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5

Here it seams that whatever I use localhost or hostname does not work. My
port for snmp has been setup in squid for 3401 to use, however it seems to
try using port 161. How could I solve this problem, I believe I need to
forward snmp port 3401 to 161. Is this the case? What do I need to do in
squid and in /etc/services ?
Can somebody help me with this one? I am trying for some time, but do not
find a solution. 

Hope someone could help?

BR/Koen

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list