performance data not kept for some services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
lyle
Posts: 158
Joined: Sun Nov 21, 2010 3:05 am

Re: performance data not kept for some services

Post by lyle »

One failing Service definition has:

Code: Select all

  check_command         check_nrpe_mem
That calls the command definition:

Code: Select all

define command {
  command_name  check_nrpe_mem
  command_line    $USER1$/check_nrpe -H $HOSTNAME$ -c CheckMem -a MaxWarn=80% MaxCrit=90% ShowAll=long type=physical
}
All of the work at the client end is done by nsclient++.exe running as a service (and I guess the CheckSystem.dll) not by any external scripts.

The only alternative to ShowAll=long is ShowAll=None, which doesn't return any performance data.

If I've mis-understood what you're asking for, please let me know, and as always, thanks for any advice.

...Lyle
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: performance data not kept for some services

Post by rdedon »

Hello Lyle,
you have provided us with enough information to do some research and testing and I will post results here as soon as possible.

I should also note that this may take some time as what we are seeing is it is set up correctly and looks to be related to pnp.

Thank you.
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
lyle
Posts: 158
Joined: Sun Nov 21, 2010 3:05 am

Re: performance data not kept for some services

Post by lyle »

I posted to the NSClient++ and the PNP4Nagios lists.

Of interest is this:
https://sourceforge.net/mailarchive/for ... gios-users
and:
http://nsclient.org/nscp/ticket/364

Thanks...Lyle
lyle
Posts: 158
Joined: Sun Nov 21, 2010 3:05 am

Re: performance data not kept for some services

Post by lyle »

Joerg Linge seems to have posted in both forums that the performance data problem is fixed in PNP 0.6.3

Upgrading to 0.6.3 would seem to both fix my problem with performance data and give me a feature that I need:
"Export from RRD databases into XML, CSV and JSON format using the RRDtool “xport” function"
(I need this, or something like it, to get RRD data into Crystal Reports)

The upgrade looks like doing a fresh install into /usr/local/pnp4nagios, so it shouldn't conflict with 0.4. But clearly there's work to be done migrating the old data, telling Core where to put the RRD data, telling XI where to find the graphs, and probably more that my quick skim of the docs didn't pick up.

I'd be willing to try this, but only in conjunction with your Team. We could work off-line if you'd prefer.

The patch for trailing semicolons might work, but looks like it means editiong the dll's on clients. And my Crystal Reports issue would need some other solution.

Thanks for any advice....Lyle
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA

Re: performance data not kept for some services

Post by tonyyarusso »

What's your timeline on needing this particular thing addressed? I ask because it looks like there are quite a few things in XI that will be improved by upgrading to PNP 0.6, so we're starting to look at doing that for everyone, but it will take a bit of work to do so.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
lyle
Posts: 158
Joined: Sun Nov 21, 2010 3:05 am

Re: performance data not kept for some services

Post by lyle »

Hi, Tony et al:

I'm about 2 months behind on this project (monitoring & reporting on performance data for productions servers). Debugging my less-than-clean install (with your kind help), then reinstalling, has set me back quite a bit. As it stands, for Windows servers, I can only collect CheckCPU data (better than nothing). Unix & Linux clients, via the nrpe plugins you've suggested, haven't been tried yet.

As I said, I'm willing to try a PNP 0.6 upgrade myself, with your advice. That route might give you insight into some of the pitfalls, but might not be an effective use of your time, and would make my installation a-typical.

Turning the question around, I guess I'd ask what your timeline for a release including 0.6 would be.

I'm happy to take the conversation offline in email or PM if you'd like.

Thanks...Lyle
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: performance data not kept for some services

Post by rdedon »

Hell Lyle,
we could schedule a remote session to do a bit of exploratory research if you wish? I would be available on Thursday this week if that works for you? We can start an offline dialogue regarding the logistics if so, just respond here.

Thanks!
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: performance data not kept for some services

Post by mguthrie »

Hey Lyle,

Since doing a full integration with pnp0.6 will probably take some time, and we're probably going to change how we currently acquire the graphs themselves, I'll post a possible patch for your immediate issue.

Here's an updated and patched script from pnp0.6 that should process your performance data correctly. First create a backup, and then try replacing:
/usr/local/nagios/libexec/process_perfdata.pl
with the attached file.

Let us know if this begins processing the performance data correctly.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: performance data not kept for some services

Post by mguthrie »

Upgrading to 0.6.3 would seem to both fix my problem with performance data and give me a feature that I need:
"Export from RRD databases into XML, CSV and JSON format using the RRDtool “xport” function"
(I need this, or something like it, to get RRD data into Crystal Reports)
What format do you need the data in? The exporting to XML is a built-in tool of rrdtool. You can dump the entire rrd database to an xml file with the following command. We'll probably have this accessible from the web interface in the future.

Example:

Code: Select all

rrdtool dump /usr/local/nagios/share/perfdata/<hostname>/<service_desc>.rrd my_xml_output.xml
lyle
Posts: 158
Joined: Sun Nov 21, 2010 3:05 am

Re: performance data not kept for some services

Post by lyle »

Thanks for the patch, Mike and everyone there. I'm downloading it, will try it, and respond here with the result.

I was hoping PNP 0.6 would allow me to export the data in CSV format. For several reasons, we can not upgrade from V10 of Crystal Reports, and that version does not import XML, but is just fine with CSV. I've been posting on the RRDTool list looking for a solution, but all I've received back were suggestions to write my own XML to CSV converter. The PNP 0.6.3 release notes I quoted above gave me some hope.

Thanks...Lyle