Custom Performance data

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
User avatar
nizaroch
Posts: 8
Joined: Fri Mar 30, 2012 2:22 am
Location: Singapore
Contact:

Custom Performance data

Post by nizaroch »

Hello,

Please help, I'm having difficulty getting check_load graph correctly, I'm wondering why the graph Y-axis is showing figures with letter 'm' on it and even the min,max,avg, cur shows the same.

Please advise. thanks.
CPU load graph output.
CPU load graph output.
LoadAverage.JPG (45.88 KiB) Viewed 2065 times
User avatar
nizaroch
Posts: 8
Joined: Fri Mar 30, 2012 2:22 am
Location: Singapore
Contact:

Re: Custom Performance data

Post by nizaroch »

I got it right at last. :)
User avatar
nizaroch
Posts: 8
Joined: Fri Mar 30, 2012 2:22 am
Location: Singapore
Contact:

Re: Custom Performance data

Post by nizaroch »

Hi Guys,

Is there a way to extend performance data output? my check_disk space plugin output give 13 filesystem, when it comes to performance data output it only shows 7 filesystem as well as in the graph.

Can someone help me on this?

Thanks!
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Custom Performance data

Post by agriffin »

There are two places things might be going wrong here. It might be the plugin's fault, not printing correct output. Can you post the output you get after running it on the command line?

It could also be going wrong on Nagios' end somewhere. If the output is longer than 8kB Nagios will ignore the rest. You could increase this limit by recompiling Nagios but it might be a better idea to split this check into multiple services instead.
User avatar
nizaroch
Posts: 8
Joined: Fri Mar 30, 2012 2:22 am
Location: Singapore
Contact:

Re: Custom Performance data

Post by nizaroch »

Thanks for the reply. You are right nagios only reads 8kb of nagios plugin output. How do I recompile nagios? do I also need to recomple nagios-plugins as well?
User avatar
nizaroch
Posts: 8
Joined: Fri Mar 30, 2012 2:22 am
Location: Singapore
Contact:

Re: Custom Performance data

Post by nizaroch »

I've tried to recompile nagios from scratch still getting same perfdata output, it doesn't show the complete performance data.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Custom Performance data

Post by agriffin »

Before recompiling, you need to change the value of the MAX_PLUGIN_OUTPUT_LENGTH constant in the nagios.h file.
Locked