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

[Bug] Adding a metric with a slash(/) in the ID causes 404 errors when trying to edit the metric #530

Open
cullorblind opened this issue Feb 28, 2023 · 0 comments

Comments

@cullorblind
Copy link

cullorblind commented Feb 28, 2023

Just ran into this one. I didn't see any other obviously related issues.

  • What SnmpCollector version are you using? 0.13.1 commit d645bf2
  • What OS are you running snmpcollector on? Debian 11
  • What did you do? One of our techs added a metric with a slash(/) in the name, and was unable to edit that metric from the gui.
    eg. AVIAT-RF-MIB::aviatRfFreqTx-Carrier1/1
  • What was the expected result? Metrics shouldn't 404 when loading.
  • What happened instead? Received red 404 page not found alert box when clicking on metric edit button.

I was able to fix this instance by using sqlite3 to rename the metric IDs.

  • eg.
    sqlite> update snmp_metric_cfg set id="AVIAT-RF-MIB::aviatRfFreqTx-Carrier1-1" where id="AVIAT-RF-MIB::aviatRfFreqTx-Carrier1/1"
    sqlite> update measurement_field_cfg set id_metric_cfg="AVIAT-RF-MIB::aviatRfFreqTx-Carrier1-1" where id_metric_cfg="AVIAT-RF-MIB::aviatRfFreqTx-Carrier1/1";
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