Reporting

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
neodg
Posts: 31
Joined: Wed Jul 10, 2013 11:56 am

Re: Reporting

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Reporting

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Reporting

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Reporting

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Reporting

Post by MSPk »

There isn't any chnage the in the perdata log since 11th July.
perfdata_2607.zip
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Reporting

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Reporting

Post by MSPk »

I have tried running this command multiple times and the output is a numeric and it ranges between 32-90
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Reporting

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Reporting

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Reporting

Post 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 :)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked