MRTG Problem

Post Reply
Message
Author
friesi
Posts: 13
Joined: 17. Apr 2002 16:35
Location: Ahlen
Contact:

MRTG Problem

#1 Post by friesi »

Hi. Wenn ich die cfg Datei mit diesem befehl erstellen will:
cfgmaker -global 'WorkDir: /usr/local/httpd/htdocs/mrtg' -global 'Options[_]: growright' public@friesi

bekomme ich diese Meldungen!
kann mir vielleicht einer erklären was ich flasch mache?! oder liegt das am public@friesi?!

Die Meldung
###########

--base: Get Device Info on public@friesi:
Error:
can't resolve "friesi" to IP address
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 392
SNMPGET Problem for public@friesi:
at /usr/bin/cfgmaker line 657
--base: Vendor Id:
--base: Populating confcache
--snpo: Skipping ifName scanning because public@friesi: does not seem to support it
--snpo: Skipping ifDescr scanning because public@friesi: does not seem to support it
--snpo: Skipping ipAdEntIfIndex scanning because public@friesi: does not seem to support it
--snpo: Skipping ifType scanning because public@friesi: does not seem to support it
--snpo: Skipping ifPhysAddress scanning because public@friesi: does not seem to support it
--base: Get Interface Info
--base: Walking ifIndex
Error:
can't resolve "friesi" to IP address
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 392
SNMPWALK Problem for public@friesi:
at /usr/bin/cfgmaker line 107
--base: Walking ifType
Error:
can't resolve "friesi" to IP address
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 392
SNMPWALK Problem for public@friesi:
at /usr/bin/cfgmaker line 107
--base: Walking ifSpeed
Error:
can't resolve "friesi" to IP address
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 392
SNMPWALK Problem for public@friesi:
at /usr/bin/cfgmaker line 107
--base: Walking ifAdminStatus
Error:
can't resolve "friesi" to IP address
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 392
SNMPWALK Problem for public@friesi:
at /usr/bin/cfgmaker line 107
--base: Walking ifOperStatus
Error:
can't resolve "friesi" to IP address
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 392
SNMPWALK Problem for public@friesi:
at /usr/bin/cfgmaker line 107
# Created by
# /usr/bin/cfgmaker -global 'WorkDir: /usr/local/httpd/htdocs/mrtg' -global 'Options[_]: growright' public@friesi


### 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

WorkDir: /usr/local/httpd/htdocs/mrtg
Options[_]: growright

#####################
Last edited by friesi on 04. Jul 2002 11:35, edited 1 time in total.

User avatar
Stormbringer
Posts: 1570
Joined: 11. Jan 2001 11:01
Location: Ruhrgebiet

Re: MRTG Problem

#2 Post by Stormbringer »

Hi,

wenn Du snmp auf dem System friesi korrekt konfiguriert hast, dann probiere es einfach einmal mit public@[ip Adresse friesi] (z. B. public@192.168.20.10).

Gruß
Continuum Hierarchy Supervisor:
You have already been assimilated.
(Rechtschreibungsreformverweigerer!)

friesi
Posts: 13
Joined: 17. Apr 2002 16:35
Location: Ahlen
Contact:

Re: MRTG Problem

#3 Post by friesi »

mhm also an snmp hab ich noch nichts gemacht! wo kann ich das denn einstellen ?!

User avatar
Stormbringer
Posts: 1570
Joined: 11. Jan 2001 11:01
Location: Ruhrgebiet

Re: MRTG Problem

#4 Post by Stormbringer »

Tja, wenn Du snmp nicht konfiguriert hast, wie soll dann die Community public inkl. Daten existieren?
Und eben jene versucht mrtg auszulesen.

Es kommt auf Deine snmp Version an .... evtl. hast Du das Tool snmp-conf installiert, mit welchem Du die Einstellungen durchführen kannst.

Gruß
Continuum Hierarchy Supervisor:
You have already been assimilated.
(Rechtschreibungsreformverweigerer!)

friesi
Posts: 13
Joined: 17. Apr 2002 16:35
Location: Ahlen
Contact:

Re: MRTG Problem

#5 Post by friesi »

ok snmp läuft nun!
aber jetzt bekomme ich diese fehlermeldung:

Rateup WARNING: /usr/bin/rateup could not read the primary log file for localhost_2
Rateup WARNING: /usr/bin/rateup The backup log file for localhost_2 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove localhost_2.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename localhost_2.log to localhost_2.old updating log file
Rateup WARNING: /usr/bin/rateup could not read the primary log file for localhost_3
Rateup WARNING: /usr/bin/rateup The backup log file for localhost_3 was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove localhost_3.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename localhost_3.log to localhost_3.old updating log file


was kann ich dagegen machen ?!

friesi
Posts: 13
Joined: 17. Apr 2002 16:35
Location: Ahlen
Contact:

Re: MRTG Problem

#6 Post by friesi »

sorry nun geht alles :) brauchte nur etwas

aber gibt es eine möglichkeit das er die stats alle 5 min updatet?!
automatisch!
wenn ja wie ?! :)
Last edited by friesi on 04. Jul 2002 19:30, edited 1 time in total.

User avatar
Stormbringer
Posts: 1570
Joined: 11. Jan 2001 11:01
Location: Ruhrgebiet

Re: MRTG Problem

#7 Post by Stormbringer »

Dein Freund ist der cron Job

Gruß
Continuum Hierarchy Supervisor:
You have already been assimilated.
(Rechtschreibungsreformverweigerer!)

friesi
Posts: 13
Joined: 17. Apr 2002 16:35
Location: Ahlen
Contact:

Re: MRTG Problem

#8 Post by friesi »

kannst mir den mal "schnell" erklären
oder gibts eine anleitung

panthera

Re: MRTG Problem

#9 Post by panthera »

entweder man cronttab
oder ein job in /etc/cronttab nach folgendem schema eintragen:

Minute Stunde Tag-im-Monat Monat Wochentag Benutzer Befehl [Argumente]

tuxic trace

Re: MRTG Problem

#10 Post by tuxic trace »

Hast Du dazu infos ? Ich such immer noch ne DAU taugliche Einführung in (net-)snmp, hab da noch keinen wirklichen Schimmer, weder von der Einrichtung noch der Funktionsweise und würde das gerne ändern.

Post Reply