[mrtg] snmpget problems
Stuart Clark
mrtg at spacelink.com.au
Fri Feb 13 14:32:15 MET 2004
Hi
I had a squid box on Redhat 7.3 and MRTG was working well using snmp on
port 3104 from another box
I reinstalled squid on a new box with redhat 9 and used all the usual
squid settings to enable snmp.
acl snmppublic snmp_community public
snmp_port 3104
acl mrtg src 203.166.53.7/255.255.255.255
snmp_access allow snmppublic mrtg
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 255.255.255.0
Now its broken!
But unexplainable are the clues. Can you help please
I have upgraded the new mibs.txt
I have the line LoadMIBs: /var/www/html/mrtg/scripts/mib.txt in my
mrtg.cfg
MRTG BOX - 203.166.53.7
SQUID BOX - 203.166.53.4
IT WORKS ON THE MRTG BOX USING SHELL
[root at mrtg mrtg]# snmpget -v 1 -c public -m
var/www/html/mrtg/scripts/mib.txt 203.166.53.4:3104 cacheSysVMsize
SQUID-MIB::cacheSysVMsize = INTEGER: 65500
[root at mrtg mrtg]# snmpget -v 1 -c public -m
/var/www/html/mrtg/scripts/mib.txt 203.166.53.4:3104 cacheSysVMsize
SQUID-MIB::cacheSysVMsize = INTEGER: 65528
BUT FAILS ON MRTG BOX USING MRTG (snmp_util.pm)
[root at mrtg mrtg]# /usr/bin/mrtg /var/www/html/mrtg/mrtg.cfg
SNMP Error:
no response received
SNMPv1_Session (remote host: "203.166.53.4" [203.166.53.4].3401)
community: "public"
request ID: 1295099031
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for cacheSysVMsize cacheSysVMsize on
public at 203.166.53.4:3401 at /usr/bin/mrtg line 1491
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
ERROR: Bailout after SIG INT
[root at proxy sbin]# squid -v
Squid Cache: Version 2.5.STABLE1
configure options: --host=i386-redhat-linux --build=i386-redhat-linux
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
--libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var
--sharedstatedir=/usr/com --mandir=/usr/share/man
--infodir=/usr/share/info --exec_prefix=/usr --bindir=/usr/sbin
--libexecdir=/usr/lib/squid --localstatedir=/var --sysconfdir=/etc/squid
--enable-poll --enable-snmp --enable-removal-policies=heap,lru
--enable-storeio=aufs,coss,diskd,ufs --enable-ssl
--with-openssl=/usr/kerberos --enable-delay-pools
--enable-linux-netfilter --with-pthreads
--enable-basic-auth-helpers=LDAP,NCSA,PAM,SMB,SASL,MSNT
--enable-ntlm-auth-helpers=SMB,winbind
--enable-external-acl-helpers=ip_user,ldap_group,unix_group,wbinfo_group
,winbind_group
Regards
Stuart Clark RHCE
Spacelink Communications Pty Ltd
--
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