Yep, it is sort of a number. Everyday, I will check the startup_time of the database, if it is = 24 hours = 1440, then it is up for the whole day, otherwise it x/1440 up only. Then at the end of the month, I will painfully use Excel to graph it.
I am wondering if there is anyway I can use a script to make some kind of html graph instead or that is not possible ??? ... I guess I am trying to work out how Nagios/Cacti does it and do a similar thing.
Can I suggest using gnuplot. Have a look at this thread: GnuPlot in Bash where I discuss using gunplot to plot filesystem freespace - very similar concept to your requirement.