Page 1 of 1

system uptime report

Posted: Wed Jun 01, 2016 4:27 pm
by JohnFLi
is it possible to get a simple list of hosts and the system uptime of that host?

Re: system uptime report

Posted: Wed Jun 01, 2016 4:50 pm
by mcapra
From the XI gui, this can be viewed in the "Host Detail" page under the "Details" section of the left-hand menu. You could also look under the "Reports" section from the top menu followed by "Availability" from the left-hand menu for some pretty graphs!

If you were wanting to get the uptime for each host programatically, this json query is helpful (where xxx.xxx.xxx.xxx is your Nagios XI installation):
http://xxx.xxx.xxx.xxx/nagios/cgi-bin/s ... tails=true

With this JSON object, the uptime (in miliseconds) can be calculated with (last_time_up - last_time_down) for a given host.

Re: system uptime report

Posted: Wed Jun 01, 2016 5:00 pm
by JohnFLi
reports/availability doesnt have anything about 'uptime'

The second option does dump out a lot of information might need to see how much effort it will take to make it useable.

thank you for your ideas

Re: system uptime report

Posted: Wed Jun 01, 2016 5:14 pm
by JohnFLi
I figured how to do it.

From the XI home page, I clicked on 'Service detail' then in the search box, i entered "Uptime"

Then I used the mouse to select the entire table, and pasted it into Excel.

worked great for what I was wanting.

Re: system uptime report

Posted: Thu Jun 02, 2016 8:55 am
by mcapra
Glad you were able to find a solution! Is it alright if I lock this thread and mark the issue as resolved?

Re: system uptime report

Posted: Thu Jun 02, 2016 10:27 am
by JohnFLi
yes....by all means, lock away