Closed jriker1 closed 4 years ago
The snmp implementation does seem to run a separate snmp client for each sensor you add. So it's likely very inefficient. It probably should keep a global SnmpEngine atleast.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
I have issue that sounds similar, but after investigation it looks like an issue with snmpwalk
. When issuing query for OID 1.3.6.1.2.1.43.11.1.1.8.0 I get 4, ending with 1, 2, 3, 4.
If I add 1, 2 or 3 to OID (e.g. 1.3.6.1.2.1.43.11.1.1.8.0.3) it returns value.
If I add 4 (1.3.6.1.2.1.43.11.1.1.8.0.4), nothing is returned.
Similar issue when OID has only one child. If query for parent, I get result. If I query for exact OID, no result.
Looks like some indexing issue in snmpwalk.
In one case xyz.1 was listed wehn queried xyz, when queried xyz.1 nothing returned, but xyz.0 returned value which was on list for xyz.1
I couldn't find any resource on the Internet about this issue. HP specific bug in SNMP implementation?
I believe I'm having this problem too. It seems very random as to which sensors get loaded, but there are always some that don't. Rebooting sometimes helps increase the number but sensors are still missing.
I have 14 sensors: 2 UPSes with 7 sensors each.
The problem
When I add to many SNMP sensors various things fail to load or even say they can't connect to various internal IP addresses. Take most or all of the SNMP entries out and the problems go away.
Environment
On 0.104.3 with Ubuntu in a VMWare Workstation virtual environment
Problem-relevant
configuration.yaml
If both of thes yaml files are in here it errors. If I take one out it errors less. If I take both out all the errors/warning go away.
I do also have a couple other yaml files with SNMP calls to APC units but those weren't erroring.
Traceback/Error logs
In my logs there are the usual you are using a custom integration and a reference to an unfinished session but that's about it.
If I have one of the two above yaml files I get
If I activate both I get in the logs
After this my weather isn't showing and other various issues. If I shutdown and reload my UniFi controller then the logs show things being added. So seems like an initial load issue.
Additional information
This is something new I added since 0.104 so not sure if related or not as no previous state.