zabbix-borg
zabbix-borg copied to clipboard
Zabbix log: Timeout while executing a shell script.
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
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.
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.