-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
New OS: Support for Glass Way EYDFA WDM Optical Amplifier #9125
Conversation
Im stucked here. Dont know why Travis complains about sensors, i've not changed them, only did formattings fixes. |
includes/definitions/gw-eydfa.yaml
Outdated
- { graph: device_temperature, text: 'Temperatures' } | ||
- { graph: device_dbm, text: 'Optics' } | ||
mib_dir: | ||
- gw-eydfa |
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.
Change the mib dir to glassway
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.
I'll do! 👌
includes/polling/os/gw-eydfa.inc.php
Outdated
* @author TheGreatDoc | ||
*/ | ||
|
||
$hardware = snmp_get($device, ".1.3.6.1.4.1.17409.1.3.3.2.2.1.4.1", "-OQv"); |
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.
Do you not have the OID names to use here? Also needs converting to multi gets.
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.
Yes. I dont know why I used numeric.
I'll give this a shot to move to yml. |
I can try again with yml, but I'll need some help in how to select proper values for te table that contains different sensor types (Current and Voltage) and in the parse of the limits indexes (yml parse part of the oid as index) |
@laf I moved to yaml. The only I cant get working are the limits. Yaml: https://pastebin.com/EXbNyE5y |
You need to pre-cache |
Still stucked, even with pre-cache. I've tried using:
With same result. No limit is set in the discovery |
You'll need to post the updated files and discovery debug :) |
Sometimes I'm like a newbie. |
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.
Last little bit then this is good to go
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.
Sorry I think one last thing, the $sensor_index
values look too random. You should use for instance commonDeviceInternalTemperature.$index
I was using the sensor description as sensor index, so the code is the same in all sensors but I dont really care on the name of sensor index. |
…to gw-eydfa Conflicts: tests/data/gw-eydfa.json tests/snmpsim/gw-eydfa.snmprec
Hopefully the svg was just the last thing that needed fixing. You can use https://jakearchibald.github.io/svgomg/ to compress the file + you need to swap out width/height for a viewbox value - see existing files. I've sorted this now so hopefully tests pass. |
Thanks @laf |
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
DO NOT DELETE THIS TEXT
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
NOTE: Those devices come all with same
sysName
so$config['allow_duplicate_sysName'] = true;
is needed to have more than 1 working.