zabbix-disk-performance icon indicating copy to clipboard operation
zabbix-disk-performance copied to clipboard

Error during discovery on Ubuntu 20.04

Open emike09 opened this issue 4 years ago • 2 comments

I've got this application running on a couple dozen Ubuntu 14-18 servers, but the two I've just spun up are on Ubuntu 20.04 and I'm getting the following error during discovery:

Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'sh: 1: /usr/local/bin/lld-disks.py: not found'

Has anybody else ran into this issue? Running Zabbix 5.0.1

emike09 avatar Aug 03 '20 21:08 emike09

I was able to resolve this by manually installing python 2.7 and python-pip for 2.7.

emike09 avatar Sep 21 '20 21:09 emike09

i resolved this on my ubuntu 20.04, by adding "python3", in front of "/usr/local/bin/lld-disks.py". so the complete first line of the userparam would be:

"UserParameter=custom.vfs.discover_disks,python3 /usr/local/bin/lld-disks.py"

hamsjelv avatar Jan 22 '22 21:01 hamsjelv