17. juli 2004 - 19:26Der er
13 kommentarer og 1 løsning
MRTG - overvågning af trafik. cfgmaker problemer
Jeg kan simpelthen ikke se finde fejlen, så ville høre om der er nogen der kan hjælpe mig igang.
Jeg har lige installeret MRTG og SNMPd på min Debian server og starter snmpd. Jeg vil så prøve at trække noget statistik ud via > cfgmaker public localhost
men får bare denne fejl meddelelse:
cfgmaker localhost public --base: Get Device Info on public@localhost: SNMP Error: no response received SNMPv1_Session (remote host: "localhost" [127.0.0.1].161) community: "public" request ID: -475927748 PDU bufsize: 8000 bytes timeout: 2s retries: 5 backoff: 1) at /usr/share/perl5/SNMP_util.pm line 622 SNMPWALK Problem for 1.3.6.1.2.1.1 on public@localhost::::::v4only at /usr/bin/cfgmaker line 828 WARNING: Skipping public@localhost: as no info could be retrieved
--base: Get Device Info on public@public: Error: can't resolve "public" to IP address at /usr/share/perl5/SNMP_util.pm line 424 SNMPWALK Problem for public@public::::::v4only at /usr/bin/cfgmaker line 828 WARNING: Skipping public@public: as no info could be retrieved
# Created by # /usr/bin/cfgmaker localhost public
### Global Config Options
# for UNIX # WorkDir: /home/http/mrtg
# for Debian WorkDir: /var/www/mrtg
# or for NT # WorkDir: c:\mrtgdata
### Global Defaults
# to get bits instead of bytes and graphs growing to the right # Options[_]: growright, bits
den er genstartet op til flere gange og er rimelig sikker på at den kører, men du siger at den skal konfigureres...dét har jeg ikke gjort. Hvad skal konfigureres og hvor ?
jeg kommer nok til at melde pas - din konfigurationsfil til snmp - er den "original" således at der automatisk lyttes til "public"?
Her er header delen på min (fra en RedHat): ############################################################################### # # snmpd.conf: # An example configuration file for configuring the ucd-snmp snmpd agent. # ############################################################################### # # This file is intended to only be as a starting point. Many more # configuration directives exist than are mentioned in this file. For # full details, see the snmpd.conf(5) manual page. # # All lines beginning with a '#' are comments and are intended for you # to read. All other lines are configuration commands for the agent.
Som du kan se, så er standard filen opsat til at lytte efter public (RO) på RH
# # net-snmp (or ucd-snmp) persistent data file. # # DO NOT STORE CONFIGURATION ENTRIES HERE. # Please save normal configuration tokens for snmpd in SNMPCONFPATH/snmpd.conf. # Only "createUser" tokens should be placed here by snmpd administrators. #
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.