mrtg und snmp

From: Stefan Herrmann <stefhe(at)gmx.de>
Date: Sun, 04 Aug 2002 20:43:28 +0200

Hi,

ich möchte endlich mal hinbekommen, daß ich mein DSL-
Interface zum Internet mit mrtg auswerten kann. Nachdem
mein Versuch vor einiger Zeit fehlgeschlagen ist, habe ich
es heute nochmals versucht. Leider ohne Erfolg.

Hier meine vorgehensweise (unter FBSD 4.6):

snmpd.conf unter /usr/local/share/snmp/ erstellt:

###############################################################################
# System contact information
syscontact stefhe(at)gmx.de
syslocation Bonn, Germany
###############################################################################
#
# The rules:
# localhost has read and write access.
# local class C network has read and write access.
# Everyone else gets just the system group.
#
# sec.name source community (password)
com2sec Mybox localhost geheim
com2sec LocalLan 192.168.1.0/24 public
com2sec Outside default public
#
# group.name sec.model sec.name
group RWGroup V1 Mybox
group ROGroup V1 LocalLan
group Others V1 Outside
#
# incl/excl subtree mask
view all included .1 80
view system included system fe
#
# context sec.model sec.level prefix read write notif
access ROGroup "" V1 noauth exact all none none
access RWGroup "" V1 noauth exact all all all
access Others "" V1 noauth exact system none all
###############################################################################

Dann snmpd gestartet: (mit logfile und Debug on)

# /usr/local/sbin/snmpd -c /usr/local/share/snmp/snmp.conf -l
/var/log/snmpd.log -D

Wenn ich mich nun an den snmpd connecte:

# cfgmaker geheim(at)localhost

erhalte ich im snmp-logfile folgende Ausgabe:

UCD-SNMP version 4.2.5
trace: main(): snmpd.c, 774
snmpd: We're up. Starting to process data.
Connection from 127.0.0.1 REFUSED
trace: run_alarms(): snmp_alarm.c, 138
snmp_alarm_run_alarms: looking for alarms to run...
Connection from 127.0.0.1 REFUSED
trace: run_alarms(): snmp_alarm.c, 138
snmp_alarm_run_alarms: looking for alarms to run...
Connection from 127.0.0.1 REFUSED
[...]

Was habe ich bei der snmp-config falsch gemacht ?
eigentlich müßte es so doch gehen. Any idea ?

Ciao
Stefan

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Sun 04 Aug 2002 - 20:43:14 CEST

search this site