-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
When reindexing, verify all fields may not work as intended #5840
Comments
Upload the resource XML file. |
as mentioned, that's in the pack i uploaded a while ago, but here we go ... |
@bernisys, what happens when you run the command below? snmpwalk -c blah -v blah_blah 1.3.6.1.4.1.2636.3.39.1.12.1.1.1.3 blahhostname |
well, see above output of the snmpwalk of the OID without .3 at the end in other words: .1.3.6.1.4.1.2636.3.39.1.12.1.1.1.3.0 = Gauge32: 0 |
That's what I would have expected. I'll have to take a look. This could be an issue in the core of the Cacti code. But the fact that it returned No SUCH OID means that it was likely using a snmpget, which makes no sense looking at the XML file. |
Exactly what i thought as well. At least for the index OID it should use "walk" by default, to overcome such kind of issues. |
confirming: Fixed now. |
Thanks @bernisys ! |
Describe the bug
We have a JunOS query which should return the SPU utilization (you can check the file, i had given you and Sean the whole bunch of our queries and scripts - it is: resource/snmp_queries/juniper_spu_all.xml).
We have several cases, where this query is failing for some reason on newly integrated devices, and i get a suspicion that it might have to do with the device having only one single SPU installed. When spine is doing the re-caching checks, it somehow fails to query the only sub-OID ".0" ("0" is the only object-index in the SNMP tree - see manual query below).
I have tested multiple spine versions and it started to completely fail in version 1.2.22 and we now use 1.2.27
Up to 1.2.21 we still get the re-cache assert fail but the device is not completely dropped out.
Starting with 1.2.22 the whole device is marked with the "ignore" flag and polling stops for all other data sources as well.
In our case we use the index-OID ".1.3.6.1.4.1.2636.3.39.1.12.1.1.1.3" which is also marked as "walk below in the fields section (does spine even check this? Shouldn't it use "walk" by default when checking an index?). And we use the OID parser to determine the index from the OID itself, even if the manual suggests that cacti can determine this on its own.
Here's the output of a snmpwalk on the tree .1.3.6.1.4.1.2636.3.39.1.12.1.1.1
Remember, "0" is the only instance - so it might look to cacti as if this is not a table, but a bunch of single objects.
And here is what cacti does once it reaches the "SPU" query ("interfaces" is re-cached perfectly fine!):
Expected behavior
Server (please complete the following information):
Compiling (please complete the following information):
Additional context
Logs can be provided on demand.
The text was updated successfully, but these errors were encountered: