I have the following UserParameter within a ZabbixAgent to check the free ftp-backupspace:
If the requested ftp-server is available everything works fine.
If not, the zabbix-agentd is marked as unavailable and no other parameter is pushed to zabbix-server.
Why didn't the UserParameter-Function has no timeout?
Code:
UserParameter=ftpbackup_freespace,echo du . | lftp -u user,pass host | awk -v LIMIT="100" '$1~/[0-9]+/ {QUOTA=LIMIT*1024*1024; print (QUOTA-$1)/1024/1024}' | tail -1
If not, the zabbix-agentd is marked as unavailable and no other parameter is pushed to zabbix-server.
Why didn't the UserParameter-Function has no timeout?