if i use remote commands in an action can i get a return code that show us the command did the right thing? or by solving the trigger i will realize that command was executed successfully?
i mean for example:
i have an item that check that a specific service is running
i have a trigger on this item that will be activated when service is not running
for this trigger i have this action that run a remote command like: "service ntpd start"
zabbix agent have the authority to run this command and i know it will be run i on machine but what if this command could not start service because of an OS problem?
how can i use a return code that send me a alert or something that i realize there is something wrong that even by running command the problem is still there?
or this remote command can simply write something in a file on machine, if partitions went 'read only' how am i be aware of this?
i mean for example:
i have an item that check that a specific service is running
i have a trigger on this item that will be activated when service is not running
for this trigger i have this action that run a remote command like: "service ntpd start"
zabbix agent have the authority to run this command and i know it will be run i on machine but what if this command could not start service because of an OS problem?
how can i use a return code that send me a alert or something that i realize there is something wrong that even by running command the problem is still there?
or this remote command can simply write something in a file on machine, if partitions went 'read only' how am i be aware of this?