I am trying to find the best way to find the overall downtime of my internet connection over a month. I have an SLA with my ISP and they are not meeting it and I want to be able to hand them over the report. I have a probe running that writes a log file when it can't connect and when it can connect again. So the data looks like this hypothetically:
UP - T0
DOWN - T1
UP - T3
so on
I am trying to figure out a way, without writing too much code, to have a script to run over this data and figure the overall downtime by calculating the time it took to go from the DOWN state back to the UP state. If there is not a simple way to do this I think I can write something to do so. Does anyone know of a module that performs this?