wernerfred / check_synology

This plugin will check a lot of different values on your Synology DiskStation.
MIT License
17 stars 25 forks source link

SystemError: returned NULL without setting an error #29

Closed amotl closed 2 years ago

amotl commented 2 years ago

Hi again,

with the refactoring coming from #4/#19, we might need to adjust some bits on certain error conditions.

We spotted this outcome yesterday night and wanted to share it here in order to get back to it within one of the next development iterations.

While we haven't investigated into the details about the root cause of this condition yet, I imagine it could be related to network timeouts (see also #17).

Traceback (most recent call last):
  File "/opt/check_synology_easysnmp/check_synology.py", line 186, in <module>
    for item in snmpwalk('1.3.6.1.2.1.25.2.3.1.3'):
  File "/opt/check_synology_easysnmp/check_synology.py", line 61, in snmpwalk 
    res = session.walk(oid) 
  File "/opt/check_synology/.venv/lib/python3.9/site-packages/easysnmp/session.py", line 467, in walk 
    interface.walk(self, varlist)
SystemError: <built-in function walk> returned NULL without setting an error

With kind regards, Andreas.

image