Get statistics online/offline time?

Hi, is there a way to get statistics about online and/or offline time of every device?
For device XY (check through ping or TCP connection) I would like to set a start and end dates (1 january 2014 to 31 january 2014) and get the online/offline total time.
Also online/offline ratio in real time from beginning.

Or export data about interrputs (I don’t know the correct tab, I have Dude in italian)…
thanks.

You can use SNMP to monitor the uptime.

Uptime of… what?

No, I mean actually I check device online/offline through TCP probe or ping (not all devices support snmp)
I need statistics about this.

Probably would need to use an 3rd party monitoring program like Solarwinds, WhatsUP etc, even maybe the dude.