zabbix-borg icon indicating copy to clipboard operation
zabbix-borg copied to clipboard

Zabbix log: Timeout while executing a shell script.

Open ssydorov opened this issue 4 years ago • 2 comments

Hi! Is it possible to find a workaround to avoid timeout? I have one big backup (near 6 TB), and an external script working with it for more than 2 minutes. But the maximum timeout in zabbix config is 30 secs. thanks

ssydorov avatar Apr 10 '20 12:04 ssydorov

I would use Zabbix maintenance option for this and put the Zabbix server in maintenance mode until the backup has been completed. If the script is used to generate statistic files, another option would be first generate the temporary file and then use ssh to rename the file once the verification has been completed.

theranger avatar May 07 '21 17:05 theranger

I see @ssydorov´s point. Running borg check -v takes over a half hour for my multi-host backups:

Analyzing archive bxxxxxxx6-2022-01-16T00:02:01 (70/73)
Analyzing archive bxxxxxxx1-2022-01-16T01:27:02 (71/73)
Analyzing archive bxxxxxxx3-2022-01-16T03:07:01 (72/73)
Analyzing archive bxxxxxxx4-2022-01-16T04:03:02 (73/73)
Archive consistency check complete, no problems found.

real    37m54.748s
user    1m54.269s
sys     0m2.547s
root@bxxxxxxx6:~# 

I´ll try your suggestions.

fbicknel avatar Jan 17 '22 14:01 fbicknel