Page 1 of 1

How to know the Uptime Computation

Posted: Mon Feb 24, 2020 9:00 am
by jessamineenriquez
Hello,

We would like to know how's the computation in Availability Report derived.
What's the computation on the percentage of a host/service Up, Down, Unreacheable.

Let say the period is a month (Jan2020) to a specific host?
See sample host and its services attached.

Thanks!

Re: How to know the Uptime Computation

Posted: Mon Feb 24, 2020 9:31 am
by scottwilkerson
Welcome to the forum!

The short answer is Nagios looks at the nagios.log and the archived log files and parses all of the lines to determine the amount of time the host/services spent in each state.

The long answer resides in this 5369 line CGI file from Nagios COre which is used for the calculations

https://github.com/NagiosEnterprises/na ... gi/avail.c