Apologies if this is a stupid question: I did a lot of googling and reading docs before coming here.
I have a script on a server that checks a log file to see if a task ran succesfully. If it did, the script returns 1, if not it returns 0. The item is showing as Not supported by Zabbix Agent
I have it set up as an item on Zabbix using with system.run[usr/bin/logcheck/logcheck.sh ] as the key and Zabbix Agent as the Type
The zabbix_agentd.conf file on the host has EnableRemoteCommands=1 and AllowRoot=1. The script is executable and works fine using ./logcheck.sh from the command line.
The script will not return an empty value.
I cannot figure out why this is happening. Any help would be greatly appreciated.
I am running zabbix 2.2.9 on Ubunutu 14.0.1
EDIT: I have found the solution, please see below.
I have a script on a server that checks a log file to see if a task ran succesfully. If it did, the script returns 1, if not it returns 0. The item is showing as Not supported by Zabbix Agent
I have it set up as an item on Zabbix using with system.run[usr/bin/logcheck/logcheck.sh ] as the key and Zabbix Agent as the Type
The zabbix_agentd.conf file on the host has EnableRemoteCommands=1 and AllowRoot=1. The script is executable and works fine using ./logcheck.sh from the command line.
The script will not return an empty value.
I cannot figure out why this is happening. Any help would be greatly appreciated.
I am running zabbix 2.2.9 on Ubunutu 14.0.1
EDIT: I have found the solution, please see below.
Comment