MrCirca / zabbix-glusterfs

Monitoring GlusterFS Discovery storage with Zabbix 3.4
MIT License
16 stars 21 forks source link

gstatus returned non-zero exit status 16 #2

Closed ach-nke closed 6 years ago

ach-nke commented 6 years ago

A couple time per hour I'm receiving this error message:

Traceback (most recent call last):
  File "/opt/scripts/zabbix-glusterfs/gstatus_discovery.py", line 7, in <module>
    gstatus_output = subprocess.check_output('gstatus -a -o json ', shell=True).decode()
  File "/usr/lib64/python3.4/subprocess.py", line 617, in check_output
    raise CalledProcessError(retcode, process.args, output=output)
subprocess.CalledProcessError: Command 'gstatus -a -o json ' returned non-zero exit status 16

Anyone else experiencing it?

image

ach-nke commented 6 years ago

I had to reduce the frequency of volume health check from 30s to 2min. Apparently gstatus was overwhelming the system with simultaneous requests.