New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
devices - Ciena RLS 6500 #15909
devices - Ciena RLS 6500 #15909
Conversation
Running into an issue with the snmpsim data causing tests to fail in the port discovery. The tests expect ifVLAN to be empty ('') but its getting a null. I'm not sure how to resolve that. |
Hi @h-barnhart
For instance : That can be decoded as "1 char ASC(49) which is "1" and 7 chars ASC( 66.111.111.115.116.101.114 ) which are "Booster". So it is 1 byte string, but dual indexed string ... And you are right, current code only support the 1st index string (in that case "1".). Remaining data is ignored. I lack time these days, so unless a miracle happens, your PHP code will make it. If by chance I can improve the index parsing, you may be able to YAML all :) |
Right on. The flip slide is MIB does have entries in the table for both parts of the index that make up the byte string (slot ID and slot name), but doesn't allow access to those entries. If they did I probably wouldn't have had to code as much. |
Are you not allowed to use index_string anymore in YAML discovery? The index value is a string which identifies the slot on the device where the temperature sensor is located. I'm using that in the description of the temp sensor, as there may be multiple versions of the same hardware component in different slots. If I can't use $index_string, is there a way in the YAML to get the string value of the index? If not I'll code it out in PHP. |
I went ahead made a php script to get past the tests. All green now. |
Should be, it is still used by some YAML files. I'll add the fix here hopefully this WE. I have one running in my lab right now. |
Fixed |
Now, index_string can correctly handle an index like "678.hw87" and convert it to the OID representation of it (with length for each of the 2 subindexes and conversion to DEC). |
Seems that issue https://community.librenms.org/t/juniper-loss-not-polling-correctly/16628/3 is now solved |
Allow filtering on "index" in skip_values
Should be possible to do the states in YAML as well, but tomorrow will be another day. |
remove unwanted dot
This pull request has been mentioned on LibreNMS Community. There might be relevant details there: https://community.librenms.org/t/juniper-loss-not-polling-correctly/16628/3 |
All done @h-barnhart |
Those poller and discovery modules aren't used, I was trying to be thorough. I put them back and push a new change. Thanks for looking into the YAML. If you want me to put the temp sensor back in YAML I can and try out the DBM and State sensors as well. I was hoping to get this in before the next full release though. |
Oh, you did all that. Thanks I re-enabled the poller and discovery modules as requested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanx for the PR.
This pull request has been mentioned on LibreNMS Community. There might be relevant details there: |
Adding the new OS ciena-rls, which adds support for Ciena's 6500 Reconfigurable Line System (RLS) optical networking platform.
This will allow for monitoring of optical line system transmit and receive, optical return loss, amplifier status and state, and temperature monitoring.
YAML discovery was used as much as possible. I had to create PHP for the sensors because Ciena used two byte strings at the end of the OID as the index and as far I could tell the YAML would only accept one byte string as an index.
Adds the appropriate MIB files which also updates CIENA-SMI.
Please note
Testers
If you would like to test this pull request then please run:
./scripts/github-apply <pr_id>
, i.e./scripts/github-apply 5926
After you are done testing, you can remove the changes with
./scripts/github-remove
. If there are schema changes, you can ask on discord how to revert.