Make sure snmpd is listening on UDP 161
Make sure that local firewall is allowing UDP 161, or is disabled for testing purposes.Code:# netstat -pantu|grep 161 udp 0 0 0.0.0.0:161 0.0.0.0:* 2088/snmpd
�i am running a gateway with red hat linux 9.0 and i want to configure mrtg in that gateway i did following but there is some problem they are following: Installing the SNMP
# rpm �qa | grep snmp
# rpm �ivh net-snmp-utils-������rpm [RH 9.0 Disk 02]
Configuring SNMP
# cd /etc/snmp
# mv snmpd.conf snmpd.conf.old
# vi snmpd.conf [new file]
rocommunity ropublic [any string]
or
#echo �rocommunity ropublic�>/etc/snmp/snmp.conf
# chkconfig snmpd on
# /etc/rc.d/init.d/snmpd start
# snmpwalk �v 1 �c ropublic localhost system (when I quering this the output is :Timeout:no response from localhost)
# snmpwalk �v 1 �c ropublic localhost interface(when I quering this the output is :Timeout:no response from localhost)
Step 2: Web Server
# rpm �qa | grep httpd
# rpm �ivh httpd-2���..rpm
# service httpd start
Step 3: MRTG
Installing MRTG
# rpm �ivh mrtg-2.10����rpm [RH 9.0 Disk 02]
# vi /etc/sysconfig/i18n
Replace LANG=�en_US.UTF_8�
with LANG=�en_US�
# init 6
Making Configuration File:
# cfgmaker - -output=/etc/mrtg/shahin.cfg - - global �workdir: /var/www/html/traffic� - - global �options[ _ ]: growright, bits� ropublic@localhost (when I quering this the output is :no file created)
please help me i don't know what to do...???
Make sure snmpd is listening on UDP 161
Make sure that local firewall is allowing UDP 161, or is disabled for testing purposes.Code:# netstat -pantu|grep 161 udp 0 0 0.0.0.0:161 0.0.0.0:* 2088/snmpd
if not what i have to do??????please tell me in detail.......i am novice...![]()
yes it is listening on UDP 161..........the what i have to do?????
Post the output of netstat -pantu|grep 161 within code tags
Also post the output of chkconfig --list within code tags
Bookmarks