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
Let me know if I got anything wrong. Kept the two original posted zips as releases, then added in other bits but it's a bit hard to follow whose is the defacto one working lol. Hopefully with the github we can make a more general version that suits all or at least branches off to keep most updates.
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
One more thing I may do tomorrow if I remember is to create a pull request on the thold repo for your fix if it is still needed.
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
Hi,
is there any project to port this plugin over Cacti version 1.x?
thanks
is there any project to port this plugin over Cacti version 1.x?
thanks
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
read posting 1pyron83 wrote:is there any project to port this plugin over Cacti version 1.x?
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
sodium wrote:read posting 1pyron83 wrote:is there any project to port this plugin over Cacti version 1.x?
I'm sorry, I read it, but I didn't find any reference to Cacti 1.x, only to 0.8.8
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
Development moved to Github -- it should work, and if not make a issue on github
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
ok thankssodium wrote:Development moved to Github -- it should work, and if not make a issue on github
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
I have worked on another template porting it over to Cacti 1.x so I can probably investigate and do the same for this. Mostly it just involves working with the script/script server to get the parameters to work correctly. The only downside is that I can't actually test the work and I think sodium's in the same boat now.
So if you find it doesn't work with 1.x, post an issue on the GitHub page https://github.com/netniv/cisco-sfp/issues and i'll get to it.
So if you find it doesn't work with 1.x, post an issue on the GitHub page https://github.com/netniv/cisco-sfp/issues and i'll get to it.
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
I opened an issue.netniV wrote:I have worked on another template porting it over to Cacti 1.x so I can probably investigate and do the same for this. Mostly it just involves working with the script/script server to get the parameters to work correctly. The only downside is that I can't actually test the work and I think sodium's in the same boat now.
So if you find it doesn't work with 1.x, post an issue on the GitHub page https://github.com/netniv/cisco-sfp/issues and i'll get to it.
Feel free to ask any more data you would need to debug the problem.
thanks
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4
thx to netniV now the template is fully compatible with Cacti 1.x and php 7.x
Anyone has an idea on how to show the interface description on the title of the graph?
I tried with various strings but it never works, from the little I know about Cacti, it should be something taken from the XML part of the template.
EDIT: mmm maybe i found something, I'll update the post later
Anyone has an idea on how to show the interface description on the title of the graph?
I tried with various strings but it never works, from the little I know about Cacti, it should be something taken from the XML part of the template.
EDIT: mmm maybe i found something, I'll update the post later
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4b
Hi,
I was trying to make this script work with Cisco Nexus, but it looks like they have a different way to show values.
Below an example (polling the RX index of an interface):
*) Cisco Catalyst C4500 (aka correct values)
$MYUSER@$MYHOSTNAME:~$ snmpbulkwalk -On -v2c -c$MYCOMMUNITY $MYHOSTNAME 1.3.6.1.4.1.9.9.91.1.1.1.1.4.6033
.1.3.6.1.4.1.9.9.91.1.1.1.1.4.6033 = INTEGER: -23
*) Cisco Nexus N7004 (aka -nan graphs)
$MYUSER@$MYHOSTNAME:~$ snmpbulkwalk -On -v2c -c$MYCOMMUNITY $MYHOSTNAME 1.3.6.1.4.1.9.9.91.1.1.1.1.4.301434413
.1.3.6.1.4.1.9.9.91.1.1.1.1.4.301434413 = INTEGER: -19665
I would like to investigate how the PHP script parse those items, but it's not gonna be easy (for me... and I've also to find the time).
For now the Graphs, just show "-nan".
@netniV: any help is appreciated, maybe we can move on GitHub (ofc if you have time to...)
thanks.
I was trying to make this script work with Cisco Nexus, but it looks like they have a different way to show values.
Below an example (polling the RX index of an interface):
*) Cisco Catalyst C4500 (aka correct values)
$MYUSER@$MYHOSTNAME:~$ snmpbulkwalk -On -v2c -c$MYCOMMUNITY $MYHOSTNAME 1.3.6.1.4.1.9.9.91.1.1.1.1.4.6033
.1.3.6.1.4.1.9.9.91.1.1.1.1.4.6033 = INTEGER: -23
*) Cisco Nexus N7004 (aka -nan graphs)
$MYUSER@$MYHOSTNAME:~$ snmpbulkwalk -On -v2c -c$MYCOMMUNITY $MYHOSTNAME 1.3.6.1.4.1.9.9.91.1.1.1.1.4.301434413
.1.3.6.1.4.1.9.9.91.1.1.1.1.4.301434413 = INTEGER: -19665
I would like to investigate how the PHP script parse those items, but it's not gonna be easy (for me... and I've also to find the time).
For now the Graphs, just show "-nan".
@netniV: any help is appreciated, maybe we can move on GitHub (ofc if you have time to...)
thanks.
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4b
Feel free to open an issue on GitHub, I will do what I can though the Template wasn't one of my own making, just one that I moved to github so people could get some fixes and working under 1.2.x
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.4b
Hi,
i just made a new Template with your same script without modifications (but different names) and in the end, a CDEF / 100 associated to that Graph Template.
I don't know why, but I had to re-do everthing from scratch, like if it was a new package (data query, graph template, data source template).
Probably I don't know Cacti well enough.
Anyway it works and now my Nexus are fine, the values were fine, there was just
A) to remove the cap from graph (for Nexus is dbm * 100 so the standard is not enough)
B) to apply a CDEF / 100 to every graph item
thanks
i just made a new Template with your same script without modifications (but different names) and in the end, a CDEF / 100 associated to that Graph Template.
I don't know why, but I had to re-do everthing from scratch, like if it was a new package (data query, graph template, data source template).
Probably I don't know Cacti well enough.
Anyway it works and now my Nexus are fine, the values were fine, there was just
A) to remove the cap from graph (for Nexus is dbm * 100 so the standard is not enough)
B) to apply a CDEF / 100 to every graph item
thanks
Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4b
Hello!
SPINE: Poller[Main Poller] PID[445523] PT[140363465475648] Device[POP1] DS[Missing Datasource 3420] ERROR: Empty result [host]: '/var/www/html/cacti/scripts/ss_cisco_catalyst_sfp.php 'host:34:2:1611:20:infinity2011::::::' 'get' 'rx' '1213''
.. same for TX
When I create that graph in Data Query [Cisco - Catalyst - SFP statistics] both are online TX and RX.
Thanks,
Gabe
SPINE: Poller[Main Poller] PID[445523] PT[140363465475648] Device[POP1] DS[Missing Datasource 3420] ERROR: Empty result [host]: '/var/www/html/cacti/scripts/ss_cisco_catalyst_sfp.php 'host:34:2:1611:20:infinity2011::::::' 'get' 'rx' '1213''
.. same for TX
When I create that graph in Data Query [Cisco - Catalyst - SFP statistics] both are online TX and RX.
Thanks,
Gabe
- Attachments
-
- Screenshot_37.png (37.07 KiB) Viewed 16224 times
Who is online
Users browsing this forum: No registered users and 0 guests