MRTG / SNMP probleempje, hlp plz!

Pagina: 1
Acties:
  • 116 views sinds 30-01-2008
  • Reageer

  • GiLuX
  • Registratie: Juni 1999
  • Laatst online: 12-11-2025
ok,
ik heb net heel GoT en internet gelezen maar weet nog steeds niet waarom dit fout gaat.
moet er wel bij zeggen dat ik geen sysadmin oid ben dus mischien wel hele domme dingen tot nu toe heb gedaan.

ik heb redhat6.2 bakje en ik wil mrtg installen.


ik heb gedaan:

de laatste release van ucd-snmp gedowned en geinstalled.
snmpd deamon gestart, draait nu.

mrtg gedowned en installed.

user aangemaakt volgens de man page en unix-guide.txt van ene wes.
vervolgens ook een rouser aangemaakt en van password voorzien.

vervolgens:
./cfgmaker --global 'WorkDir: /home/gilles/www/userdirs/html/mrtg' --global 'Options[_]: bits,growright' --output /etc/mrtg/mrtg.cfg snmpuserwachtwoord@ipnummervanmebak

dit loopt uit in een berg foutmeldingen:
eerst allemaal van deze jongens:
----------------------------------------
--base: Walking ifOperStatus
SNMP Error:
no response received
SNMPv1_Session (remote host: "ip.nummer.vanme.bak" [ip.nummer.vanme.bak].161)
community: "snmpuserwachtwoord"
request ID: 587667747
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
-----------------------------------------

en stopt dan met deze:
-----------------------------------------
at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.8 on snmpuserwachtwoord@ip.nummer.vanme.bak:
at ./cfgmaker line 107
-----------------------------------------
wat gaat hier fout en waarom?

ipv 'public' als community heb ik voor het wachtwoord van mijn readonly user gekozen omdat dat volgens andere draadjes hier vereist is.

"I disagree with what you are saying, but I will defend to the death your right to say it." -- not clear who


  • bodiug
  • Registratie: Augustus 2001
  • Laatst online: 17-08 13:09
Werkt "snmpwalk 123.123.123.123 public" wel gewoon?

Verwijderd

Verwijder je SNMP Config file eens (/etc/snmp of whereis snmpd.conf )...

Dan werkt ie wel ;)

Verwijderd

Of configureer dat bestand op de goede mannier.

  • Rembrand20
  • Registratie: Juli 2001
  • Laatst online: 22-09-2023
Als je SNMP gewoon geinstalleerd hebt en daarna gestart gaat het niet werken. je moet ik de etc/snmpd.conf wel wat aanpassingen maken. Welke kun je op de site van net-snmp zien. wat krijg je te zien als je snmpdf ipnr. community intype of snmpstatus ipnr. community.

Kijk anders eens in /var/log/messages wat daar instaat over snmp

suc6

Model 3 LR AWD Solid Black / Black / Aero / Trekhaak - Bestelling 2-10 Leaseplan, 4-10 Tesla, RN 22-09, Nieuwe RN 25-11, VIN Yes, leverdatum: ?/?/19(?)


  • GiLuX
  • Registratie: Juni 1999
  • Laatst online: 12-11-2025
Op woensdag 20 februari 2002 09:13 schreef Rembrand20 het volgende:
Als je SNMP gewoon geinstalleerd hebt en daarna gestart gaat het niet werken. je moet ik de etc/snmpd.conf wel wat aanpassingen maken. Welke kun je op de site van net-snmp zien. wat krijg je te zien als je snmpdf ipnr. community intype of snmpstatus ipnr. community.

Kijk anders eens in /var/log/messages wat daar instaat over snmp

suc6
in messages staat nix.

/usr/local/share/snmp/snmpconf/snmp.conf geeft een "error" reading file

snmpstatus ipnr geeft een 'no response'

/etc/snmp.conf bestaat niet.

???

net-snmp site is niet hetzelfde als ucd-snmp al zeggen ze wel dat het veel op ucd-snmp lijkt?

mischien dat je me naar een howto kan verwijzen, want ik ga er steeds minder van snappen.

"I disagree with what you are saying, but I will defend to the death your right to say it." -- not clear who


  • Rembrand20
  • Registratie: Juli 2001
  • Laatst online: 22-09-2023
wat is je community dan

en als je no response krijgt dan draait snmp niet.

wat krijg je als je ps -ef | grep snmpd intypte

en post het begin stuk van je snmpd.conf eens.

Model 3 LR AWD Solid Black / Black / Aero / Trekhaak - Bestelling 2-10 Leaseplan, 4-10 Tesla, RN 22-09, Nieuwe RN 25-11, VIN Yes, leverdatum: ?/?/19(?)


  • Rembrand20
  • Registratie: Juli 2001
  • Laatst online: 22-09-2023
en volgens mij is ucd-snmp net-snmp geworden maar ik kan het fout hebben

