View historical data of service output
- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
View historical data of service output
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
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?
- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
Re: View historical data of service output
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
Might need to change them to volatile so every check gets logged:
https://assets.nagios.com/downloads/nag ... vices.html
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
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
Re: View historical data of service output
Thanks Bandit,BanditBBS wrote:Might need to change them to volatile so every check gets logged:
https://assets.nagios.com/downloads/nag ... vices.html
Let us know if this works out for you, snapon!
Former Nagios Employee.
me.
me.
- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
Re: View historical data of service output
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
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.
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.
Look in this folder for the archive logs.
Code: Select all
/usr/local/nagios/var/archives/Run this to see if there are any errors.
Code: Select all
tail -50 /var/log/mysqld.logBe sure to check out our Knowledgebase for helpful articles and solutions!
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: View historical data of service output
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.