Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNMP Discovery plug-in is failing #512

Closed
snerijus opened this issue Dec 1, 2023 · 2 comments
Closed

SNMP Discovery plug-in is failing #512

snerijus opened this issue Dec 1, 2023 · 2 comments
Labels
bug 🐛 Something isn't working next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed. Waiting for reply⏳ Waiting for the original poster to respond, or discussion in progress.

Comments

@snerijus
Copy link

snerijus commented Dec 1, 2023

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
@jokob-sk
Copy link
Owner

jokob-sk commented Dec 2, 2023

Hey there,

I think I fixed this in the pi.alert_dev image already - can you give it a try?

j

@jokob-sk jokob-sk added bug 🐛 Something isn't working Waiting for reply⏳ Waiting for the original poster to respond, or discussion in progress. labels Dec 2, 2023
jokob-sk added a commit that referenced this issue Dec 7, 2023
@jokob-sk jokob-sk added the next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed. label Dec 7, 2023
@jokob-sk
Copy link
Owner

closing as released 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed. Waiting for reply⏳ Waiting for the original poster to respond, or discussion in progress.
Projects
None yet
Development

No branches or pull requests

2 participants