# time in secs a service was red
report Down		= ${red}
#
# time in secs a service was purple
report N/A		= ${purple}
#
# time in secs a service was yellow or green ("non-critical")
report Up		= ${yellow} + ${green}
#
# time in secs a service was white ("in maintenance")
report Planned Outage	= ${white}
#
# time in secs a service was declared in service
report Service Hours	= ${Total} - ${offservice} - ${blue} - ${clear}

#
# percentage of time spent in Down state
report Down %		= percentage( ${Down}, ${Service Hours} )
#
# percentage of time spent in Up state
report Up %		= percentage( ${Up}, ${Service Hours} )
#
# Availability of a service: min% .. max%, where min% is the availability
# we surely got (the time the service was reported "Up") and max% is
# the availability we might have got (the total service time minus the
# time the service was reportedly "Down"). The difference between min%
# and max% usually equals the "N/A" time (the time spent in "purple"
# status).
report Availability	= ${Up %}." .. ".percentage( ${Service Hours} - ${Down}, ${Service Hours} )

#
# create statistics for 1 day, one week, one month and three months back
statistic oneday=1
statistic oneweek=7
statistic onemonth=30
statistic threemonth=90
