Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1444 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs

  probleme avec snmp et mrtg

 


 Mot :   Pseudo :  
 
 Page :   1  2
Page Précédente
Auteur Sujet :

probleme avec snmp et mrtg

n°45670
Boris l'in​vincible
Life is random
Posté le 22-11-2001 à 15:48:31  profilanswer
 

bon voila j'ai installer mrtg et snmp et quand je lance mrtg voici l'erreur que j'ai pourtant mon snmp a l'air de tourner sans pb enfin je vois pas d'ou ca viens si qq un saurai m'aider
 
 
infocenter# mrtg pipo.cfg
SNMP Error:
no response received
SNMPv1_Session (remote host: "infocenter.d2g.com" [127.0.0.1].161)
                  community: "root"
                 request ID: 865813399
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/lib/perl5/SNMP_util.pm line 450
SNMPGET Problem for ifInOctets.2 ifOutOctets.2 sysUptime sysName on root@infocen
ter.d2g.com
 at /usr/bin/mrtg line 1496
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''

mood
Publicité
Posté le 22-11-2001 à 15:48:31  profilanswer
 

n°45695
bioman
Posté le 22-11-2001 à 17:25:17  profilanswer
 

voila un bonne url qui ma permis de pas me planter kan g installé mrtg : http://www.linux-sottises.net/mrtg.php
 
Si jamais tu as tj des merdes avec snmp utilise le script kil ya sur le site ( ... un script netstat pour les statistiques d'utilisation des interfaces qui ne nécessite pas l'installation de snmp ...)
 
Bioman

n°45699
Boris l'in​vincible
Life is random
Posté le 22-11-2001 à 17:29:12  profilanswer
 

seul pb cai de la que j'ai install :)

n°45702
Grizly
Posté le 22-11-2001 à 17:44:50  profilanswer
 

Ben d'après moi, ça veut dire que ton snmp ne fonctionne pas si bien que ça !
 
essaye de faire un snmpwalk comme ça
snmpwalk @ip communauté .1.3.6
si ça renvoie rien ya certainement un pb avec le serveur snmp
Si t'a rien changé la communauté c'est public par défaut

n°45720
nicotine
Posté le 22-11-2001 à 18:39:12  profilanswer
 

tu peux mettre le pipo.cfg stp ?


---------------
Do androïds dream of electric sheep ?
n°45738
Boris l'in​vincible
Life is random
Posté le 22-11-2001 à 19:33:37  profilanswer
 

nicotine a écrit a écrit :

tu peux mettre le pipo.cfg stp ?  




 
WorkDir: /www/centralf/www/log
#RunAsDaemon: Yes
Refresh: 300
 
#---------------------------------------------------------------
# defaults
#---------------------------------------------------------------
 
XSize[_]: 240
YSize[_]: 60
Options[_]: nopercent
Colours[_]: LIGHT BLUE#7aafff,BLUE#1000ff,DARK BLUE#000066,VIOLET#ff00ff,GREEN#00ff00
BodyTag[_]: <BODY BGCOLOR="#0871de" TEXT="#ffffff"">
 
