Question for everybody as I cannot seem to locate the answer in the documentation.
I have an active agent check of this:
UserParameter=pgsql.replication_lag_bytes[*],/data/monitoring/postgres-monitor.sh -c get_replication_lag_bytes -a "$1"
For this script, if it cannot find the host $1 it seems like it should be able to return a nodata response to the zabbix server so that a trigger can eventually fire after 5 minutes. I cannot, however, figure out how to get the agent to return a nodata response. If the script returns a newline it disables the item and the trigger becomes disabled with it (and thus never fires). Is there a way to correctly get the agent to return a response to the server indicating the script ran, exited 0, but returned no data?
I have an active agent check of this:
UserParameter=pgsql.replication_lag_bytes[*],/data/monitoring/postgres-monitor.sh -c get_replication_lag_bytes -a "$1"
For this script, if it cannot find the host $1 it seems like it should be able to return a nodata response to the zabbix server so that a trigger can eventually fire after 5 minutes. I cannot, however, figure out how to get the agent to return a nodata response. If the script returns a newline it disables the item and the trigger becomes disabled with it (and thus never fires). Is there a way to correctly get the agent to return a response to the server indicating the script ran, exited 0, but returned no data?