How long was Zabbix offline?

zDaniels asked:

I am running a Zabbix server on Ubuntu 16.04 in a location with really bad grid power. Even with a UPS, the Zabbix server frequently goes down. Because the whole building looses power, I have now way of knowing how long the Zabbix server was down.

Management needs to know how long the server was down. How can I read the log files (with a script or single command) to determine the downtime for the Zabbix server?

My answer:


Zabbix monitors itself by default. If it’s up, it will have data; if not, it won’t. Look for the gap in the data.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.