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

Error in line 245 and 56 while creating discovery rules #13

Open
gsurendran26 opened this issue Apr 30, 2024 · 2 comments
Open

Error in line 245 and 56 while creating discovery rules #13

gsurendran26 opened this issue Apr 30, 2024 · 2 comments

Comments

@gsurendran26
Copy link

gsurendran26 commented Apr 30, 2024

Hi All,

I'm facing the following error while creating/testing for the windows hostname, as I'm using the Ubuntu 22.04.4 LTS platform with Python 3.10.12 version, please assist with this and let me know for any further details.

Traceback (most recent call last):
File "/usr/lib/zabbix/externalscripts/zbxwmi", line 245, in
main()
File "/usr/lib/zabbix/externalscripts/zbxwmi", line 56, in main
fieldlist = options.fields.split(',')
AttributeError: 'NoneType' object has no attribute 'split'

Error

Thanks,
Surendran

@electricbs
Copy link

electricbs commented May 21, 2024

same issue. did you ever resolve?

@saad8281
Copy link

Please keep following the error mentioned by the Zabbix, and provide the key of the discovery rule according to python script query.

AttributeError: 'None Type' means that options.fields.split query in the scipt is getting the value 'None Type' which is not allowed in python.

so mention "-fields","VolumeName" in the key(zabbix front end), it will take fields =VolumerName instead of 'None Type'

Note: you can query other available fields from windows server by using command e.g. Get-WmiObject -Class Win32_LogicalDisk | get-member.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants