MRTG & snmpd probleem.

Pagina: 1
Acties:

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

CBA

een vat, een vat, een vat !

Topicstarter
Ik wil graag enkele statistieken op m'n systeem krijgen door middel van MRTG, ik heb dit pakket geinstalleerd.

Alles gaat goed tot ik de cfgmaker wil draaien.
[root@graphic-lettering bin]# ./cfgmaker public@graphic-lettering.intra
--base: Get Device Info on public@graphic-lettering.intra:
SNMP Error:
no response received
SNMPv1_Session (remote host: "graphic-lettering.intra" [192.168.1.5].161)
community: "public"
request ID: 1162952369
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /home/bart/mrtg/mrtg-2.9.17/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for sysDescr sysContact sysName sysLocation sysObjectID on public@graphic-lettering.intra:
at ./cfgmaker line 657
--base: Vendor Id:
--base: Populating confcache
deze error krijg ik
graphic-lettering.intra is m'n hostname
snmpd is geïnstalleerd en werkt.

ik krijg meermaals deze fout te zien en op het einde krijg ik dit te zien:
### Global Config Options

# for UNIX
# WorkDir: /home/http/mrtg

# or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits


######################################################################
# System: graphic-lettering.intra
# Description: Linux graphic-lettering.intra 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686
# Contact: Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
# Location: Unknown (edit /etc/snmp/snmpd.conf)
######################################################################
Iemand enig idee?

Ik heb gezien dat er al meerdere topics hierover geweest zijn, hier en daar iets gevonden, aangepast, maar ik blijf hetzelfde probleem behouden :(

Diablo 3 Profiel - WoW Warrior


  • RvdH
  • Registratie: Juni 1999
  • Laatst online: 28-07 15:42

RvdH

Uitvinder van RickRAID

SNMP draait niet (op 192.168.1.5).

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

CBA

een vat, een vat, een vat !

Topicstarter
ik heb snmpd geherstart ...
[root@graphic-lettering init.d]# ./snmpd restart
Shutting down snmpd: [ OK ]
Starting snmpd: [ OK ]

Diablo 3 Profiel - WoW Warrior


  • cyclone
  • Registratie: Juni 2000
  • Laatst online: 14:35

cyclone

-=Hacking is my life=- (NOT)

Of op 192.168.1.5 draaid geen snmp of je hebt geen read acces op de "Public" community staan.

Ik draai met volle tevredenheid al meer dan een jaartje MRTG ( sorry maar wel onder NT4 ) maar tis echt een superpakket.

En zeker als ik het al aan de praat heb gekregen, trek nu alle stats uit al mijn routertjes en switches in leuke grafiekjes :)

Maaruh ik zou zeggen als je een cisco routertje voorhanden hebt ff snmp in configgen en daar een beetje mee klooien .. dan zal je het zo wel aan de praat hebben ..

Sucses

Bij IT-ers gaat alles automatisch, maar niets vanzelf.
Linux is only free if your time has no value...


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

CBA

een vat, een vat, een vat !

Topicstarter
Op dinsdag 05 februari 2002 13:53 schreef CyCLoNe het volgende:
Of op 192.168.1.5 draaid geen snmp of je hebt geen read acces op de "Public" community staan.
OK, en hoe krijg ik snmp draaiend op 192.168.1.5 en read acces op de "public" community ?

Diablo 3 Profiel - WoW Warrior


  • RvdH
  • Registratie: Juni 1999
  • Laatst online: 28-07 15:42

RvdH

Uitvinder van RickRAID

man snmpd.conf

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

CBA

een vat, een vat, een vat !

Topicstarter
Op dinsdag 05 februari 2002 13:57 schreef strlen het volgende:
man snmpd.conf
Hah, hmm, hier begrijp ik niks van :)

Niemand die een standaard config fileken heeft ?
waar ik desnoods alleen het ip adres moet aanpassen ?

Diablo 3 Profiel - WoW Warrior


  • RvdH
  • Registratie: Juni 1999
  • Laatst online: 28-07 15:42

RvdH

Uitvinder van RickRAID

uit de snmpd manpage:
-p [(udp|tcp):]port[@address][,...]
Makes the agent list on the specified list of
sockets instead of the default port, which is
port 161. Multiple ports can be separated by
commas. Transports can be specified by
prepending the port number with the transport
name ("udp" or "tcp") followed by a colon.
Finally, to bind to a particular interface,
you can specify the address you want it to
bind with.

For example, specifying -p
161,tcp:161,9161@localhost will make the
agent listen on: udp port 161 for any
address, tcp port 161 for any address, and
udp port 9161 on only the interface associ­
ated with the localhost address. Note that
the -T flag (below) changes the default
transport mapping to use (in the above exam­
ple, the default transport mapping is udp.

  • Qui-Gon
  • Registratie: Februari 2000
  • Laatst online: 06-04 10:29
Ik heb wel is gehoord dat het leeg gooien van je snmpd.conf wil helpen. Ik weet niet of je dan wel alle opties krijgt die je wilt, maar probeer het is uit zou ik zeggen.

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

CBA

een vat, een vat, een vat !

Topicstarter
Op dinsdag 05 februari 2002 15:02 schreef Qui-Gon het volgende:
Ik heb wel is gehoord dat het leeg gooien van je snmpd.conf wil helpen. Ik weet niet of je dan wel alle opties krijgt die je wilt, maar probeer het is uit zou ik zeggen.
Ja dit heb ik ook gelezen in één van de vele andere posts, helaas wou dit niet helpen bij mij :(

Diablo 3 Profiel - WoW Warrior


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

CBA

een vat, een vat, een vat !

Topicstarter
Op dinsdag 05 februari 2002 14:57 schreef strlen het volgende:
uit de snmpd manpage:
[..]
./snmpd -help heeft mij hetvolgende
Usage: ./snmpd [-h] [-v] [-f] [-a] [-d] [-V] [-P PIDFILE] [-q] [-D] [-p NUM] [-L] [-l LOGFILE] [-r] [-u uid] [-g gid]

Version: 4.1.1
Author: Wes Hardaker
Email: ucd-snmp-coders@ucd-snmp.ucdavis.edu

-h This usage message.
-H Display configuration file directives understood.
-v Version information.
-f Don't fork from the shell.
-a Log addresses.
-d Dump sent and received UDP SNMP packets
-V Verbose display
-P PIDFILE Use PIDFILE to store process id
-q Print information in a more parsable format (quick-print)
-D Turn on debugging output
-p NUM Run on port NUM instead of the default: 161
-c CONFFILE Read CONFFILE as a configuration file.
-C Don't read the default configuration files.
-L Print warnings/messages to stdout/err
-s Log warnings/messages to syslog
-A Append to the logfile rather than truncating it.
-r Don't exit if root only accessible files can't be opened
-l LOGFILE Print warnings/messages to LOGFILE
(By default LOGFILE=/var/log/snmpd.log)
-g Change to this gid after opening port
-u Change to this uid after opening port
dan heb ik dit uitgevoerd:
./snmpd -a graphic-lettering.intra

maar na het draaien van mrtg cfgmaker nog altijd dezelfde errors.

Diablo 3 Profiel - WoW Warrior


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

CBA

een vat, een vat, een vat !

Topicstarter
Hmm na het nogmaals verwijderen van de conf file krijg ik nu hetvolgende als ik de cfgmaker draai:

./cfgmaker public@graphic-lettering.intra
--base: Get Device Info on public@graphic-lettering.intra:
--base: Vendor Id:
--base: Populating confcache
--snpo: confcache public@graphic-lettering.intra: Descr lo0 --> 1
--snpo: confcache public@graphic-lettering.intra: Descr eth0 --> 2
--snpo: confcache public@graphic-lettering.intra: Ip 127.0.0.1 --> 1
--snpo: confcache public@graphic-lettering.intra: Ip 192.168.1.5 --> 2
--snpo: confcache public@graphic-lettering.intra: Type 24 --> 1
--snpo: confcache public@graphic-lettering.intra: Type 6 --> 2
--snpo: confcache public@graphic-lettering.intra: Eth --> 1
--snpo: confcache public@graphic-lettering.intra: Eth 00-10-5a-48-34-1c --> 2
--base: Get Interface Info
--base: Walking ifIndex
--base: Walking ifType
--base: Walking ifSpeed
--base: Walking ifAdminStatus
--base: Walking ifOperStatus
# Created by
# /home/bart/mrtg/mrtg-2.9.17/bin/cfgmaker public@graphic-lettering.intra


### Global Config Options

# for UNIX
# WorkDir: /www/be/graphic-lettering/bart/mrtg

# or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits


######################################################################
# System: graphic-lettering.intra
# Description: Linux graphic-lettering.intra 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686
# Contact: root@localhost
# Location: Unknown
######################################################################


### Interface 1 >> Descr: 'lo0' | Name: '' | Ip: '127.0.0.1' | Eth: '' ###
### The following interface is commented out because:
### * it is a Software Loopback interface
#
# Target[graphic-lettering.intra_1]: 1:public@graphic-lettering.intra:
# SetEnv[graphic-lettering.intra_1]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="lo0"
# MaxBytes[graphic-lettering.intra_1]: 1250000
# Title[graphic-lettering.intra_1]: Traffic Analysis for 1 -- graphic-lettering.intra
# PageTop[graphic-lettering.intra_1]: <H1>Traffic Analysis for 1 -- graphic-lettering.intra</H1>
# <TABLE>
# <TR><TD>System:</TD> <TD>graphic-lettering.intra in Unknown</TD></TR>
# <TR><TD>Maintainer:</TD> <TD>root@localhost</TD></TR>
# <TR><TD>Description:</TD><TD>lo0 </TD></TR>
# <TR><TD>ifType:</TD> <TD>softwareLoopback (24)</TD></TR>
# <TR><TD>ifName:</TD> <TD></TD></TR>
# <TR><TD>Max Speed:</TD> <TD>1250.0 kBytes/s</TD></TR>
# <TR><TD>Ip:</TD> <TD>127.0.0.1 (localhost)</TD></TR>
# </TABLE>

### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '192.168.1.5' | Eth: '00-10-5a-48-34-1c' ###

Target[graphic-lettering.intra_2]: 2:public@graphic-lettering.intra:
SetEnv[graphic-lettering.intra_2]: MRTG_INT_IP="192.168.1.5" MRTG_INT_DESCR="eth0"
MaxBytes[graphic-lettering.intra_2]: 1250000
Title[graphic-lettering.intra_2]: Traffic Analysis for 2 -- graphic-lettering.intra
PageTop[graphic-lettering.intra_2]: <H1>Traffic Analysis for 2 -- graphic-lettering.intra</H1>
<TABLE>
<TR><TD>System:</TD> <TD>graphic-lettering.intra in Unknown</TD></TR>
<TR><TD>Maintainer:</TD> <TD>root@localhost</TD></TR>
<TR><TD>Description:</TD><TD>eth0 </TD></TR>
<TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
<TR><TD>ifName:</TD> <TD></TD></TR>
<TR><TD>Max Speed:</TD> <TD>1250.0 kBytes/s</TD></TR>
<TR><TD>Ip:</TD> <TD>192.168.1.5 (webserver.graphic-lettering.intra)</TD></TR>
</TABLE>
Moet ik dit nu wegschrijven in een config file of iets dergelijks ?

Diablo 3 Profiel - WoW Warrior


  • Whizzer
  • Registratie: November 2000
  • Laatst online: 16-08 21:58

Whizzer

Flappie!

Ja, dit moet je ergens wegschrijven. In de CfgMaker Manual staat dat je dat met behulp van '--output' kunt doen

p.s. je hebt post

Ik ben geweldig.. en bescheiden! En dat siert me...


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

CBA

een vat, een vat, een vat !

Topicstarter
Op dinsdag 05 februari 2002 15:48 schreef Whizzer het volgende:
Ja, dit moet je ergens wegschrijven. In de CfgMaker Manual staat dat je dat met behulp van '--output' kunt doen

p.s. je hebt post
Thnx, het is gelukt, had het al dankzij putty, gecopy past naar een config file, maar dan zonder de -base lijnen.

Het resultaat is te zien op http://cba.home.dyndns.org

Diablo 3 Profiel - WoW Warrior


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

CBA

een vat, een vat, een vat !

Topicstarter
Oops

Diablo 3 Profiel - WoW Warrior


  • RvdH
  • Registratie: Juni 1999
  • Laatst online: 28-07 15:42

RvdH

Uitvinder van RickRAID

perl -MCPAN -e 'install SNMP::Session'

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

CBA

een vat, een vat, een vat !

Topicstarter
Op dinsdag 05 februari 2002 16:07 schreef strlen het volgende:
perl -MCPAN -e 'install SNMP::Session'
En dit is ?

Diablo 3 Profiel - WoW Warrior


  • RvdH
  • Registratie: Juni 1999
  • Laatst online: 28-07 15:42

RvdH

Uitvinder van RickRAID

Op dinsdag 05 februari 2002 16:19 schreef CBA het volgende:

[..]

En dit is ?
De oplossing voor die foutmelding die je wegge-edit hebt :)

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

CBA

een vat, een vat, een vat !

Topicstarter
Op dinsdag 05 februari 2002 19:41 schreef strlen het volgende:

[..]

De oplossing voor die foutmelding die je wegge-edit hebt :)
hmm dit werkt trouwens niet hier, maar het was gewoon een cronjob die ik geadd had toen mrtg nog niet werkte met een verkeerd pad :)

Diablo 3 Profiel - WoW Warrior


  • RvdH
  • Registratie: Juni 1999
  • Laatst online: 28-07 15:42

RvdH

Uitvinder van RickRAID

Dan was het pad niet verkeerd, maar je mrtg installatie :)
Pagina: 1