-
Notifications
You must be signed in to change notification settings - Fork 81
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
ipsec security-associations metrics broken for single RE devices #165
Comments
I think the issue might be at ipsec/collector.go:57 where the new code doesn't call prometheus.MustNewConstMetric in the case that it's a single-RE |
Ah, I see now how it's building the MultiRoutingEngineResults struct at line 113 in either case (multi or single) Strange - I've stepped through the code a few times and even replaced my router's XML output (above) into the rpc_test for single RE (which passes) but the exporter output still has no active tunnels |
and just to confirm, in these test cases, the binary is being run with the following flags (so that ipsec is enabled):
And the monitoring-ro user has [ view security ] permissions (for ipsec tunnels) |
Version: 0.9.11 |
mmanjos you didn't solve the problem? |
@valerarar not yet, unfortunately. I might take another look at it this week with fresh eyes, but back when I reported the issue, I couldn't see what was wrong in the code |
I've just been using the build from revision af9cfdc ever since reporting and it's been working fine for me. It'd be nice to find out what the issue in the multi-RE code is though |
I think that this PR #127 might have broken ipsec security-association metrics for single routing engine platforms. I'll try to fiddle with the code, but it's not my strong suit.
Here's what I get back from my router using
-debug
mode:Using the latest build from 042c6f2 , I get no junos_ipsec_security_associations_state values back from my router:
However, reverting back to 0.9.8 at af9cfdc before the PR mentioned above, it looks like ipsec metrics were working back then:
The text was updated successfully, but these errors were encountered: