system uptime report

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

system uptime report

Post by JohnFLi »

is it possible to get a simple list of hosts and the system uptime of that host?
Everybody is somebody else’s weirdo
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: system uptime report

Post 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.
Former Nagios employee
https://www.mcapra.com/
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: system uptime report

Post 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
Everybody is somebody else’s weirdo
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: system uptime report

Post 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.
Everybody is somebody else’s weirdo
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: system uptime report

Post by mcapra »

Glad you were able to find a solution! Is it alright if I lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: system uptime report

Post by JohnFLi »

yes....by all means, lock away
Everybody is somebody else’s weirdo
Locked