Page 5 of 6

Re: Reporting

Posted: Wed Jul 24, 2013 6:12 am
by neodg
abrist wrote:perfdata may be backed up. What is the output of:

Code: Select all

ls /usr/local/nagios/var/spool/checkresults/ | wc -l
46

Re: Reporting

Posted: Wed Jul 24, 2013 3:53 pm
by lmiltchev
What is the output of the following commands?

Code: Select all

ls /usr/local/nagios/var/spool/xidpe | wc -l
ls /usr/local/nagios/var/spool/perfdata | wc -l

Re: Reporting

Posted: Wed Jul 24, 2013 11:29 pm
by MSPk

Code: Select all

ls /usr/local/nagios/var/spool/xidpe | wc -l
0

Code: Select all

ls /usr/local/nagios/var/spool/perfdata | wc -l
2

Re: Reporting

Posted: Thu Jul 25, 2013 11:38 am
by abrist
Well, nagios is reaping the checks, I assume the graphs are still blank? Maybe something is happening on the perfdata side:

Code: Select all

tail -50 /usr/local/nagios/var/perfdata.log

Re: Reporting

Posted: Fri Jul 26, 2013 11:16 am
by MSPk
There isn't any chnage the in the perdata log since 11th July.
perfdata_2607.zip

Re: Reporting

Posted: Fri Jul 26, 2013 1:06 pm
by abrist
hmmm. Maybe they are not even getting queued for perfdata processing. Try:

Code: Select all

ls /usr/local/nagios/var/spool/checkresults/ | wc -l

Re: Reporting

Posted: Fri Jul 26, 2013 1:16 pm
by MSPk
I have tried running this command multiple times and the output is a numeric and it ranges between 32-90

Re: Reporting

Posted: Mon Jul 29, 2013 10:41 am
by abrist
Well, it looks like performance data is getting reaped, prepared, and written correctly. Have you tried to upgrade pnp4nagios (do not do this) or anything else related to performance data graphing?
Do you have a support contract? If so, send an email to [email protected] so we can setup a remote session.

Re: Reporting

Posted: Wed Nov 06, 2013 7:13 am
by MSPk
Box293 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:

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
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.

Information on the rrdtool.

This should be enough information to get you started.


Do we have this functionality available in the new version of nagios?

Re: Reporting

Posted: Wed Nov 06, 2013 12:08 pm
by abrist
I don't know if we currently have plans to roll it into XI, though it will most definitely be available on the exchange as an XI component. How is the component coming Box? (sounds like you have some patient fans :)