From: <kar...@or...> - 2012-01-17 11:02:45
|
Hello Milne Thanks you very much for all explanation. King Regards Karim Bourenane Responsable du Pôle Expertise des outils FT/OF/DTF/DEX/DEI/RIVD/PEO tél. 02 40 44 09 04 mob. 06 86 46 44 39 kar...@or... -----Message d'origine----- De : Buchan Milne [mailto:bg...@st...] Envoyé : mardi 17 janvier 2012 11:40 À : dev...@li... Cc : BOURENANE Karim DTF/DEI Objet : Re: [Devmon] [DEVMON] Problem in view MIB : IfPhyAddress On Monday, 16 January 2012 18:32:30 kar...@or... wrote: > Hello Team > > If someone, can help about problem with my devmon snmp plugin in my > Xymon 4.2 under Linux RedHat > > I explain my problem: > Devmon running fine with Xymon Monitor, but i want also to view all > IfPhyAddress(MIB) = MAC Address on my web view. The syntax for ifPhysAddress is physAddress, which is a series of bytes in binary. The fact that net-snmp (e.g. snmpwalk) decodes them and prints them nicely for you doesn't change the fact that what devmon receives over the network from the device is an octet string. > Also, on /usr/local/devmon/template/cisco-2960/if_stat/oids i put : > ifPhysAddress : .1.3.6.1.2.1.2.2.1.6 : branch > > on Transform file: > ifPhysAddressBox: REGSUB : {ifPhysAddress} /(\S+.*)/ [$1]/ You probably need to do more transormation here, such as splitting ifPhysAddress into 6 octets, then converting each octet (so, at least 7 transforms, possibly more). You may want to look at the 'log' test in the compaq-server template. In future, it may be worthwhile introducing a new transform which does all of this with one operator, but then it may make more sense switching to a different SNMP module which supports MIBs and has automatic syntax conversions. > Thats mean devmon cannot take MAC Addresse in Ifc PhysAdd section. Wrong ... it is presenting the MAC address, just not ina human-readable form ... > Can anyone have already see this ? and can help me ? Regards, Buchan _________________________________________________________________________________________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorization. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, France Telecom - Orange shall not be liable if this message was modified, changed or falsified. Thank you. |