Hello people,
I'm quiet new on zabbix, and I'm still leraning a lot with the documentation.
I recently migrate from Zabbix server 5.4 to 6.0 and agent for hosts are 5.4 or 6.0
Still there is something I'm not sure to understand well with script that can be execute on remote host which have agent.
My goal is to have 2 commands for update and upgrade my linux hosts.
I enable the remote command on one of my host and create a manual script for updating with "sudo apt update && apt list --upgradable"
That works well
But when I try with a manual script for upgrade with "sudo apt upgrade -y", it broke my package and I have the below error when I connect SSH to the host
I don't figure out why and how to solve it.
Maybe I should not upgrade my hosts like that ? so what would be the best practice ?
Thank you for you help !
I'm quiet new on zabbix, and I'm still leraning a lot with the documentation.
I recently migrate from Zabbix server 5.4 to 6.0 and agent for hosts are 5.4 or 6.0
Still there is something I'm not sure to understand well with script that can be execute on remote host which have agent.
My goal is to have 2 commands for update and upgrade my linux hosts.
I enable the remote command on one of my host and create a manual script for updating with "sudo apt update && apt list --upgradable"
That works well
But when I try with a manual script for upgrade with "sudo apt upgrade -y", it broke my package and I have the below error when I connect SSH to the host
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Maybe I should not upgrade my hosts like that ? so what would be the best practice ?
Thank you for you help !
Comment