Re: Reporting
Posted: Wed Jul 24, 2013 6:12 am
46abrist wrote:perfdata may be backed up. What is the output of:Code: Select all
ls /usr/local/nagios/var/spool/checkresults/ | wc -l
Support for Nagios products and services
https://support.nagios.com/forum/
46abrist wrote:perfdata may be backed up. What is the output of:Code: Select all
ls /usr/local/nagios/var/spool/checkresults/ | wc -l
Code: Select all
ls /usr/local/nagios/var/spool/xidpe | wc -l
ls /usr/local/nagios/var/spool/perfdata | wc -lCode: Select all
ls /usr/local/nagios/var/spool/xidpe | wc -lCode: Select all
ls /usr/local/nagios/var/spool/perfdata | wc -lCode: Select all
tail -50 /usr/local/nagios/var/perfdata.logCode: Select all
ls /usr/local/nagios/var/spool/checkresults/ | wc -lBox293 wrote:Hi MSPk,
While this will not help you right now, I am currently developing a component for Nagios XI that will analyse the data in the rrd files and display them in a table format. I had not thought about being able to export this data to csv/excel format however this is a great idea so I'll look at incorporating the idea into the componment. This will be called the "Performance Data Tool" and analysing rrd files is just one part of the functionality it will provide.
I am aiming to release it at the Nagios World Conference 2013 as part of the presentation I will be giving titled "Performance Data and Graphs".
Enough talking about me. Here is an example of how to pull data from the rrd files.
On the CLI of the Nagios XI host:
This is the rrd file for the localhost's (Nagios XI host) host object. There are two datasources in this RRD file, Round Trip Time and Packet Loss.Code: Select all
rrdtool fetch /usr/local/nagios/share/perfdata/localhost/_HOST_.rrd MAX -r 900 -s -1h gives the output: 1 2 1372197300: 1.6577777778e-02 0.0000000000e+00 1372197600: 1.6960000000e-02 0.0000000000e+00 1372197900: 1.6960000000e-02 0.0000000000e+00 1372198200: 2.0400000000e-02 0.0000000000e+00 1372198500: 2.2020000000e-02 0.0000000000e+00 1372198800: 2.6422222222e-02 0.0000000000e+00 1372199100: 2.6422222222e-02 0.0000000000e+00 1372199400: 1.9300000000e-02 0.0000000000e+00 1372199700: 1.8360000000e-02 0.0000000000e+00 1372200000: 1.8786666667e-02 0.0000000000e+00 1372200300: 1.8786666667e-02 0.0000000000e+00 1372200600: nan nan 1372200900: nan nan
Information on the rrdtool.
This should be enough information to get you started.