Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4b

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4

Post by netniV »

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
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4

Post by netniV »

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
pyron83
Posts: 8
Joined: Tue Jan 16, 2018 3:48 am

Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4

Post by pyron83 »

Hi,

is there any project to port this plugin over Cacti version 1.x?

thanks
sodium
Cacti User
Posts: 115
Joined: Wed Feb 01, 2006 10:29 am

Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4

Post by sodium »

pyron83 wrote:is there any project to port this plugin over Cacti version 1.x?
read posting 1
All the problems of the world could be settled if people were only willing to think...
pyron83
Posts: 8
Joined: Tue Jan 16, 2018 3:48 am

Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4

Post by pyron83 »

sodium wrote:
pyron83 wrote:is there any project to port this plugin over Cacti version 1.x?
read posting 1

I'm sorry, I read it, but I didn't find any reference to Cacti 1.x, only to 0.8.8
sodium
Cacti User
Posts: 115
Joined: Wed Feb 01, 2006 10:29 am

Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4

Post by sodium »

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...
pyron83
Posts: 8
Joined: Tue Jan 16, 2018 3:48 am

Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4

Post by pyron83 »

sodium wrote:Development moved to Github -- it should work, and if not make a issue on github
ok thanks
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4

Post by netniV »

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.
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
pyron83
Posts: 8
Joined: Tue Jan 16, 2018 3:48 am

Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4

Post by pyron83 »

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.
I opened an issue.

Feel free to ask any more data you would need to debug the problem.


thanks
pyron83
Posts: 8
Joined: Tue Jan 16, 2018 3:48 am

Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4

Post by pyron83 »

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 ;)
pyron83
Posts: 8
Joined: Tue Jan 16, 2018 3:48 am

Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4b

Post by pyron83 »

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.
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4b

Post by netniV »

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
pyron83
Posts: 8
Joined: Tue Jan 16, 2018 3:48 am

Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4b

Post by pyron83 »

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
GabrielV
Posts: 5
Joined: Fri Dec 13, 2019 4:31 am

Re: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4b

Post by GabrielV »

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:161:1000:1: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
Screenshot_37.png (37.07 KiB) Viewed 11826 times
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests