ZABBIX Forums  
  #1  
Old 13-10-2017, 11:54
AddOnGreg AddOnGreg is offline
Junior Member
 
Join Date: May 2017
Posts: 9
Default Cannot adopt OID

Bonjour,

Cela fait plusieurs jours que j'essaye de faire remonté certaines informations à mon serveur zabbix mais sans succès... (j'utilise Zabbix 3.2.8)

Version de Debian: Linux SUPERVISION 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u1 (2017-06-18) x86_64 GNU/Linux
8.9
Debian GNU/Linux 8 \n \l

root@SUPERVISION:~# mysql -V
mysql Ver 14.14 Distrib 5.5.57, for debian-linux-gnu (x86_64) using readline 6.3




Je veux avoir des informations sur le hardware des serveurs de mon parc info, j'ai donc été sur le share.zabbix ou j'ai trouvé un super template: "HP Server Health Template" (car 80% de nos serveurs sont des HP).

L'ayant importé et lié à mes serveurs windows, je vois donc par exemple tout les disques de chaque serveurs (cpqDaPhyDrvStatus[1],[2],[3]...) et si je retire un disque je vois l'état changé, l'état du contrôleur RAID (cpqDaCntlrCondition[2])...

Sur beaucoup de serveur je n'obtiens pas ces informations et j'ai comme retour sur l'interface web: "No Such Object available on this agent at this OID".
Je me suis alors dit qu'il me manquait juste certaines MIBs sur ces dits serveurs... par exemple : CPQIDA-MIB.

J'ai donc téléchargé cette MIB et l'ai placé (avec WinSCP) dans "/usr/share/mibs/ietf", mais cela n'avait aucun effet alors j'ai essayer dans "/root/.snmp/mibs", "/usr/share/snmp/mibs/iana"... mais rien à faire...
(MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp)


Mon fichier "snmp.conf":

mibs +ALL

(J'ai également essayer en mettant "mibs +CPQIDA-MIB" à la place mais rien n'a changé...)



Lorsque je lance "snmpwalk 127.0.0.1 -v 2c -c *MaCommunauté*" j'obtiens ceci:

root@SUPERVISION:~# snmpwalk 127.0.0.1 -v 2c -c *MaCommunauté*
Unlinked OID in IPATM-IPMC-MIB: marsMIB ::= { mib-2 57 }
Undefined identifier: mib-2 near line 18 of /usr/share/mibs/ietf/IPATM-IPMC-MIB
Bad operator (INTEGER): At line 73 in /usr/share/mibs/ietf/SNMPv2-PDU
Expected "::=" (RFC5644): At line 493 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
Expected "{" (EOF): At line 651 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
Bad object identifier: At line 651 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
Bad parse of OBJECT-IDENTITY: At line 651 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (CPQHOST-MIB): At line 34 in /usr/share/mibs/ietf/CPQIDA-MIB.mib
Did not find 'compaq' in module #-1 (/usr/share/mibs/ietf/CPQIDA-MIB.mib)
Did not find 'cpqHoTrapFlags' in module #-1 (/usr/share/mibs/ietf/CPQIDA-MIB.mib)
Unlinked OID in CPQIDA-MIB: compaq# ::= { compaq 0 }
Undefined identifier: compaq near line 8529 of /usr/share/mibs/ietf/CPQIDA-MIB.mib
Unlinked OID in CPQIDA-MIB: compaq# ::= { compaq 0 }
Undefined identifier: compaq near line 8504 of /usr/share/mibs/ietf/CPQIDA-MIB.mib
Unlinked OID in CPQIDA-MIB: compaq# ::= { compaq 0 }
Undefined identifier: compaq near line 8477 of /usr/share/mibs/ietf/CPQIDA-MIB.mib
Unlinked OID in CPQIDA-MIB: compaq# ::= { compaq 0 }
Undefined identifier: compaq near line 8455 of /usr/share/mibs/ietf/CPQIDA-MIB.mib
Unlinked OID in CPQIDA-MIB: compaq# ::= { compaq 0 }
Undefined identifier: compaq near line 8433 of /usr/share/mibs/ietf/CPQIDA-MIB.mib
Unlinked OID in CPQIDA-MIB: compaq# ::= { compaq 0 }

...

Cannot adopt OID in CPQIDA-MIB: cpqDaPhyDrvCntlrIndex ::= { cpqDaPhyDrvEntry 1 }
Cannot adopt OID in CPQIDA-MIB: cpqDaPhyDrvIndex ::= { cpqDaPhyDrvEntry 2 }
Cannot adopt OID in CPQIDA-MIB: cpqDaPhyDrvModel ::= { cpqDaPhyDrvEntry 3 }
Cannot adopt OID in CPQIDA-MIB: cpqDaPhyDrvFWRev ::= { cpqDaPhyDrvEntry 4 }
Cannot adopt OID in CPQIDA-MIB: cpqDaPhyDrvBay ::= { cpqDaPhyDrvEntry 5 }
Cannot adopt OID in CPQIDA-MIB: cpqDaPhyDrvStatus ::= { cpqDaPhyDrvEntry 6 }
Cannot adopt OID in CPQIDA-MIB: cpqDaPhyDrvFactReallocs ::= { cpqDaPhyDrvEntry 7 }

...

