Hi,
I'm running a 2 steps discovery:
1) SQL query runs on the server( where the agent is) and sends a json using zabbix sender to zabbix where a trapper catches it.
2) LLD uses the JSON values as parameter to run another script (userParameter is configured) with another query which should return the final value per discovered item.
the first query runs as expected and items are created but the second script fails due to "timeout while executing a shell script".
I tried to debug so i changed the second script to return only the LLD parameter which worked as well as just returning random value but every time i try the script with the query it fails.
The query itself was tested and takes less than a second to run so it's not a duration issue.
Can it be an issue of item interval time vs actual running time on the server?
if the server runs the first query will the trapper catch it right away and run the second one or will it do it only when it reaches the interval time?
maybe that causes a delay which results in timeout.
Hope i can get some ideas here as i couldn't find any issues.
Thanks
I'm running a 2 steps discovery:
1) SQL query runs on the server( where the agent is) and sends a json using zabbix sender to zabbix where a trapper catches it.
2) LLD uses the JSON values as parameter to run another script (userParameter is configured) with another query which should return the final value per discovered item.
the first query runs as expected and items are created but the second script fails due to "timeout while executing a shell script".
I tried to debug so i changed the second script to return only the LLD parameter which worked as well as just returning random value but every time i try the script with the query it fails.
The query itself was tested and takes less than a second to run so it's not a duration issue.
Can it be an issue of item interval time vs actual running time on the server?
if the server runs the first query will the trapper catch it right away and run the second one or will it do it only when it reaches the interval time?
maybe that causes a delay which results in timeout.
Hope i can get some ideas here as i couldn't find any issues.
Thanks
Comment