Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4b
Moderators: Developers, Moderators
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
Hello!
I have a problem with monitoring rx_power on HundredGigabitEthernet on Cisco XR, with template 0.4.0. Does anybody know way to fix?
I have a problem with monitoring rx_power on HundredGigabitEthernet on Cisco XR, with template 0.4.0. Does anybody know way to fix?
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
So what is the current version of the plugin?
Is there a URL where the latest version can be obtained?
Is anyone working to merge the diffs from contributors
Please feel free to privately contact me ... we really need to have the Cacti-equivalent of the NAGIOS pluginExchange site.
Brian Seklecki
Is there a URL where the latest version can be obtained?
Is anyone working to merge the diffs from contributors
Please feel free to privately contact me ... we really need to have the Cacti-equivalent of the NAGIOS pluginExchange site.
Brian Seklecki
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
I started to modify the code to support reading TX Bias microAmperes values as well.
My diffs are at: http://digitalfreaks.org/~lavalamp/ss_c ... p_dom-DEV/
For those of you with PHP Index errors, the fix at:
@@ -118,19 +127,30 @@
( The while statement -> if statement )
I'm about to embark on a complete re-write of this plugin to support Ciena SAOS and Cisco ONS15454 which use a different set of MIBs (CISCO-OPTICAL-MONITORING-MIB / CERENT-OPTICAL-MONITORING-MIB )
Here's an example showing RX variation on an SFP over a 24 hour period
Lastly, here's an example output of the device discovery of data structures per the Cacti Plugin API:
My diffs are at: http://digitalfreaks.org/~lavalamp/ss_c ... p_dom-DEV/
For those of you with PHP Index errors, the fix at:
@@ -118,19 +127,30 @@
( The while statement -> if statement )
I'm about to embark on a complete re-write of this plugin to support Ciena SAOS and Cisco ONS15454 which use a different set of MIBs (CISCO-OPTICAL-MONITORING-MIB / CERENT-OPTICAL-MONITORING-MIB )
Here's an example showing RX variation on an SFP over a 24 hour period
Lastly, here's an example output of the device discovery of data structures per the Cacti Plugin API:
Code: Select all
Data Query Debug Information
+ Running data query [10].
+ Found type = '6' [Script Query - Script Server].
+ Found data query XML file at '/usr/share/cacti/site/resource/script_server/cisco_sfp_dom.xml'
+ XML file parsed ok.
+ Executing script for num of indexes '"/usr/bin/php" -q /usr/share/cacti/site/scripts/ss_cisco_sfp_dom.php [NETWORK-ELEMENT] [COMMUNITY-STRING] 2 num_indexes'
+ Found number of indexes: 25
+ Executing script for list of indexes '"/usr/bin/php" -q /usr/share/cacti/site/scripts/ss_cisco_sfp_dom.php [NETWORK-ELEMENT] [COMMUNITY-STRING] 2 index' Index Count: 5
+ Found index: 1045.1046.1044
+ Found index: 1051.1052.1050
+ Found index: 1057.1058.1056
+ Found index: 1063.1064.1062
+ Found index: 1069.1070.1068
+ Executing script query '"/usr/bin/php" -q /usr/share/cacti/site/scripts/ss_cisco_sfp_dom.php [NETWORK-ELEMENT] [COMMUNITY-STRING] 2 query index'
+ Found item [index='1045.1046.1044'] index: 1045.1046.1044
+ Found item [index='1051.1052.1050'] index: 1051.1052.1050
+ Found item [index='1057.1058.1056'] index: 1057.1058.1056
+ Found item [index='1063.1064.1062'] index: 1063.1064.1062
+ Found item [index='1069.1070.1068'] index: 1069.1070.1068
+ Executing script query '"/usr/bin/php" -q /usr/share/cacti/site/scripts/ss_cisco_sfp_dom.php [NETWORK-ELEMENT] [COMMUNITY-STRING] 2 query interface'
+ Found item [ifDescr='GigabitEthernet0/1'] index: 1045.1046.1044
+ Found item [ifDescr='GigabitEthernet0/2'] index: 1051.1052.1050
+ Found item [ifDescr='GigabitEthernet0/3'] index: 1057.1058.1056
+ Found item [ifDescr='TenGigabitEthernet0/2'] index: 1063.1064.1062
+ Found item [ifDescr='TenGigabitEthernet0/1'] index: 1069.1070.1068
+ Executing script query '"/usr/bin/php" -q /usr/share/cacti/site/scripts/ss_cisco_sfp_dom.php [NETWORK-ELEMENT] [COMMUNITY-STRING] 2 query if_name'
+ Found item [ifName='Gi0/1'] index: 1045.1046.1044
+ Found item [ifName='Gi0/2'] index: 1051.1052.1050
+ Found item [ifName='Gi0/3'] index: 1057.1058.1056
+ Found item [ifName='Te0/2'] index: 1063.1064.1062
+ Found item [ifName='Te0/1'] index: 1069.1070.1068
+ Executing script query '"/usr/bin/php" -q /usr/share/cacti/site/scripts/ss_cisco_sfp_dom.php [NETWORK-ELEMENT] [COMMUNITY-STRING] 2 query status'
+ Found item [status='Online'] index: 1045.1046.1044
+ Found item [status='Online'] index: 1051.1052.1050
+ Found item [status='Online'] index: 1057.1058.1056
+ Found item [status='Online'] index: 1063.1064.1062
+ Found item [status='Online'] index: 1069.1070.1068
+ Executing script query '"/usr/bin/php" -q /usr/share/cacti/site/scripts/ss_cisco_sfp_dom.php [NETWORK-ELEMENT] [COMMUNITY-STRING] 2 query descr'
+ Found item [ifAlias='** Environmental **'] index: 1045.1046.1044
+ Found item [ifAlias='** Customer UNI ** '] index: 1051.1052.1050
+ Found item [ifAlias='** Customer UNI ** '] index: 1057.1058.1056
+ Found item [ifAlias='** NNI to [NEIGHBOR] Te0/2/1/0 **'] index: 1063.1064.1062
+ Found item [ifAlias='** NNI to [NEIGHBOR] TE0/3/0/1 **'] index: 1069.1070.1068
- Attachments
-
- Example_SFP_LightLevelMonitoring_CactiModifications_Filtered.png (16.46 KiB) Viewed 21261 times
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
Also, I'm working on a version of this script (well, new code, derived from what I learned about the Cacti script_server API from Reverse-Engineering ss_cisco_sfp.php) for Ciena SAOS / LEOS platforms (39xx / 51xx "Service Delivery Switch")
If anyone is interested in helping test/debug that new code, please let me know. I'd be happy to hear that there are other Ciena customers in the fold.
If anyone is interested in helping test/debug that new code, please let me know. I'd be happy to hear that there are other Ciena customers in the fold.
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
Yes, I would be interesting in testing this on 39xx and 51xx's.bseklecki wrote:Also, I'm working on a version of this script (well, new code, derived from what I learned about the Cacti script_server API from Reverse-Engineering ss_cisco_sfp.php) for Ciena SAOS / LEOS platforms (39xx / 51xx "Service Delivery Switch")
If anyone is interested in helping test/debug that new code, please let me know. I'd be happy to hear that there are other Ciena customers in the fold.
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
Is there a specific plugin set from this thread that is know to be working?
-
- Posts: 13
- Joined: Fri Mar 11, 2011 7:22 am
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
anyone have an idea to use autom8 to make automatically Graphs for DOM sfp's ?
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
Hi all,
I want to monitor Cisco SFP, DOM for Cisco Switch 2960/3750/3560/...
Can you help me?
I want to monitor Cisco SFP, DOM for Cisco Switch 2960/3750/3560/...
Can you help me?
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
I do not have access to those kind of switches and do not know (for sure) those switches expose DOM information the same way the original platform does...
sorry
sorry
All the problems of the world could be settled if people were only willing to think...
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
The plugin should work with any Cisco IOS Box. But you should check if DOM is supported on your Hardware, IOS and transceiver. Use "sh int trans det".haind wrote: I want to monitor Cisco SFP, DOM for Cisco Switch 2960/3750/3560/...
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
Hi all,
I want to graph the optical values from a SG300-28SFP switch which has DOM support.
The Cisco SG300 line is different then the Catalyst switch line and therefore also use different OIDs.
When excecuting "show fiber-ports optical-transceiver" via CLI on the SG300, I get the following output:
Gi1 and gi28 are currently the only ports with a SFP module. This is the output of snmpwalk:
From this snmpwalk I conclude the following:
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.5 = INTEGER: 32 (temperature)
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.6 = INTEGER: 3267100 (volltage)
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.7 = INTEGER: 7793 (current)
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.8 = INTEGER: -5152 (output power/calculation needed?)
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.9 = INTEGER: -12519 (input power/calculation needed?)
.49. defines obfiously the interface (gi1) as .76. is the gi28 interface.
Can somebody out there implent this into either a new template or the existing ones?
I´m running cacti 0.8.8b.
The firmware version running on the SG300 is 1.4.5.02
thx
I want to graph the optical values from a SG300-28SFP switch which has DOM support.
The Cisco SG300 line is different then the Catalyst switch line and therefore also use different OIDs.
When excecuting "show fiber-ports optical-transceiver" via CLI on the SG300, I get the following output:
Code: Select all
sw1#show fiber-ports optical-transceiver
Port Temp Voltage Current Output Input LOS
[C] [Volt] [mA] Power Power
[mWatt] [mWatt]
----------- ------ ------- ------- ------- ------- ---
gi1 32 3.26 7.79 0.30 0.05 No
gi2 N/A N/A N/A N/A N/A N/A
gi3 N/A N/A N/A N/A N/A N/A
gi4 N/A N/A N/A N/A N/A N/A
gi5 N/A N/A N/A N/A N/A N/A
gi6 N/A N/A N/A N/A N/A N/A
gi7 N/A N/A N/A N/A N/A N/A
gi8 N/A N/A N/A N/A N/A N/A
gi9 N/A N/A N/A N/A N/A N/A
gi10 N/A N/A N/A N/A N/A N/A
gi11 N/A N/A N/A N/A N/A N/A
gi12 N/A N/A N/A N/A N/A N/A
gi13 N/A N/A N/A N/A N/A N/A
gi14 N/A N/A N/A N/A N/A N/A
gi15 N/A N/A N/A N/A N/A N/A
gi16 N/A N/A N/A N/A N/A N/A
gi17 N/A N/A N/A N/A N/A N/A
gi18 N/A N/A N/A N/A N/A N/A
gi19 N/A N/A N/A N/A N/A N/A
gi20 N/A N/A N/A N/A N/A N/A
gi21 N/A N/A N/A N/A N/A N/A
gi22 N/A N/A N/A N/A N/A N/A
gi23 N/A N/A N/A N/A N/A N/A
gi24 N/A N/A N/A N/A N/A N/A
gi25 N/A N/A N/A N/A N/A N/A
gi26 N/A N/A N/A N/A N/A N/A
gi27 N/A N/A N/A N/A N/A N/A
gi28 28 3.32 1.60 0.30 0.27 No
Temp - Internally measured transceiver temperature
Voltage - Internally measured supply voltage
Current - Measured TX bias current
Output Power - Measured TX output power in milliWatts
Input Power - Measured RX received power in milliWatts
LOS - Loss of signal
N/A - Not Available, N/S - Not Supported, W - Warning, E - Error
Code: Select all
snmpwalk <ip_address> -v 2c -c <SNMP community> 1.3.6.1.4.1.9.6.1.101.90.1.2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.1.49.5 = INTEGER: 5
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.1.49.6 = INTEGER: 6
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.1.49.7 = INTEGER: 7
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.1.49.8 = INTEGER: 8
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.1.49.9 = INTEGER: 9
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.1.49.10 = INTEGER: 10
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.1.49.11 = INTEGER: 11
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.1.49.12 = INTEGER: 12
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.1.76.5 = INTEGER: 5
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.1.76.6 = INTEGER: 6
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.1.76.7 = INTEGER: 7
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.1.76.8 = INTEGER: 8
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.1.76.9 = INTEGER: 9
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.1.76.10 = INTEGER: 10
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.1.76.11 = INTEGER: 11
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.1.76.12 = INTEGER: 12
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.2.49.5 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.2.49.6 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.2.49.7 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.2.49.8 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.2.49.9 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.2.49.10 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.2.49.11 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.2.49.12 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.2.76.5 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.2.76.6 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.2.76.7 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.2.76.8 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.2.76.9 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.2.76.10 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.2.76.11 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.2.76.12 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.5 = INTEGER: 32
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.6 = INTEGER: 3267100
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.7 = INTEGER: 7793
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.8 = INTEGER: -5152
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.9 = INTEGER: -12519
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.10 = INTEGER: 0
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.11 = INTEGER: 0
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.12 = INTEGER: 0
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.76.5 = INTEGER: 28
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.76.6 = INTEGER: 3328600
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.76.7 = INTEGER: 1708
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.76.8 = INTEGER: -5219
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.76.9 = INTEGER: -5568
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.76.10 = INTEGER: 0
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.76.11 = INTEGER: 0
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.76.12 = INTEGER: 0
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.4.49.5 = INTEGER: 7
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.4.49.6 = INTEGER: 8
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.4.49.7 = INTEGER: 10
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.4.49.8 = INTEGER: 17
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.4.49.9 = INTEGER: 17
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.4.49.10 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.4.49.11 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.4.49.12 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.4.76.5 = INTEGER: 7
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.4.76.6 = INTEGER: 8
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.4.76.7 = INTEGER: 10
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.4.76.8 = INTEGER: 17
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.4.76.9 = INTEGER: 17
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.4.76.10 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.4.76.11 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.4.76.12 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.5.49.5 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.5.49.6 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.5.49.7 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.5.49.8 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.5.49.9 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.5.49.10 = INTEGER: 1
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.5.49.11 = INTEGER: 1
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.5.49.12 = INTEGER: 1
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.5.76.5 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.5.76.6 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.5.76.7 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.5.76.8 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.5.76.9 = INTEGER: 2
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.5.76.10 = INTEGER: 1
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.5.76.11 = INTEGER: 1
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.5.76.12 = INTEGER: 1
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.6.49.5 = STRING: "21-Apr-2016 07:28:26 "
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.6.49.6 = STRING: "21-Apr-2016 07:28:26 "
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.6.49.7 = STRING: "21-Apr-2016 07:28:26 "
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.6.49.8 = STRING: "21-Apr-2016 07:28:26 "
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.6.49.9 = STRING: "21-Apr-2016 07:28:26 "
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.6.49.10 = STRING: "21-Apr-2016 07:28:26 "
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.6.49.11 = STRING: "21-Apr-2016 07:28:26 "
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.6.49.12 = STRING: "21-Apr-2016 07:28:26 "
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.6.76.5 = STRING: "21-Apr-2016 07:28:26 "
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.6.76.6 = STRING: "21-Apr-2016 07:28:26 "
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.6.76.7 = STRING: "21-Apr-2016 07:28:26 "
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.6.76.8 = STRING: "21-Apr-2016 07:28:26 "
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.6.76.9 = STRING: "21-Apr-2016 07:28:26 "
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.6.76.10 = STRING: "21-Apr-2016 07:28:26 "
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.6.76.11 = STRING: "21-Apr-2016 07:28:26 "
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.6.76.12 = STRING: "21-Apr-2016 07:28:26 "
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.5 = INTEGER: 32 (temperature)
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.6 = INTEGER: 3267100 (volltage)
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.7 = INTEGER: 7793 (current)
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.8 = INTEGER: -5152 (output power/calculation needed?)
iso.3.6.1.4.1.9.6.1.101.90.1.2.1.3.49.9 = INTEGER: -12519 (input power/calculation needed?)
.49. defines obfiously the interface (gi1) as .76. is the gi28 interface.
Can somebody out there implent this into either a new template or the existing ones?
I´m running cacti 0.8.8b.
The firmware version running on the SG300 is 1.4.5.02
thx
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
Hi,
I'm testing with the 0.4 release that rps64 posted, great work.
However I'm getting the index errors that bseklecki mentions, but the site with the mentioned patch is gone :/
I'm running it off the command line against an ASR920 and it seems to label them as (snmpwalk):
With my limited PHP knowledge, it seems that it's handled by the script. However I think it fails at the while loop of the parents.
Any help appreciated!
I'm testing with the 0.4 release that rps64 posted, great work.
However I'm getting the index errors that bseklecki mentions, but the site with the mentioned patch is gone :/
Code: Select all
PHP Notice: Undefined index: 0 in /var/www/cacti/scripts/ss_cisco_sfp_dom.php on line 130
PHP Notice: Undefined index: 0 in /var/www/cacti/scripts/ss_cisco_sfp_dom.php on line 131
PHP Notice: Undefined index: 0 in /var/www/cacti/scripts/ss_cisco_sfp_dom.php on line 130
PHP Notice: Undefined index: 0 in /var/www/cacti/scripts/ss_cisco_sfp_dom.php on line 131
PHP Notice: Undefined index: 0 in /var/www/cacti/scripts/ss_cisco_sfp_dom.php on line 130
PHP Notice: Undefined index: 0 in /var/www/cacti/scripts/ss_cisco_sfp_dom.php on line 131
I'm running it off the command line against an ASR920 and it seems to label them as (snmpwalk):
Code: Select all
SNMPv2-SMI::mib-2.47.1.1.1.1.2.471 = STRING: "subslot 0/0 transceiver container 8"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.472 = STRING: "GE LX"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.473 = STRING: "12xGE-4x10GE-FIXED"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.475 = STRING: "subslot 0/0 transceiver 8 Temperature Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.476 = STRING: "subslot 0/0 transceiver 8 Supply Voltage Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.477 = STRING: "subslot 0/0 transceiver 8 Bias Current Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.478 = STRING: "subslot 0/0 transceiver 8 Tx Power Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.479 = STRING: "subslot 0/0 transceiver 8 Rx Power Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.485 = STRING: "subslot 0/0 transceiver container 9"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.499 = STRING: "subslot 0/0 transceiver container 10"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.513 = STRING: "subslot 0/0 transceiver container 11"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.514 = STRING: "GE LX"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.515 = STRING: "12xGE-4x10GE-FIXED"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.517 = STRING: "subslot 0/0 transceiver 11 Temperature Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.518 = STRING: "subslot 0/0 transceiver 11 Supply Voltage Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.519 = STRING: "subslot 0/0 transceiver 11 Bias Current Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.520 = STRING: "subslot 0/0 transceiver 11 Tx Power Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.521 = STRING: "subslot 0/0 transceiver 11 Rx Power Sensor"
With my limited PHP knowledge, it seems that it's handled by the script. However I think it fails at the while loop of the parents.
Any help appreciated!
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
my quick fix for cisco 3750 12.2(55)SE11 and cacti 1.1.20 and 0.4.0
Code: Select all
27c27
< die("<br><strong>This script is only meant to run at the command line.</strong>");
---
> // die("<br><strong>This script is only meant to run at the command line.</strong>");
130a131
> (!preg_match('/(Power Sensor)/', $devices[$var_parent]['name'], $matches)) &&
141a143,144
> $interface = str_replace(' Transmit Power Sensor', '', $interface);
> $interface = str_replace(' Receive Power Sensor', '', $interface);
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
I have created a github repository for this template. I've stuck mostly to sodium's and toe_cutter's versions of the scripts but I notice there are a couple of patches later that may also be desired.
https://github.com/netniV/cisco-sfp
If anyone wants to put their work into the repo, let me know.
If there are slight variants, it may be worth creating a branch for testing purposes and merging back later.
https://github.com/netniV/cisco-sfp
If anyone wants to put their work into the repo, let me know.
If there are slight variants, it may be worth creating a branch for testing purposes and merging back later.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
https://github.com/netniV/cisco-sfpmarkv wrote:I have created a github repository for this template. I've stuck mostly to sodium's and toe_cutter's versions of the scripts but I notice there are a couple of patches later that may also be desired.
COOL! i'll watch it and star it
You have the permission to loose the copyright and make it open-source (on github my handle is 0xygen8) I have changed the original post 1 and pointed to the github repos
All the problems of the world could be settled if people were only willing to think...
Who is online
Users browsing this forum: No registered users and 3 guests