Page 1 of 1

View historical data of service output

Posted: Thu Aug 27, 2015 4:00 pm
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?

Re: View historical data of service output

Posted: Thu Aug 27, 2015 4:56 pm
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?

Re: View historical data of service output

Posted: Fri Aug 28, 2015 2:56 pm
by snapon_admin
This check doesn't change states, it's an informational check that is always green it just collects information for us.

Re: View historical data of service output

Posted: Fri Aug 28, 2015 3:11 pm
by BanditBBS
Might need to change them to volatile so every check gets logged:
https://assets.nagios.com/downloads/nag ... vices.html

Re: View historical data of service output

Posted: Mon Aug 31, 2015 9:01 am
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!

Re: View historical data of service output

Posted: Thu Sep 10, 2015 11:23 am
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?

Re: View historical data of service output

Posted: Thu Sep 10, 2015 2:38 pm
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

Re: View historical data of service output

Posted: Thu Sep 10, 2015 8:03 pm
by Box293
Is the plugin returning performance data you could report on?