Skip to content

SNMP Discovery plug-in is failing #512

@snerijus

Description

@snerijus

Describe the issue

SNMP Discovery plug-in is failing, because front/plugins/snmp_discovery/script.py throws an error:

Traceback (most recent call last):
  File "/home/pi/pialert/front/plugins/snmp_discovery/./script.py", line 96, in <module>
    main()
  File "/home/pi/pialert/front/plugins/snmp_discovery/./script.py", line 80, in main
    primaryId   = handleEmpty(macAddress),
                  ^^^^^^^^^^^
NameError: name 'handleEmpty' is not defined

The script is missing an import of the handleEmpty method at line 16:

from plugin_helper import Plugin_Object, Plugin_Objects, decodeBase64

should be:

from plugin_helper import Plugin_Object, Plugin_Objects, decodeBase64, handleEmpty

Metadata

Metadata

Assignees

No one assigned

    Labels

    Waiting for reply⏳Waiting for the original poster to respond, or discussion in progress.bug 🐛Something isn't workingnext release/in dev image 🚀This is coming in the next release or was already released if the issue is Closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions