You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I execute following from Zabbix server, I see following error:
$ zabbix_get -s 10.165.254.254 -k zfs
Traceback (most recent call last):
File "/etc/zabbix/scripts/zfs.py", line 171, in <module>
scrub, vdev_errors = pool_status()
File "/etc/zabbix/scripts/zfs.py", line 70, in pool_status
], split=r'\s+')
File "/etc/zabbix/scripts/zfs.py", line 17, in run
stderr=DEVNULL
File "/usr/lib64/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/usr/lib64/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/sbin/zpool', 'status', '-Pp']' returned non-zero exit status 1.
But running zfs.py under zabbix user on monitored server it runs OK:
I suspect it might have to do with SELinux, somehow. /etc/zabbix is the worst place to put scripts in, the default place would be /usr/lib/zabbix/externalscripts.
No idea. Well, you can move the script wherever you like and adjust the .conf file. And try disabling the SELinux (setenforce 0 or how it's done) and see if that helps.
When I execute following from Zabbix server, I see following error:
But running zfs.py under zabbix user on monitored server it runs OK:
Output seems to be OK.
Do you have any indea what can be the issue? Running zfs-2.0.7 on RHEL8.
The text was updated successfully, but these errors were encountered: