Hi all,
in my environment I have a Zabbix server that "asks" a Zabbix proxy to execute some external scripts to gather some information that could not be retrieved in other way.
Everything is fine but there are situation where the script hangs and so the timeut mechanism "kill" it and I don't get data back to server.
Also this is expected. It could happens and I'm aware of it.
In some other particular situation the script does not complete as the service I'm checking for, for some reason does not answer for very long time ( days at least ).
Obviously ( and as expected ) in both case I get, from the zabbix interface, an exclamation mark and a message stating "Timeout while executing a shell script."
I would like to implement a trigger that, if I don't get data from the script after, say, a couple of hours, inform me of the situation.
I've tried with nodata() but is not behaving as I thought it would.
this is one of my test:
nodata( /host/extcheck.sh,1200)=0
I thought it would have mean:" If I don't get data for the last 1200 seconds the trigger fires" but is not ( and even changing from 0 to 1 the check does not works )
How could I implement a trigger that fires if data is not received from an externalscript for a period of time ?
Thanks in advance
Pigi_102
in my environment I have a Zabbix server that "asks" a Zabbix proxy to execute some external scripts to gather some information that could not be retrieved in other way.
Everything is fine but there are situation where the script hangs and so the timeut mechanism "kill" it and I don't get data back to server.
Also this is expected. It could happens and I'm aware of it.
In some other particular situation the script does not complete as the service I'm checking for, for some reason does not answer for very long time ( days at least ).
Obviously ( and as expected ) in both case I get, from the zabbix interface, an exclamation mark and a message stating "Timeout while executing a shell script."
I would like to implement a trigger that, if I don't get data from the script after, say, a couple of hours, inform me of the situation.
I've tried with nodata() but is not behaving as I thought it would.
this is one of my test:
nodata( /host/extcheck.sh,1200)=0
I thought it would have mean:" If I don't get data for the last 1200 seconds the trigger fires" but is not ( and even changing from 0 to 1 the check does not works )
How could I implement a trigger that fires if data is not received from an externalscript for a period of time ?
Thanks in advance
Pigi_102
...
Comment