Cannot adopt OID in CPQIDA-MIB: cpqDaLogDrvPerfSectorsRead ::= { cpqDaLogDrvPerfEntry 12 }
Cannot adopt OID in CPQIDA-MIB: cpqDaLogDrvPerfSectorsWritten ::= { cpqDaLogDrvPerfEntry 13 }
Cannot adopt OID in CPQIDA-MIB: cpqDaPhyDrvErrEntry ::= { cpqDaPhyDrvErrTable 1 }
Cannot adopt OID in CPQIDA-MIB: cpqDaPhyDrvThrEntry ::= { cpqDaPhyDrvThrTable 1 }
Cannot adopt OID in CPQIDA-MIB: cpqDaMibRev ::= { cpqDriveArray 1 }
Cannot adopt OID in CPQIDA-MIB: cpqDaComponent ::= { cpqDriveArray 2 }
Cannot adopt OID in CPQIDA-MIB: cpqDaTrap ::= { cpqDriveArray 3 }
Cannot adopt OID in CPQIDA-MIB: cpqDriveArray# ::= { cpqDriveArray 0 }
Cannot adopt OID in CPQIDA-MIB: cpqDriveArray# ::= { cpqDriveArray 0 }
Cannot adopt OID in CPQIDA-MIB: cpqDriveArray# ::= { cpqDriveArray 0 }
Cannot adopt OID in CPQIDA-MIB: cpqDriveArray# ::= { cpqDriveArray 0 }
Cannot adopt OID in CPQIDA-MIB: cpqDriveArray# ::= { cpqDriveArray 0 }


Je me retrouve bloqué, je ne comprends pas... J'ai peut être mal mis la MIB sur mon serveur?
help me please... je peut fournir des screens si besoin...

Last edited by AddOnGreg; 13-10-2017 at 12:29.
Reply With Quote
  #2  
Old 13-10-2017, 12:27
AddOnGreg AddOnGreg is offline
Junior Member
 
Join Date: May 2017
Posts: 9
Default

petit screen des latest data
Attached Images
 

Last edited by AddOnGreg; 13-10-2017 at 12:51.
Reply With Quote
  #3  
Old 13-10-2017, 15:14
SBO SBO is offline
Zabbix Certified Specialist
Zabbix certified specialist
 
Join Date: Sep 2015
Location: France
Posts: 194
Default

Hello,

Jamais rencontré le problème "Cannot adopt OID" jusqu'ici..
Mais première recherche google : https://memo-linux.com/snmpwalk-cannot-adopt-oid-in/

Tu as bien le package snmp-mibs-downloader d'installé ?
Reply With Quote
  #4  
Old 13-10-2017, 15:31
AddOnGreg AddOnGreg is offline
Junior Member
 
Join Date: May 2017
Posts: 9
Default

Salut,

Oui j'ai déjà le package snmp-mibs-downloader:

root@SUPERVISION:~# locate snmp-mibs-downloader
/etc/snmp-mibs-downloader
/etc/snmp-mibs-downloader/iana.conf
/etc/snmp-mibs-downloader/ianalist
/etc/snmp-mibs-downloader/ianarfc.conf
/etc/snmp-mibs-downloader/ianarfclist
/etc/snmp-mibs-downloader/rfc.conf
/etc/snmp-mibs-downloader/rfclist
/etc/snmp-mibs-downloader/rfcmibs.diff
/etc/snmp-mibs-downloader/simplelist
/etc/snmp-mibs-downloader/simpleweb.conf
/etc/snmp-mibs-downloader/snmp-mibs-downloader.conf
/usr/share/doc/snmp-mibs-downloader
/usr/share/doc/snmp-mibs-downloader/changelog.gz
/usr/share/doc/snmp-mibs-downloader/copyright
/usr/share/doc/snmp-mibs-downloader/examples
/usr/share/doc/snmp-mibs-downloader/examples/cisco.conf
/usr/share/doc/snmp-mibs-downloader/examples/ciscolist.gz
/usr/share/doc/snmp-mibs-downloader/examples/junos.conf
/usr/share/doc/snmp-mibs-downloader/examples/junoslist
/usr/share/doc/snmp-mibs-downloader/examples/screenos.conf
/usr/share/doc/snmp-mibs-downloader/examples/screenoslist
/var/cache/apt/archives/snmp-mibs-downloader_1.1_all.deb
/var/lib/dpkg/info/snmp-mibs-downloader.conffiles
/var/lib/dpkg/info/snmp-mibs-downloader.list
/var/lib/dpkg/info/snmp-mibs-downloader.md5sums
/var/lib/dpkg/info/snmp-mibs-downloader.postinst
Reply With Quote
  #5  
Old 13-10-2017, 15:41
SBO SBO is offline
Zabbix Certified Specialist
Zabbix certified specialist
 
Join Date: Sep 2015
Location: France
Posts: 194
Default

Essaye de rajouter ça dans ton snmpd.conf :
export MIBS=/usr/share/mibs/netsnmp
Reply With Quote
  #6  
Old 13-10-2017, 15:52
AddOnGreg AddOnGreg is offline
Junior Member
 
Join Date: May 2017
Posts: 9
Default

J'ai rajouté ça à la première ligne de mon fichier snmpd.conf et j'ai redémarrer le service mais rien ne change malheureusement
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:25.