LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   SNMP error when running MRTG: no response (https://www.linuxquestions.org/questions/linux-general-1/snmp-error-when-running-mrtg-no-response-148029/)

zhgalaxy 02-19-2004 10:20 AM

SNMP error when running MRTG: no response
 
anybody helps?

I installed MRTG under /usr/local/mrtg-2 and installed SNMP under /usr/local/net-snmp

then I did the foloowing step:
cd /usr/local/mrtg-2/bin
cfgmaker --global 'WorkDir: /home/httpd/mrtg' \
--global 'Options[_]: bits,growright' \
--output=/home/mrtg/cfg/mrtg.cfg \
public@my_linux_IP_address

and I got the error message like this: from the error message, it seems that SNMP is not installed properly. this is what I did to install SNMP,
I downloaded the net-snmp-*.tar.gz under /usr/local/src
unpack it,
cd /usr/local/net-snmp-5.0.9
./configure --prefix=/usr/local/net-snmp
make
make install
:(

SNMP Error:
no response received
SNMPv1_Session (remote host: "127.0.0.1" [127.0.0.1].161)
community: "public"
request ID: 854669880
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 458
SNMPGET Problem for sysDescr sysContact sysName sysLocation sysObjectID on public@127.0.0.1:
at /usr/bin/cfgmaker line 673
--base: Vendor Id:
--base: Populating confcache
--snpo: confcache public@127.0.0.1: Descr -->
--snpo: Skipping ipAdEntIfIndex scanning because public@127.0.0.1: does not seem to support it
--snpo: confcache public@127.0.0.1: Name -->
--snpo: confcache public@127.0.0.1: Type -->
--snpo: Skipping ifPhysAddress scanning because public@127.0.0.1: does not seem
to support it
--base: Get Interface Info
--base: Walking ifIndex
SNMP Error:
no response received
SNMPv1_Session (remote host: "127.0.0.1" [127.0.0.1].161)
community: "public"
request ID: 854669883
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 570
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.1 on public@127.0.0.1:
at /usr/bin/cfgmaker line 107
--base: Walking ifType
SNMP Error:
no response received
SNMPv1_Session (remote host: "127.0.0.1" [127.0.0.1].161)
community: "public"
request ID: 854669884
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 570
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.3 on public@127.0.0.1:
at /usr/bin/cfgmaker line 107
--base: Walking ifSpeed
SNMP Error:
no response received
SNMPv1_Session (remote host: "127.0.0.1" [127.0.0.1].161)
community: "public"
request ID: 854669885
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 570
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.5 on public@127.0.0.1:
at /usr/bin/cfgmaker line 107
--base: Walking ifAdminStatus
SNMP Error:
no response received
SNMPv1_Session (remote host: "127.0.0.1" [127.0.0.1].161)
community: "public"
request ID: 854669886
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 570
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.7 on public@127.0.0.1:
at /usr/bin/cfgmaker line 107
--base: Walking ifOperStatus
SNMP Error:
no response received
SNMPv1_Session (remote host: "127.0.0.1" [127.0.0.1].161)
community: "public"
request ID: 854669887
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 570
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.8 on public@127.0.0.1:
at /usr/bin/cfgmaker line 107
--base: Writing /home/mrtg/cfg/mrtg.cfg
ERROR: creating /home/mrtg/cfg/mrtg.cfg: No such file or directory

__________________

rstory 03-19-2004 09:16 PM

Quote:

Originally posted by zhgalaxy
./configure --prefix=/usr/local/net-snmp
make
make install

Did you configure access control for net-snmp? Try putting 'rocommunity public' in /usr/local/net-snmp/share/snmpd.conf.

fdasfdsfsd 04-02-2004 04:33 AM

It seems that you haven't started the snmpd-daemon.

Try the startscript which is maybe located in /etc/rc.d or where the start scripts are located in your distribution.

View this thread for more information on testing if snmpd is running correctly: http://www.linuxquestions.org/questions/history/154119


All times are GMT -5. The time now is 02:38 AM.