I'm looking for a way to detect if the machine was shutdown correctly.
Currently I'm using Active Zabbix Agents, so it doesn't matter what happened I'm always getting notifications, even if the shutdown was planned and intentional.
I'm thinking about adding a flag before shutdown (when pressing the power button) and reading while clearing the flag upon restart.
I'm getting alerts about all the following events:
- Proper shutdown/restart
- Startup
- Power loss
- Connectivity loss
- Zabbix Agent malfunction
I want to be notified only about the last 3 (I have no way to connect to the networking equipment).
Is there an existing solution for that?
Any other suggestions?
Currently I'm using Active Zabbix Agents, so it doesn't matter what happened I'm always getting notifications, even if the shutdown was planned and intentional.
I'm thinking about adding a flag before shutdown (when pressing the power button) and reading while clearing the flag upon restart.
I'm getting alerts about all the following events:
- Proper shutdown/restart
- Startup
- Power loss
- Connectivity loss
- Zabbix Agent malfunction
I want to be notified only about the last 3 (I have no way to connect to the networking equipment).
Is there an existing solution for that?
Any other suggestions?