Welcome To The NET-SNMP Home Page
Previously known as "ucd-snmp"


http://net-snmp.sourceforge.net/

edit:

Maar dat heb ik niet want het staat ook op de homepage

Model 3 LR AWD Solid Black / Black / Aero / Trekhaak - Bestelling 2-10 Leaseplan, 4-10 Tesla, RN 22-09, Nieuwe RN 25-11, VIN Yes, leverdatum: ?/?/19(?)


  • GiLuX
  • Registratie: Juni 1999
  • Laatst online: 12-11-2025
snmpd draait prima, daar twijfel ik niet aan.

wat betreft die community, dat is het wachtwoord van mijn read-only user.

wat ik verder ook als community invoer-> no response.

ik heb 3! snmpd.confs,
welke is de juiste?

/usr/local/share/snmp/snmpconf/snmpd.conf -> is een directory

/usr/local/share/snmp/snmpd.conf -> hier staan mijn users in

/var/ucd-snmp/snmpd.conf ->
#
# 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.
#

usmUser 1 3 0x800007e5017f000001 0x61726f7573657200 0x61726f7573657200 NULL .1.3.6.1.6.3.10.1.1.2 0x31f47d2ae
718c7fffa98a68571e29a4f .1.3.6.1.6.3.10.1.2.2 0x31f47d2ae718c7fffa98a68571e29a4f ""
usmUser 1 3 0x800007e5017f000001 0x6f746865727573657200 0x6f746865727573657200 NULL .1.3.6.1.6.3.10.1.1.2 0x3
1f47d2ae718c7fffa98a68571e29a4f .1.3.6.1.6.3.10.1.2.2 0x31f47d2ae718c7fffa98a68571e29a4f ""
usmUser 1 3 0x800007e5017f000001 0x61726f7573657274776f00 0x61726f7573657274776f00 NULL .1.3.6.1.6.3.10.1.1.2
0xb493abe466045bdf16797394979a1d53 .1.3.6.1.6.3.10.1.2.2 0xb493abe466045bdf16797394979a1d53 ""
usmUser 1 3 0x800007e5017f000001 0x736e6d7075736572626c6100 0x736e6d7075736572626c6100 NULL .1.3.6.1.6.3.10.1
.1.2 0x31f47d2ae718c7fffa98a68571e29a4f .1.3.6.1.6.3.10.1.2.2 0x31f47d2ae718c7fffa98a68571e29a4f ""
engineBoots 6
oldEngineID 0x800007e5017f000001

"I disagree with what you are saying, but I will defend to the death your right to say it." -- not clear who


  • CBA
  • Registratie: November 2000
  • Laatst online: 14-08 21:10

CBA

een vat, een vat, een vat !

Op woensdag 20 februari 2002 11:24 schreef GiLuX het volgende:
snmpd draait prima, daar twijfel ik niet aan.

wat betreft die community, dat is het wachtwoord van mijn read-only user.

wat ik verder ook als community invoer-> no response.

ik heb 3! snmpd.confs,
welke is de juiste?

/usr/local/share/snmp/snmpconf/snmpd.conf -> is een directory

/usr/local/share/snmp/snmpd.conf -> hier staan mijn users in

/var/ucd-snmp/snmpd.conf ->
Heb je er geen in /etc/snmp/ staan ?
die kan je deleten en dan nog es cfgmaker draaien.

Diablo 3 Profiel - WoW Warrior


  • Rembrand20
  • Registratie: Juli 2001
  • Laatst online: 22-09-2023
Ik denk dat geen van drieen de goede is. volgens mij moet er een /etc/snmp/snmpd.conf bestaan met de volgende inhoud.
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
####
# First, map the community name "public" into a "security name"

#    sec.name  source       community
com2sec notConfigUser  default   public

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

#    groupName  securityModel securityName
group   notConfigGroup v1        notConfigUser
group   notConfigGroup v2c       notConfigUser

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

#    name        incl/excl     subtree     mask(optional)
view    systemview     included system

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

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

en deze code moet je een stukje aanpassen.
en wat er verder nog staat moet je niet aankomen.

Model 3 LR AWD Solid Black / Black / Aero / Trekhaak - Bestelling 2-10 Leaseplan, 4-10 Tesla, RN 22-09, Nieuwe RN 25-11, VIN Yes, leverdatum: ?/?/19(?)


  • GiLuX
  • Registratie: Juni 1999
  • Laatst online: 12-11-2025
Op woensdag 20 februari 2002 11:48 schreef Rembrand20 het volgende:
...
hmm,
wat moet ik dan precies aanpassen?
ik zie hier ook alleen maar v1 en v2c bijstaan, de mijne heeft het altijd over v3c..

tjemig, dit is allemaal een stuk lastiger dan bv even apache/sendmail/samba/tomcat ed. configureren :(

"I disagree with what you are saying, but I will defend to the death your right to say it." -- not clear who

Pagina: 1