Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4b
Moderators: Developers, Moderators
Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4b
Hi,
I've created a small plugin to monitor Cisco SFP's (with DOM -- digital optical monitoring) (like this one http://www.cisco.com/en/US/products/hw/ ... 3f885.html ) and create a graph with the optical transmit/receive values.
Since the OID's for DOM monitoring are a bit funky I created this plugin. It's my first plugin -- so please be a bit gentile with me
I've included a patch for thold (v3.4) since thold (baseline function) can't handle negative values. (this patch works for me -- your mileage may vary)
on 20171219 user netniV moved the development to github https://github.com/netniV/cisco-sfp therfore I give the permission to remove the remaining copyright if all other parties agree
I've created a small plugin to monitor Cisco SFP's (with DOM -- digital optical monitoring) (like this one http://www.cisco.com/en/US/products/hw/ ... 3f885.html ) and create a graph with the optical transmit/receive values.
Since the OID's for DOM monitoring are a bit funky I created this plugin. It's my first plugin -- so please be a bit gentile with me
I've included a patch for thold (v3.4) since thold (baseline function) can't handle negative values. (this patch works for me -- your mileage may vary)
on 20171219 user netniV moved the development to github https://github.com/netniV/cisco-sfp therfore I give the permission to remove the remaining copyright if all other parties agree
- Attachments
-
- cisco-sfp-v0.2.4.tgz
- 0.2.4 beta
- (11.38 KiB) Downloaded 3172 times
-
- cisco-sfp-v0.2.3.tgz
- script server (plugin) v0.2.3
- (11.36 KiB) Downloaded 1696 times
-
- Example graph of v0.2b
- sfpv02b.jpg (60.17 KiB) Viewed 58279 times
Last edited by sodium on Tue Dec 19, 2017 7:12 am, edited 13 times in total.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Once Tony resolved your issue, I can audit. It may be better to host it somewhere and simply provide the link here though.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Forum permissions have been update, you should be able to attach the files you want now.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Re: Cisco SFP (with DOM) Optical value plugin v0.1
These are awesome! I posted a message to the template forum the other day to see if anyone had done this, I was having trouble with it myself. Works great! I haven't tried the negative value thold patch yet as my thold plugin is a little out of date.sodium wrote:
I've created a small plugin to monitor Cisco SFP's (with DOM -- digital optical monitoring) (like this one http://www.cisco.com/en/US/products/hw/ ... 3f885.html ) and create a graph with the optical transmit/receive values.
My only suggestion would be picking up ifAlias some how so that when you run the query, you'll get the description of the interface instead of just the name. Not sure how one would do that though, Cisco's SNMP implementation of DOM is pretty bizarre.
Re: Cisco SFP (with DOM) Optical value plugin v0.1
I'm glad that it helped you... If you look at the patch you'll see that my additions are pretty slim and easy to port to other versions then v3.4 (you can wait for the developer of thold if he ok's my changes)tl1997 wrote:These are awesome! I posted a message to the template forum the other day to see if anyone had done this, I was having trouble with it myself. Works great! I haven't tried the negative value thold patch yet as my thold plugin is a little out of date.
tl1997 wrote:My only suggestion would be picking up ifAlias some how so that when you run the query, you'll get the description of the interface instead of just the name. Not sure how one would do that though, Cisco's SNMP implementation of DOM is pretty bizarre.
Good Idea I'll look into that. -- You're right about the bizarre part
Re: Cisco SFP (with DOM) Optical value plugin v0.1
I added the ifAlias (Description field) to the plugin. I'm calling it beta because I do not like the solution... it's too processor intensive (3 queries to the mysql database -- and they need to be optimized) but it works (flaky) hence Betatl1997 wrote:My only suggestion would be picking up ifAlias some how so that when you run the query, you'll get the description of the interface instead of just the name. Not sure how one would do that though, Cisco's SNMP implementation of DOM is pretty bizarre.
Hi,
do a snmpwalk on .1.3.6.1.4.1.9.9.91.1.1.1.1.2 and look for strings like this:
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4048 = STRING: "TenGigabitEthernet4/4 Module Temperature Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4049 = STRING: "TenGigabitEthernet4/4 Supply Voltage Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4050 = STRING: "TenGigabitEthernet4/4 Bias Current Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4051 = STRING: "TenGigabitEthernet4/4 Transmit Power Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4052 = STRING: "TenGigabitEthernet4/4 Receive Power Sensor"
These are typical DOM strings from the CISCO-ENTITY-SENSOR-MIB
see http://www.cisco.com/en/US/tech/tk648/t ... 4b9e.shtml
for details
do a snmpwalk on .1.3.6.1.4.1.9.9.91.1.1.1.1.2 and look for strings like this:
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4048 = STRING: "TenGigabitEthernet4/4 Module Temperature Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4049 = STRING: "TenGigabitEthernet4/4 Supply Voltage Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4050 = STRING: "TenGigabitEthernet4/4 Bias Current Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4051 = STRING: "TenGigabitEthernet4/4 Transmit Power Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4052 = STRING: "TenGigabitEthernet4/4 Receive Power Sensor"
These are typical DOM strings from the CISCO-ENTITY-SENSOR-MIB
see http://www.cisco.com/en/US/tech/tk648/t ... 4b9e.shtml
for details
I have no response when I do a snmpwalk on .1.3.6.1.4.1.9.9.91.1.1.1.1.2 .sodium wrote:Hi,
do a snmpwalk on .1.3.6.1.4.1.9.9.91.1.1.1.1.2 and look for strings like this:
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4048 = STRING: "TenGigabitEthernet4/4 Module Temperature Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4049 = STRING: "TenGigabitEthernet4/4 Supply Voltage Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4050 = STRING: "TenGigabitEthernet4/4 Bias Current Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4051 = STRING: "TenGigabitEthernet4/4 Transmit Power Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4052 = STRING: "TenGigabitEthernet4/4 Receive Power Sensor"
These are typical DOM strings from the CISCO-ENTITY-SENSOR-MIB
see http://www.cisco.com/en/US/tech/tk648/t ... 4b9e.shtml
for details
Do I have to enable something on my cisco 3750 to have transceiver monitoring ? For example, I found something like "transceiver type all" but this command doesn't exist on a 3750...
Thanks
In the config of our 65xx's are the following commands: (in IOS release 12.2(18)SXF )Tekk wrote:Do I have to enable something on my cisco 3750 to have transceiver monitoring ? For example, I found something like "transceiver type all" but this command doesn't exist on a 3750...
!
transceiver type all
monitoring
!
According to the cisco feature navigator, DOM isn't supported on the 3750 platform. The only platforms listed are the 6500 and 7600.sodium wrote:In the config of our 65xx's are the following commands: (in IOS release 12.2(18)SXF )Tekk wrote:Do I have to enable something on my cisco 3750 to have transceiver monitoring ? For example, I found something like "transceiver type all" but this command doesn't exist on a 3750...
!
transceiver type all
monitoring
!
You also have to have the SFP's with part number starting in SFP-, and not GLC- parts.
Dohhh, the command is not supported in 12.2(18)SXD7a ip base
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
Who is online
Users browsing this forum: No registered users and 2 guests