Hi,
I have a shell script contains (lsof) command defined with userparameter which usually take few minutes to complete on large servers.
Currently I use at to schedule the script in background and read from an output file.
I tried to use normal methods like & and nohup but it doesn't work when executed as zabbix item and times out despite it works when executed from bash.
Could anyone help me if there's a way to run it in background instead of using another tool like at
I have a shell script contains (lsof) command defined with userparameter which usually take few minutes to complete on large servers.
Currently I use at to schedule the script in background and read from an output file.
I tried to use normal methods like & and nohup but it doesn't work when executed as zabbix item and times out despite it works when executed from bash.
Could anyone help me if there's a way to run it in background instead of using another tool like at
I've made a basic python script that creates fork and exits - work as expected when in shell but when I use it through "zabbix_agent2 -t" it's trying to wait it's child and finally KILLS it upon timeout (why?)... Maybe you have the idea how to achieve behavior that you'd mentioned above? Thanks.
Comment