|
From: Buchan M. <bg...@st...> - 2012-01-17 10:40:02
|
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
|