I got this error popping up today, my cacti has never been on earlier 1.2.x builds.
I was on 0.8.x about 2 days ago and went straight to 1.2.7, and it showed up about 30 mins ago.
The device in question has a interface I monitor that is only present sometimes, as its a ue0 (mobile usb ethernet) network interface that activates when I use the backup 4g connection, I am not going to keep a mobile phone hooked up 24/7/365 for those few times its needed so hence been transient.
0.8.x handled this fine without moaning about it.
My question is are you going to fix this behaviour in a future version? as I dont think its reasonable to expect people to hack xml files and manually fix indexes (especially when you not providing step by step how).
Ok I fixed the bad indexes using the guide from netniV.
Basically it was 3 datasources from my ovpnc2 interface with index for some reason as ovpnc1, so i edited the 1 for 2 and it fixed them.
I am pretty sure this is related to my temporary activation of ue0 which is graphed in cacti.
How did 0.8.x deal with this? was it broken in that also (but it just didnt warn), or is this due to new behaviour in 1.x that doesnt support my use case?
--edit-- some more info
Timeline of events.
1 - Originally just an amber warning for missing ue0 interface which I was ignoring knowing its not present.
2 - The pfsense unit went offline as I took down its main connection, it was brought online via 4g (ue0), but snmp wouldnt have been accessible during this time, so cacti still considered it down.
3 - When the main connection was online again with phone still connected, it appeared in the logs with this error. I find odd considering nothing changed in its disk config.
Code: Select all
30/Oct/2019 21:35:09 - REINDEX WARNING: Sort Field has Changed for Device[PfSense] and DQ[ucd/net - Get Monitored Partitions]. Old Sort:dskIndex, New Sort:dskPath. Re-mapping issues may occur!
30/Oct/2019 21:35:08 - REINDEX WARNING: Sort Field has Changed for Device[PfSense] and DQ[SNMP - Interface Statistics]. Old Sort:ifDescr, New Sort:ifName. Re-mapping issues may occur!
30/Oct/2019 21:35:07 - PCOMMAND Device[PfSense] WARNING: Recache Event Detected for Device
4 - From this point onwards until I fixed it manually, this was on every poll.
Code: Select all
30/Oct/2019 21:40:06 - POLLER: Poller[Main Poller] WARNING: You have 1 Devices with bad SNMP Indexes. Devices: Device[PfSense] totalling 3 Data Sources. Please Either Re-Index, Delete or Disable these Data Sources.
Hope this helps.
I set in the mean time for the pfsense device the snmp interface statistics to 'none' for reindexing.