View historical data of service output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

View historical data of service output

Post by snapon_admin »

Is there anyway to view a historical report of the service output of a specific check? The reason I ask is because we have a situation where we're monitoring the amount of CPU cores allocated to a specific Solaris zone and our vendor is requiring that we provide data showing that we are not exceeding a set amount of CPU cores (3 in this case). We have a script that checks how many cores are allocated to the zone that runs every half hour and displays the results in Nagios via the service output of the check. What the vendor would like is for the check to run once every half hour and to see a report of each service output for that check, i.e. a list of service outputs from the check for a set time frame. Is there any easy way of going about getting this data for them?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: View historical data of service output

Post by ssax »

If it shows in the service output you should be able to run the state history report, will that not work for you? How long does it need to go back?
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: View historical data of service output

Post by snapon_admin »

This check doesn't change states, it's an informational check that is always green it just collects information for us.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: View historical data of service output

Post by BanditBBS »

Might need to change them to volatile so every check gets logged:
https://assets.nagios.com/downloads/nag ... vices.html
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: View historical data of service output

Post by hsmith »

BanditBBS wrote:Might need to change them to volatile so every check gets logged:
https://assets.nagios.com/downloads/nag ... vices.html
Thanks Bandit,

Let us know if this works out for you, snapon!
Former Nagios Employee.
me.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: View historical data of service output

Post by snapon_admin »

Hmm, changed to volatile and still not showing anything in the state history report. Is there somewhere else I can see where the output is logged?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: View historical data of service output

Post by tgriep »

Can you check the Nagios log file archives to see if the output of that service check are being logged?
Look in this folder for the archive logs.

Code: Select all

/usr/local/nagios/var/archives/
Also, they could be logged in the MYSQL database, can you check the mysqld.log file for any errors?
Run this to see if there are any errors.

Code: Select all

tail -50 /var/log/mysqld.log
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: View historical data of service output

Post by Box293 »

Is the plugin returning performance data you could report on?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked