[RH7.2] ucd-snmp werkt niet goed..

Pagina: 1
Acties:

  • Puntslash
  • Registratie: December 2000
  • Niet online
Ik had het idee om na een linux installatie ook weer eens mrtg te gaan draaien..
Alles voorelkaar: apache/php/gd etc..

Heb ucd-snmp geinstalleerd, en vervolgens mrtg gecompileerd.

Ging alllemaal goed tot dat ik cfgmaker ging starten met deze opties:
code:
1
2
./cfgmaker --global 'Workdir: /home/mike/www/_stats/mrtg' --global 'Options[_]: bits,growright' --
output /home/mike/www/_stats/mrtg/mrtg.cfg public@192.168.0.100

Ik kreeg errors zoals deze:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--base: Get Device Info on public@192.168.0.100:
--base: Vendor Id:
--base: Populating confcache
--snpo: Skipping ifName scanning because public@192.168.0.100: does not seem to support it
--snpo: Skipping ifDescr scanning because public@192.168.0.100: does not seem to support it
--snpo: Skipping ipAdEntIfIndex scanning because public@192.168.0.100: does not seem to support it
--snpo: Skipping ifType scanning because public@192.168.0.100: does not seem to support it
--snpo: Skipping ifPhysAddress scanning because public@192.168.0.100: does not seem to support it
--base: Get Interface Info
--base: Walking ifIndex
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.1)
SNMPv1_Session (remote host: "192.168.0.100" [192.168.0.100].161)
            community: "public"
             request ID: 622927964
            PDU bufsize: 8000 bytes
              timeout: 2s
              retries: 5
              backoff: 1)
 at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.1)
SNMPv1_Session (remote host: "192.168.0.100" [192.168.0.100].161)
            community: "public"
             request ID: 622927964
            PDU bufsize: 8000 bytes
              timeout: 2s
              retries: 5
              backoff: 1)
 at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 540

Het lijkt mij dat ik iets verkeerd heb ik m'n config file..
Die is gewoon standaard, dus dat is ook raar..

Weet iemand wat dit kan zijn?

  • Gilles
  • Registratie: Februari 2000
  • Laatst online: 28-07-2025
error status: noSuchName
Hmmz, het lijkt er op alsof de server/machine waar je op connect geen public community heeft geconfigureerd?

  • Puntslash
  • Registratie: December 2000
  • Niet online
Hmm ok, maar dat is toch wel het geval als je een standaard install doet en de conf niet aanpast?

Anyway, hoe maak ik er eentje aan, ik heb die file doorgenomen maar snap er geen hol van :D

  • Coen Rosdorff
  • Registratie: Januari 2000
  • Niet online
De standaard config van de snmp packages van redhat staan niets toe. (iig niet de info over netwerk interfaces.)
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
####
# First, map the community name "public" into a "security name"

#    sec.name  source       community
com2sec public    localhost  public

####
# Second, map the security name into a group name:

#    groupName  securityModel securityName
group   public     v1       public
group   public     v2c       public
group   public     usm       public

####
# Third, create a view for us to let the group have rights to:

#    name        incl/excl     subtree     mask(optional)
view    all     included    .1

####
# Finally, grant the group read-only access to the systemview view.

#    group      context sec.model sec.level prefix read   write  notif
access  public     ""   any  noauth    exact  all    none   none

Als je het betreffende stukje in de snmpd.conf aanpast volgens bovenstaand voorbeeld, dan werkt het wel.

Verwijderd

Of je kunt je snmpd.conf leeggooien, dan werkt ie ook :) (maar dat lijkt me voor de security van je bak niet zo verstandig :))