bashclub / checkmk-opnsense-agent

65 stars 14 forks source link

OPNsense, Failed to execute python plugins: ipsec #34

Open FingerlessGlov3s opened 1 year ago

FingerlessGlov3s commented 1 year ago

Hi,

I used to have IPsec tunnel configured but it's been deleted both P1/P2 and IPsec disabled. But the plugin is still trying to execute it's checks for IPsec. Traceback below

Traceback (most recent call last):
  File "/usr/local/etc/rc.syshook.d/start/99-checkmk_agent", line 231, in do_checks
    _lines += getattr(self,_check)()
  File "/usr/local/etc/rc.syshook.d/start/99-checkmk_agent", line 918, in checklocal_ipsec
    _ikeid = _phase1.get("ikeid")
AttributeError: 'NoneType' object has no attribute 'get'
tzockt commented 3 months ago

I have a similar problem:

Traceback (most recent call last):
  File "/usr/local/etc/rc.syshook.d/start/99-checkmk_agent", line 239, in do_checks
    _lines += getattr(self,_check)()
  File "/usr/local/etc/rc.syshook.d/start/99-checkmk_agent", line 945, in checklocal_ipsec
    if len(_name.strip()) < 1:
AttributeError: 'NoneType' object has no attribute 'strip'

@thorstenspille Any ideas?

remcomldr commented 2 months ago

I also have the same issue: AttributeError: 'NoneType' object has no attribute 'strip'