Hi all,
I am going to monitor squid proxy server. So I have added below lines
squid.conf file.
acl snmpmanager src 192.1.54.62
acl snmppublic snmp_community public
snmp_port 3401
snmp_access allow snmppublic snmpmanager
snmp_access deny all
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 0.0.0.0
below URL helped me
http://www.squid-cache.org/mail-archive/squid-users/200010/0751.html
in addition to that, below squid wiki also helped me.
http://wiki.squid-cache.org/SquidFaq/SquidSnmp
Any way, here are outputs of the snmpwalk commands.
[root@mail ~]# snmpwalk -v2c -c public 192.1.54.62:3401
.1.3.6.1.4.1.3495.1.1 SNMPv2-SMI::enterprises.3495.1.1.1.0 = INTEGER:
232
SNMPv2-SMI::enterprises.3495.1.1.2.0 = INTEGER: 4464
SNMPv2-SMI::enterprises.3495.1.1.3.0 = Timeticks: (101615) 0:16:56.15
the below command with -m /etc/squid/mib.txt
[root@mail ~]# snmpwalk -m /etc/squid/mib.txt -v2c -c public
192.1.54.62:3401 .1.3.6.1.4.1.3495.1.1
SQUID-MIB::cacheSysVMsize.0 = INTEGER: 232
SQUID-MIB::cacheSysStorage.0 = INTEGER: 4464
SQUID-MIB::cacheUptime.0 = Timeticks: (99625) 0:16:36.25
They both give outputs.
I have already installed snmp and mrtg RPMs. pls see below for installed RPMs.
[root@mail ~]# rpm -qa |grep snmp
net-snmp-utils-5.1.2-11.EL4.11
net-snmp-5.1.2-11.EL4.10
net-snmp-libs-5.1.2-11.EL4.10
[root@mail ~]# rpm -qa |grep mrtg
mrtg-2.10.15-2a
Now, I need to generate mrtg.cfg file.
How to do it?
if I generate mrt.cfg, I will be able to issue the command
env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
and indexmaker commad to generate index.html as follows.
indexmaker --output=/var/www/mrtg/index.html /etc/mrtg/mrtg.cfg
Any advice pls?
-- Thank you Indunil JayasooriyaReceived on Fri Dec 21 2007 - 03:17:19 MST
This archive was generated by hypermail pre-2.1.9 : Tue Jan 01 2008 - 12:00:02 MST