AddHead[^]: <STYLE><!-- BODY {background-color: #0871de; color: #ffffff} A {text-decoration: none; font-weight: bold; color: #7aafff} --></style>
 
 
#---------------------------------------------------------------
# eth0
#---------------------------------------------------------------
 
Target[eth1]: 2:root@infocenter.d2g.com
WithPeak[eth1]: my
MaxBytes[eth1]: 1250000
Options[eth1]: nopercent,growright
Title[eth1]: eth1
PageTop[eth1]: <H1>Traffic Analysis for eth1
 </H1>
   <br>
    <br>
     <TABLE>
           <TR><TD>Interface:</TD><TD>eth1</TD></TR>
              </TABLE>

n°45743
nicotine
Posté le 22-11-2001 à 19:53:21  profilanswer
 

Boris l'invincible a écrit a écrit :

 
 
WorkDir: /www/centralf/www/log
#RunAsDaemon: Yes
Refresh: 300
 
#---------------------------------------------------------------
# defaults
#---------------------------------------------------------------
 
XSize[_]: 240
YSize[_]: 60
Options[_]: nopercent
Colours[_]: LIGHT BLUE#7aafff,BLUE#1000ff,DARK BLUE#000066,VIOLET#ff00ff,GREEN#00ff00
BodyTag[_]: <BODY BGCOLOR="#0871de" TEXT="#ffffff"">
 
'_' correspond à quoi ? des definitions de taille , couleurs mais sur quoi ????
 
 
AddHead[^]: <STYLE><!-- BODY {background-color: #0871de; color: #ffffff} A {text-decoration: none; font-weight: bold; color: #7aafff} --></style>
 
 
#---------------------------------------------------------------
# eth0
#---------------------------------------------------------------
 
Target[eth1]: 2:root@infocenter.d2g.com
WithPeak[eth1]: my
MaxBytes[eth1]: 1250000
Options[eth1]: nopercent,growright
Title[eth1]: eth1
PageTop[eth1]: <H1>Traffic Analysis for eth1
 </H1>
   <br>
    <br>
     <TABLE>
           <TR><TD>Interface:</TD><TD>eth1</TD></TR>
              </TABLE>  
 
il me semble (a verifier) que l'indention des tags html a son importance  
 
le probleme du target[eth1] , c'est qu'il ne recoit pas les données qu'attend mrtg , à savoir :  
un in, un out , un uptime (un label en fait , le contenu n'a pas d'importance) et un label .
il faut que in et out soit des valeurs entieres.
 
donc ton target ne renvoie pas ca .  
pour la bp , c'est plutot
target[eth1] = !adresse_mac:public@infocenter.d2g.com:




 

[edtdd]--Message édité par nicotine--[/edtdd]


---------------
Do androïds dream of electric sheep ?
n°45744
nicotine
Posté le 22-11-2001 à 19:54:49  profilanswer
 

remplace deja root par public


---------------
Do androïds dream of electric sheep ?
n°45754
Boris l'in​vincible
Life is random
Posté le 22-11-2001 à 20:20:55  profilanswer
 

en remplacent root par publie et meme en metant l'adresse pac ca me fait toujours la meme erreur
 
 
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "30:4F:07:07:7E:public"
                 request ID: 1951380505
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/lib/perl5/SNMP_util.pm line 450
SNMPGET Problem for ifInOctets.00 ifOutOctets.00 sysUptime sysName on 30:4F:07:07:7E:public@localhost
 at /usr/bin/mrtg line 1496
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''

n°45757
nicotine
Posté le 22-11-2001 à 20:24:42  profilanswer
 

que donne un snmpwalk 212.68.194.235 public  ?
 
tu dois avoir un defilement de toutes les branches ..  
 
si ca merde tjs c'est que t'as souci avec snmp .


---------------
Do androïds dream of electric sheep ?
mood
Publicité
Posté le 22-11-2001 à 20:24:42  profilanswer
 

n°45759
Boris l'in​vincible
Life is random
Posté le 22-11-2001 à 20:25:40  profilanswer
 

infocenter# snmpwalk 212.68.194.235 public
system.sysDescr.0 = Linux infocenter.d2g.com 2.2.19pre17 #1 Tue Mar 13 22:37:59 EST 2001 i686
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux
system.sysUpTime.0 = Timeticks: (7998939) 22:13:09.39
system.sysContact.0 = Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
system.sysName.0 = infocenter.d2g.com
system.sysLocation.0 = Unknown (configure /etc/snmp/snmp.local.conf)
system.sysORLastChange.0 = Timeticks: (3) 0:00:00.03
system.sysORTable.sysOREntry.sysORID.1 = OID: ifMIB
system.sysORTable.sysOREntry.sysORID.2 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB
system.sysORTable.sysOREntry.sysORID.3 = OID: tcpMIB
system.sysORTable.sysOREntry.sysORID.4 = OID: ip
system.sysORTable.sysOREntry.sysORID.5 = OID: udpMIB
system.sysORTable.sysOREntry.sysORID.6 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpVacmM
IB.vacmMIBConformance.vacmMIBGroups.vacmBasicGroup
 
system.sysORTable.sysOREntry.sysORID.7 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpFrame
workMIB.snmpFrameworkMIBConformance.snmpFrameworkM
IBCompliances.snmpFrameworkMIBCompliance
system.sysORTable.sysOREntry.sysORID.8 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMPDMI
B.snmpMPDMIBConformance.snmpMPDMIBCompliances.snmp
MPDCompliance
system.sysORTable.sysOREntry.sysORID.9 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpUsmMI
B.usmMIBConformance.usmMIBCompliances.usmMIBCompli
ance
system.sysORTable.sysOREntry.sysORDescr.1 = The MIB module to describe generic objects for network interface sub-layers
system.sysORTable.sysOREntry.sysORDescr.2 = The MIB module for SNMPv2 entities
system.sysORTable.sysOREntry.sysORDescr.3 = The MIB module for managing TCP implementations
system.sysORTable.sysOREntry.sysORDescr.4 = The MIB module for managing IP and ICMP implementations
system.sysORTable.sysOREntry.sysORDescr.5 = The MIB module for managing UDP implementations
system.sysORTable.sysOREntry.sysORDescr.6 = View-based Access Control Model for SNMP.
system.sysORTable.sysOREntry.sysORDescr.7 = The SNMP Management Architecture MIB.
system.sysORTable.sysOREntry.sysORDescr.8 = The MIB for Message Processing and Dispatching.
system.sysORTable.sysOREntry.sysORDescr.9 = The management information definitions for the SNMP User-based Security Model.
system.sysORTable.sysOREntry.sysORUpTime.1 = Timeticks: (2) 0:00:00.02
system.sysORTable.sysOREntry.sysORUpTime.2 = Timeticks: (2) 0:00:00.02
system.sysORTable.sysOREntry.sysORUpTime.3 = Timeticks: (2) 0:00:00.02
system.sysORTable.sysOREntry.sysORUpTime.4 = Timeticks: (2) 0:00:00.02
system.sysORTable.sysOREntry.sysORUpTime.5 = Timeticks: (2) 0:00:00.02
system.sysORTable.sysOREntry.sysORUpTime.6 = Timeticks: (2) 0:00:00.02
system.sysORTable.sysOREntry.sysORUpTime.7 = Timeticks: (3) 0:00:00.03
system.sysORTable.sysOREntry.sysORUpTime.8 = Timeticks: (3) 0:00:00.03
system.sysORTable.sysOREntry.sysORUpTime.9 = Timeticks: (3) 0:00:00.03
End of MIB
infocenter#

n°45760
nicotine
Posté le 22-11-2001 à 20:25:55  profilanswer
 

et firewall ton port 161 udp ... , j'arrive à lire ta machine :/


---------------
Do androïds dream of electric sheep ?
n°45761
nicotine
Posté le 22-11-2001 à 20:26:42  profilanswer
 

t'arrives à lire ?  
 
donc c'est ta config de mrtg qui chie .
 
vire tes lignes avec '_' comme interface


---------------
Do androïds dream of electric sheep ?
n°45764
Boris l'in​vincible
Life is random
Posté le 22-11-2001 à 20:31:25  profilanswer
 

avec ca comme fichier mrtg alors
 
WorkDir: /www/centralf/www/log
#RunAsDaemon: Yes
Refresh: 300
 
Target[eth1]: !00:30:4F:07:07:7E:public@localhost
WithPeak[eth1]: my
MaxBytes[eth1]: 1250000
Options[eth1]: nopercent,growright
Title[eth1]: eth1
PageTop[eth1]: <H1>Traffic Analysis for eth1
 </H1>
   <br>
    <br>
     <TABLE>
           <TR><TD>Interface:</TD><TD>eth1</TD></TR>
              </TABLE>
 
 
ca donne
 
infocenter# mrtg pipo.cfg
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
                  community: "30:4F:07:07:7E:public"
                 request ID: 1037888663
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/lib/perl5/SNMP_util.pm line 450
SNMPGET Problem for ifInOctets.00 ifOutOctets.00 sysUptime sysName on 30:4F:07:07:7E:public@localhost
 at /usr/bin/mrtg line 1496
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
Rateup ERROR: /usr/bin/rateup found eth1's log file was corrupt
          or not in sorted order:
time: 1006440379.Rateup WARNING: /usr/bin/rateup could not read the primary log file for eth1
Rateup ERROR: /usr/bin/rateup found eth1's log file was corrupt
          or not in sorted order:
time: 1006440379.Rateup WARNING: /usr/bin/rateup The backup log file for eth1 was invalid as well
WARNING: rateup died from Signal 0
 with Exit Value 1 when doing router 'eth1'
 Signal was 0, Returncode was 1
infocenter#

n°45765
nicotine
Posté le 22-11-2001 à 20:33:44  profilanswer
 

dans l'adresse mac , c'est des - qui separent et pas des :


---------------
Do androïds dream of electric sheep ?
n°45766
Boris l'in​vincible
Life is random
Posté le 22-11-2001 à 20:33:57  profilanswer
 

erf

n°45767
Boris l'in​vincible
Life is random
Posté le 22-11-2001 à 20:34:36  profilanswer
 

mais l'erreur change  
 
WARNING: Could not match host:'public@localhost' ref:'Eth' key:'00-30-4f-07-07-7e'

n°45768
nicotine
Posté le 22-11-2001 à 20:35:29  profilanswer
 

au premier lancement de mrtg t'auras surment un mail systeme te disant qu'il y a des erreurs parce qu'il ne trouve pas de log . c'est normal . c'est juste pour l'init


---------------
Do androïds dream of electric sheep ?
n°45769
nicotine
Posté le 22-11-2001 à 20:37:06  profilanswer
 

chez moi :  
 
setenv ne semble pas utile mais ca marche comme ca ;)
 
# Eth0 / netoid1
Target[netoid1]: !00-80-ad-7f-6f-b5:public@netoid:
SetEnv[netoid1]: MRTG_INT_IP="10.0.0.10" MRTG_INT_DESCR="eth0"
MaxBytes[netoid1]: 1250000
Title[netoid1]: Traffic  de netoid1 / eth0
# Options[netoid1]: growright,nopercent,transparent,noinfo
Options[netoid1]: growright,nopercent,noinfo
ShortLegend[netoid1] : k/s
XSize[netoid1]: 400
YSize[netoid1]: 80
YLegend[netoid1]: Ko / s
PageTop[netoid1]: <H1>Traffic de netoid1 / eth0 </H1>
# Colours[netoid1]: INT#999999,OUT#FF6600,RED#FF0000,ORANGE#FF6600
Colours[netoid1]: INT#7AAFFF,OUT#1000FF,RED#FF0000,ORANGE#FF6600
 <TABLE>
   <TR><TD>Description:</TD><TD> net  </TD></TR>
 </TABLE>


---------------
Do androïds dream of electric sheep ?
n°45771
Boris l'in​vincible
Life is random
Posté le 22-11-2001 à 20:38:18  profilanswer
 

vais essayer

n°45772
nicotine
Posté le 22-11-2001 à 20:41:06  profilanswer
 

evite le 'localhost' ...


---------------
Do androïds dream of electric sheep ?
n°45773
Boris l'in​vincible
Life is random
Posté le 22-11-2001 à 20:42:23  profilanswer
 

nan a mets toujours ca comme erreur
 
WARNING: Could not match host:'public@localhost' ref:'Eth' key:'00-30-4f-07-07-7e'
 
ou
WARNING: Could not match host:'public@infocenter.d2g.com' ref:'Eth' key:'00-30-4f-07-07-7e'
infocenter#

 

[edtdd]--Message édité par Boris l'invincible--[/edtdd]

n°45775
Boris l'in​vincible
Life is random
Posté le 22-11-2001 à 20:44:58  profilanswer
 

j'ai ca
 
Target[eth1]: !00-30-4f-07-07-7e:public@212.68.194.235
SetEnv[eth1]: MRTG_INT_IP="212.68.194.235" MRTG_INT_DESCR="eth1"
MaxBytes[eth1]: 1250000
Title[eth1]: Traffic  de eth1
# Options[eth1]: growright,nopercent,transparent,noinfo
Options[eth1]: growright,nopercent,noinfo
ShortLegend[eth1] : k/s
XSize[eth1]: 400
YSize[eth1]: 80
YLegend[eth1]: Ko / s
PageTop[eth1]: <H1>Traffic de netoid1 / eth0 </H1>
# Colours[eth1]: INT#999999,OUT#FF6600,RED#FF0000,ORANGE#FF6600
Colours[eth1]: INT#7AAFFF,OUT#1000FF,RED#FF0000,ORANGE#FF6600
  <TABLE>
  <TR><TD>Description:</TD><TD> net  </TD></TR>
  </TABLE>

n°45777
nicotine
Posté le 22-11-2001 à 20:47:59  profilanswer
 

he ben ? ca marche ou pas ?


---------------
Do androïds dream of electric sheep ?
n°45779
nicotine
Posté le 22-11-2001 à 20:48:40  profilanswer
 

t'as un pbe dans ta resolution ou d'adresse mac , mais là ce n'est plus un pbe mrtg ou snmp ...


---------------
Do androïds dream of electric sheep ?
n°45780
nicotine
Posté le 22-11-2001 à 20:49:59  profilanswer
 

l'ip citée correspond à l'interface (eth1) ?


---------------
Do androïds dream of electric sheep ?
n°45781
Boris l'in​vincible
Life is random
Posté le 22-11-2001 à 20:51:43  profilanswer
 

vi cai mon ip
 
eth1      Link encap:Ethernet  HWaddr 00:30:4F:07:07:7E
          inet addr:212.68.194.235  Bcast:212.68.194.255  Mask:255.255.255.224
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:52004474 errors:9 dropped:0 overruns:0 frame:0
          TX packets:50837515 errors:7 dropped:0 overruns:0 carrier:14
          collisions:218094 txqueuelen:100
          RX bytes:3202291675 (3053.9 Mb)  TX bytes:1281340217 (1221.9 Mb)
          Interrupt:10 Base address:0xb000

n°45782
nicotine
Posté le 22-11-2001 à 20:56:38  profilanswer
 

j'ai donné toutes les explications .
 
apres je peux plus rien .


---------------
Do androïds dream of electric sheep ?
n°45783
Boris l'in​vincible
Life is random
Posté le 22-11-2001 à 20:57:26  profilanswer
 

nicotine a écrit a écrit :

he ben ? ca marche ou pas ?  




 
ba a mets toujours l'erreur
WARNING: Could not match host:'public@212.68.194.235' ref:'Eth' key:'00-30-4f-07-07-7e'

n°45785
nicotine
Posté le 22-11-2001 à 20:57:45  profilanswer
 

ch'uis pas expert en reseau mais je trouve ton netmask chelou sur ton eth1
 
bon courage.


---------------
Do androïds dream of electric sheep ?
n°45787
Boris l'in​vincible
Life is random
Posté le 22-11-2001 à 20:59:58  profilanswer
 

ba cai pas moi cai celui que mon provider m'a dit de mettre j'ai une ip fixe

n°45791
Boris l'in​vincible
Life is random
Posté le 22-11-2001 à 21:14:01  profilanswer
 

wé merci pour tout en tout cas mais je pige pas pkoi ca va pas

n°45799
Boris l'in​vincible
Life is random
Posté le 22-11-2001 à 21:42:24  profilanswer
 

par contre la ca bug
 
infocenter# snmpwalk 212.68.194.235 public interfaces
End of MIB
infocenter#

n°45855
Filter25
Posté le 23-11-2001 à 03:21:10  profilanswer
 

j'ai un petit prob :(
 
un snmpwalk 10.0.0.1 public met donne un Timeout No response from 10.0.0.1  
 
d'ou ca peut venire ?

n°45935
Grizly
Posté le 23-11-2001 à 12:48:13  profilanswer
 

Boris l'invincible a écrit a écrit :

par contre la ca bug
 
infocenter# snmpwalk 212.68.194.235 public interfaces
End of MIB
infocenter#  




Ben pas forcément !
ca veut dire qu'il trouve rien pas que ça marche pas !
essaye de remplacer interfaces par .1.3.6 pour qu'il affiche tout
quant au netmask il n'est pas habituel mais tout à fait fonctionnel ...

n°45937
Grizly
Posté le 23-11-2001 à 12:49:53  profilanswer
 

Filter25 a écrit a écrit :

j'ai un petit prob :(
 
un snmpwalk 10.0.0.1 public met donne un Timeout No response from 10.0.0.1  
 
d'ou ca peut venire ?  




pareil mets-y .1.3.6 à la fin
si ça marche pas ça veut dire que ton démon snmp (snmpd) il réponds pas :
-> soit il est pas bien configuré
-> soit ya un pb réseau (essaye avec localhost)
-> autre chose ?
-

n°45989
Filter25
Posté le 23-11-2001 à 15:52:24  profilanswer
 

pour moi ca avance un peu, un snmpwalk fonctionne maintenant
mais j'ai un stress en essayant un cfgmaker public@debian 10.0.0.1 >test
 
j'ai un tas d'erreur de ce genre:
 
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.8)
SNMPv1_Session (remote host: "debian" [10.0.0.1].161)
                  community: "public"
                 request ID: 872115681
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/lib/perl5/SNMP_util.pm line 540
 
