Skip to content
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

Parser Needs to REGEX a string to extract a Value #242

Open
penfold1972 opened this issue Sep 19, 2018 · 0 comments
Open

Parser Needs to REGEX a string to extract a Value #242

penfold1972 opened this issue Sep 19, 2018 · 0 comments

Comments

@penfold1972
Copy link

I am working on making a parser for the command "show interface diagnostic optic" which displays data on the installed optics in the device. (e.g. Temp, Power and Rx/Tx strength) I think I have the parser working for all of the metrics except the Temp, which the devices return as a string containing values in C and F.

So I am experimenting with a way to make a measurement for both scales, and use REGEX to populate that measurement with the appropriate value from the string. The idea is that this would be a graphable value when Grafana pulls it out of the DB.

I'm not getting the measurement with the "C" or "F" suffix, nor is it giving me the value I think I am telling it to isolate. I am hoping that someone can point out where I am going wrong?

Parser and Dashboard Attached:

show-interfaces-diagnostics-optics.parser.yaml.TXT
interface_diag_optics.json.TXT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant