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

Issues with python2 on RH5 #23

Open
unforgiving opened this issue May 21, 2018 · 2 comments
Open

Issues with python2 on RH5 #23

unforgiving opened this issue May 21, 2018 · 2 comments

Comments

@unforgiving
Copy link

Hi,

I need some help here. I had to change "import json" to "import simplejson as json", RH5 doesn't have json installed by default, so I've installed simplejson. But now I'm getting a different error:


Traceback (most recent call last):
File "/usr/local/bin/lld-disks.py", line 12, in ?
data = [{"{#DEVICENAME}": device} for device in devices]
File "/usr/local/bin/lld-disks.py", line 10, in
devices = (device for device in os.listdir("/sys/block")
NameError: global name 'any' is not defined

Running on....

[root@srv094 tmp]# lsb_release -a
Description: Red Hat Enterprise Linux Server release 5.11 (Tikanga)

and...

[root@srv094 tmp]# python -V
Python 2.4.3

Someone can modify this python code to run on Python 2.4 ? I can't upgrade this server now, it is a production server.

@unforgiving unforgiving changed the title Issues if python2 on RH5 Issues with python2 on RH5 May 21, 2018
@grundic
Copy link
Owner

grundic commented May 28, 2018

Hi,
You can try using this version: #21

@unforgiving
Copy link
Author

Hi,
I've installed this version, but it seems the template is not working.
The data is not being collected. I've tested direct from server using zabbix_get combined with the parameter "custom.vfs.dev.read.ops and it works.

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

2 participants