I have configured on my server this zabbix-agent parameter:
where:
and
From another script I write this value, where 1 is error the file is not downloaded, and 0 is OK the file is downloaded
On my Zabbix server, I created this item:
and if I click on test I receive the correct result (I tried to change manually the value in the file /usr/share/monitoring/FILES/download-status and read correctly the values)
Now I'm trying to create trigger alert, and I set in this way:
but when the value in /usr/share/monitoring/FILES/download-status is 1 from this trigger I receive always 0
Where is I wrong?
Code:
cat /etc/zabbix/zabbix_agentd.conf.d/userparameter.conf UserParameter=verify-download.failures, /usr/share/monitoring/bin/verify.sh /usr/share/monitoring/FILES/download-status
Code:
#!/bin/sh # run from Zabbix agent, used to verify output status echo $(cat "$1")
Code:
cat /usr/share/monitoring/FILES/download-status 1
On my Zabbix server, I created this item:
Code:
Name: download verify Type: Zabbix agent Key: verify-download.failures
Now I'm trying to create trigger alert, and I set in this way:
Code:
Name: download alert
Severity: High
Expression: {server01.mydomain.com:verify-download.failures.last()} = 0
Where is I wrong?
Comment