Skip to content

Zabbix sender script

On hosts installed by my ansible repository.

Send file size

SRC_FILE=/var/cache/data1

# In updating script:

# Collect info to zabbix
if [ -f /etc/zabbix/scripts/zabbix_sender.sh ]; then
  source /etc/zabbix/scripts/zabbix_sender.sh
  local _v=0
  if [ -s ${SRC_FILE} ]; then _v=$(stat --format="%s" ${SRC_FILE} 2>/dev/null); fi
  send2zabbix data_file_size $_v &
fi