Page 3 of 4
Re: performance data not kept for some services
Posted: Fri Apr 08, 2011 5:46 pm
by lyle
One failing Service definition has:
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
Re: performance data not kept for some services
Posted: Mon Apr 11, 2011 9:30 am
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.
Re: performance data not kept for some services
Posted: Mon Apr 11, 2011 10:36 am
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
Re: performance data not kept for some services
Posted: Mon Apr 11, 2011 11:42 am
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
Re: performance data not kept for some services
Posted: Tue Apr 12, 2011 10:21 am
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.
Re: performance data not kept for some services
Posted: Wed Apr 13, 2011 12:08 pm
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
Re: performance data not kept for some services
Posted: Wed Apr 13, 2011 4:00 pm
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!
Re: performance data not kept for some services
Posted: Tue Apr 19, 2011 3:23 pm
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.
Re: performance data not kept for some services
Posted: Tue Apr 19, 2011 4:03 pm
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
Re: performance data not kept for some services
Posted: Wed Apr 27, 2011 11:28 am
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