-
Notifications
You must be signed in to change notification settings - Fork 13
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
typo in device discover script #7
Comments
Do you happen to have the error? The u prefix on the string indicates it is a Unicode string so it shouldn’t be matching for u'OK' just the OK. |
Nope. The issue came across my desk at PaperCut from a customer and the error message wasn't in their ticket. Still, I have a feeling that Unicode identification for strings manifests differently between Python 2 and 3. The customer in question had Python 3.9.5. |
i will try to have a look at everything next year and do some tests with zabbix 6 or 7 |
I am pretty sure this was working the last time I tested it but sadly Art no longer works for PaperCut and I am also no longer working in the PaperCut channel. |
The py2 and py3 device discover scripts include a typo. Removing the ‘u’ overcomes the problem.
An error pointed out these lines when loading the Papercut Server Host Items Page.
zabbix-papercut/linux/py2/discovery-devicestatus.py
Line 33 in 86a2921
zabbix-papercut/linux/py3/discovery-devicestatus.py
Line 35 in 86a2921
The text was updated successfully, but these errors were encountered: