| |||||
| Dernière réponse | |
|---|---|
| Sujet : probleme avec snmp et mrtg | |
| rizzla_tsa | dites pr nnewb j ai aucune image qui apparait ... svp ! j ai bien mis la lib png prtt .. |
| Aperçu |
|---|
| Vue Rapide de la discussion |
|---|
| rizzla_tsa | dites pr nnewb j ai aucune image qui apparait ... svp ! j ai bien mis la lib png prtt .. |
| AGA | up :??: |
| Filter25 | pour le daemon et pour un fichier complet c oki j'ai trouvé mais j'aimerais quand même savoir pq il fallait effacer ce fichier de config et se qu'il contenait [edtdd]--Message édité par Filter25--[/edtdd] |
| Filter25 | a oui nicotine, tu pourrais affichier ton fichier de conf si il est bien complet ? ou quelqun d'autre, ce serait cool merci.
sinon une autre question, y fait mettre mrtg dans la crontab pour qu'il génère toute les x minutes la page ou il ya une option pour qu'il tourne en tant que daemon ? j'avoue j'ai fait aucune recherche ce coup la ... je chercherai moi même si j'ai pas de réponsse mais je suis dead la lol |
| Filter25 | ca marche ... mais tu serais m'expliquer pq ? j'ai donc effacer snmpd.conf chez moi, est-ce que quelqun pourrais m'afficher se qu'il contient normalement ? y devait bien avoir une utilité, par exemle je voudrais que mes graph se face sur une plus petite période, parceque que l'a j'ai du attendre 1 heure pour qu'une trace apparaise.
Voila, sinon merci :) |
| le_pacifa | Une methode trés simple.
a) Tu vide le fichier /etc/snmp.conf b) Tu relance snmpd c) cfgmaker public@localhost >>mrtg.cfg d)tu edite mrtf.cfg et tu configure la workdir (en haut) e) mrtg mrtg.cfg et sa marche |
| nicotine | cfgmaker --ifeth public@192.168.0.1 et ca donne un target[ip_mac]= !mac:public@ip: etc..etc... |
| Filter25 | un petit up avant que je parte, on sait jamais ... |
| Filter25 | un petit up avant que je parte, on sait jamais ... |
| Filter25 | debian:/home/fox# cfgmaker Target[eth0]: 2:public@10.0.0.1 >test
Error: can't resolve "Target[eth0]" to IP address comme erreur entre autre :'( [edtdd]--Message édité par Filter25--[/edtdd] |
| [FK]Yom | Et en essayant ça :
Target[eth1]: 2:public@10.0.0.1 ça marche pas mieux ? [edtdd]--Message édité par [FK]Yom--[/edtdd] |
| nicotine | ben que soit t'y vas pas avec les bons droits (mais c'est corrigé maintenant) soit que tu n'appelles pas le bon objet (oid)
regarde un : snmpwalk l'ip public interfaces.ifTable.ifEntry.ifPhysAddress ca devrait te donner les adresses mac sur la machine en question , deja pour voir s'il y a bien un entrée dans son arbo . dans le meme style snmpwalk l'ip public interfaces.ifTable.ifEntry.ifInOctets ... Donc si t'obtiens bien une adresse mac et le total des transferts via ce snmpwalk , c'est la requete sur snmp qui ne doit pas etre bonne ..... mrtg ? |
| Filter25 | en lisant la faq j'ai trouver ca, ca correspond à mon message d'erreur mais j'ai du mal à capter ...
Q:When I run mrtg, I get this error: SNMP Error: Received SNMP response with error code error status: noSuchName index 1 (OID: [the oid on your target line]) A: The OID you're snmpgetting doesn't exist. Either that OID is not supported on the box you are polling, or you didn't go far enough out the MIB "tree". Try snmpwalking/getting that OID from the command line and see what you get. For example, you are trying to use the OID 1.3.6.1.4.1.9.9.13.1.3.1.3 to get the temperature off your Cisco router. You get the noSuchName error when you try to use this OID in mrtg. Using snmpwalk: :::-->snmpwalk router public .1.3.6.1.4.1.9.9.13.1.3.1.3 enterprises.9.9.13.1.3.1.3.1 = Gauge: 19 enterprises.9.9.13.1.3.1.3.2 = Gauge: 25 enterprises.9.9.13.1.3.1.3.3 = Gauge: 27 You see that there are actually 3 instances for this OID and need to do a bit more research. Start by reading the OID description. j'ai aussi lu quelque part: The SNMP protocol dictates that a set request with a community with inappropriate access privileges be answered with the noSuchName error message. |
| nicotine | bon , ma langue au chat . si snmp fonctionne , c'est bel et bien mrtg qui est mal configuré alors . Mais bon , j'ai plus de solutions là . |
| Filter25 | debian:/var/www# snmpwalk 10.0.0.1 public
system.sysDescr.0 = Linux debian 2.4.14-586 #1 Fri Nov 9 21:22:05 EST 2001 i686 system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux system.sysUpTime.0 = Timeticks: (924007) 2:34:00.07 system.sysContact.0 = Root <root@localhost> (configure /etc/snmp/snmp.local.conf ) system.sysName.0 = debian system.sysLocation.0 = Unknown (configure /etc/snmp/snmp.local.conf) system.sysORLastChange.0 = Timeticks: (7) 0:00:00.07 system.sysORTable.sysOREntry.sysORID.1 = OID: ifMIB system.sysORTable.sysOREntry.sysORID.2 = OID: .iso.org.dod.internet.snmpV2.snmpM odules.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.snmpM odules.snmpVacmMIB.vacmMIBConformance.vacmMIBGroup s.vacmBasicGroup system.sysORTable.sysOREntry.sysORID.7 = OID: .iso.org.dod.internet.snmpV2.snmpM odules.snmpFrameworkMIB.snmpFrameworkMIBConformanc e.snmpFrameworkMIBCompliances. snmpFrameworkMIBCompliance system.sysORTable.sysOREntry.sysORID.8 = OID: .iso.org.dod.internet.snmpV2.snmpM odules.snmpMPDMIB.snmpMPDMIBConformance.snmpMPDMIB Compliances.snmpMPDCompliance system.sysORTable.sysOREntry.sysORID.9 = OID: .iso.org.dod.internet.snmpV2.snmpM odules.snmpUsmMIB.usmMIBConformance.usmMIBComplian ces.usmMIBCompliance system.sysORTable.sysOREntry.sysORDescr.1 = The MIB module to describe generic o bjects 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 impl ementations 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 impl ementations 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 D ispatching. system.sysORTable.sysOREntry.sysORDescr.9 = The management information definitio ns for the SNMP User-based Security Model. system.sysORTable.sysOREntry.sysORUpTime.1 = Timeticks: (3) 0:00:00.03 system.sysORTable.sysOREntry.sysORUpTime.2 = Timeticks: (3) 0:00:00.03 system.sysORTable.sysOREntry.sysORUpTime.3 = Timeticks: (3) 0:00:00.03 system.sysORTable.sysOREntry.sysORUpTime.4 = Timeticks: (3) 0:00:00.03 system.sysORTable.sysOREntry.sysORUpTime.5 = Timeticks: (5) 0:00:00.05 system.sysORTable.sysOREntry.sysORUpTime.6 = Timeticks: (5) 0:00:00.05 system.sysORTable.sysOREntry.sysORUpTime.7 = Timeticks: (7) 0:00:00.07 system.sysORTable.sysOREntry.sysORUpTime.8 = Timeticks: (7) 0:00:00.07 system.sysORTable.sysOREntry.sysORUpTime.9 = Timeticks: (7) 0:00:00.07 End of MIB |
| nicotine | si ca , ca passe pas , ya effectivement un probleme snmp . |
| nicotine | et deja un snmpwalk 10.0.0.1 public , ca donne quoi ? |
| Filter25 | 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 :'( |




