[ Thanks to asanabria6910 for this link.
]
“I hope you Nagios users who have to send reports to
your executives find this script useful but check back soon as I’m
going to be adding more to it or even changing it into its own
class. As of right now it consist of three functions. The only draw
back of the script is that it takes a while to parse the log file
since it has to find all the uniq hosts in nagios.log and find only
the hard down and hard up events compared to the uniq
hosts.”