The first batch finishes and the script reports success. On the monitoring dashboard, two servers have stopped sending fresh data. Should the next batch start?
I upgraded Zabbix Agent 2 across 88 Ubuntu servers. A monitoring upgrade is a useful example of why an automated rollout needs a separate check for whether the system still works. The scenario above is illustrative.
Check what operators depend on
A running agent is a useful first check. Then confirm that Zabbix is receiving fresh data from the host. Choose a representative item and check that its latest sample is newer than the upgrade. Give the item enough time for its normal collection interval.
Tip: Define the expected result before the change. For example, require a new CPU metric within two normal collection intervals, with extra time if your environment routinely buffers samples.
Give each batch three possible outcomes

Continue when every host passes. Save the results before starting the next batch.
Pause when evidence is incomplete. Show the operator which host and check need attention, and keep the next batch untouched.
Stop when a check confirms a failure, such as an agent that cannot start. Follow the documented recovery procedure for the affected hosts.
Tip: In a lab, force one check to fail and confirm that the automation leaves the next batch untouched.
Make it easy to resume
After each batch, record which hosts passed, which changed and still need verification, and which were untouched. Before resuming, recheck the affected hosts so the workflow can pick up safely even if someone intervened manually.
Try it: Pick one automated change. Write down what proves it worked, what should pause it, and what the next operator needs to know before resuming.
For the upgrade procedure, see the Zabbix Agent 2 rollout checklist. For the wider workflow, see Practical Automation.