[squid-users] Squid + MRTG Error SNMP 3401

From: Pratchaya Chatuphian <pratchaya.note@dont-contact.us>
Date: Mon, 12 Feb 2007 00:33:30 +0700

Hi , Everyone :: I need your help

i can't successful about SQUID + MRTG .
Anyone Can help me ?

i got error in /var/log/squid/cache.log
like this.
#############
commBind: Cannot bind socket FD 13 to *:3401: (13) Permission denied
FATAL: Cannot open snmp Port
#############

When i config /etc/squid/squid.conf

#############
snmp_port 3401
acl snmppublic snmp_community public
snmp_access allow snmppublic all
snmp_access deny all
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 255.255.255.0
#############

Thank you very much for advance
Regards.,
Pratchaya

PS. my netstat -tanp by default ( when i comment this line
"#snmp_port 3401" and start squid )

[root@berlin selinux]# netstat -tanp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address
     State PID/Program name
tcp 0 0 0.0.0.0:199 0.0.0.0:*
     LISTEN 2763/snmpd
tcp 0 0 0.0.0.0:3306 0.0.0.0:*
     LISTEN 11124/mysqld
tcp 0 0 0.0.0.0:21 0.0.0.0:*
     LISTEN 2798/vsftpd
tcp 0 0 192.168.1.2:53 0.0.0.0:*
     LISTEN 2653/named
tcp 0 0 192.168.2.1:53 0.0.0.0:*
     LISTEN 2653/named
tcp 0 0 127.0.0.1:53 0.0.0.0:*
     LISTEN 2653/named
tcp 0 0 0.0.0.0:3128 0.0.0.0:*
     LISTEN 5202/(squid)
tcp 0 0 0.0.0.0:25 0.0.0.0:*
     LISTEN 2982/master
tcp 0 0 127.0.0.1:953 0.0.0.0:*
     LISTEN 2653/named
tcp 0 0 :::110 :::*
     LISTEN 2919/dovecot
tcp 0 0 :::143 :::*
     LISTEN 2919/dovecot
tcp 0 0 :::80 :::*
     LISTEN 3005/httpd
tcp 0 0 :::22 :::*
     LISTEN 2773/sshd
tcp 0 0 :::443 :::*
     LISTEN 3005/httpd
[root@berlin selinux]#
Received on Sun Feb 11 2007 - 10:33:34 MST

This archive was generated by hypermail pre-2.1.9 : Thu Mar 01 2007 - 12:00:01 MST