apparement c au niveau du noSuchName, si quelqun peut m'éclairer ...

n°46011
nicotine
Posté le 23-11-2001 à 16:52:48  profilanswer
 

resolution de 'debian' ?


---------------
Do androïds dream of electric sheep ?
n°46012
nicotine
Posté le 23-11-2001 à 16:54:05  profilanswer
 

essaie plutot un cfgmaker public@UNE_IP > test


---------------
Do androïds dream of electric sheep ?
n°46029
Filter25
Posté le 23-11-2001 à 17:22:35  profilanswer
 

ca revient au même, que je mette debian ou 10.0.0.1 ou 127.0.01,
 
j'ai d'abord ces messages d'erreurs:
 
--snpo: Skipping ifName scanning because public@10.0.0.1: does not seem to support it
--snpo: Skipping ifDescr scanning because public@10.0.0.1: does not seem to support it
--snpo: Skipping ipAdEntIfIndex scanning because public@10.0.0.1: does not seem
to support it
--snpo: Skipping ifType scanning because public@10.0.0.1: does not seem to support it
 
puis les autres avec les noSuchName
 
voilou :'(

mood
Publicité
Posté le   profilanswer
 

 Page :   1  2
Page Précédente

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs

  probleme avec snmp et mrtg

 

Sujets relatifs
problème installe Mandrake 8Probleme avec cron
Petit problème avec MPlayer !Problème avec Pengaol
probleme avec connection SSH....probleme tres bizarre
multihead probleme[SuSE 7.2] probleme avec une 3C900B.
Probleme avec la mandrake 8.1un probleme con sous konqueror
Plus de sujets relatifs à : probleme avec snmp et mrtg


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR