Check_nt UPTIME report or group

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
RayH
Posts: 5
Joined: Fri Jun 12, 2015 9:54 am

Check_nt UPTIME report or group

Post by RayH »

I'm looking for a way that I can either create a report or possibly a service group that will show just the check_nt UPTIME service check results for all of the servers I have running. I can see the results now under the individual server but I have around 60 servers and would like to view them all at once.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Check_nt UPTIME report or group

Post by ssax »

You could use the JSON query tool:

Code: Select all

http://YOURNAGIOSSERVER/nagios/jsonquery.html
Other than that, you are correct, creating a servicegroup and only adding the UPTIME services, then viewing that servicegroup in the web interface would likely be the only way to get what you're looking for.
RayH
Posts: 5
Joined: Fri Jun 12, 2015 9:54 am

Re: Check_nt UPTIME report or group

Post by RayH »

The json query will not show what I'm looking for. I created a service group for uptime succesfully but not displaying what I would like? I would like to see theuptime in day, hours minutes like the status detail page shows below:
Uptime
OK 05-29-2019 10:16:29 0d 23h 44m 6s 1/3 System Uptime - 27 day(s) 3 hour(s) 46 minute(s)

I attached to screen shots one showing what the service group is displaying and the other is the status detail showing the "days, hours, minutes"
Attachments
nagios service group2.PNG
nagios service group2.PNG (6.22 KiB) Viewed 1657 times
nagios service group.PNG
nagios service group.PNG (6.41 KiB) Viewed 1657 times
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_nt UPTIME report or group

Post by scottwilkerson »

If you click on "Uptime services (uptime)" right under "Service Overview For All Service Groups" in your second image, you will see what you desire
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
RayH
Posts: 5
Joined: Fri Jun 12, 2015 9:54 am

Re: Check_nt UPTIME report or group

Post by RayH »

That's what I was looking for.
Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_nt UPTIME report or group

Post by scottwilkerson »

RayH wrote:That's what I was looking for.
Thanks
No problem!

Locking Topic
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked