Metrics Display not showing data from check_nrpe checks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Metrics Display not showing data from check_nrpe checks

Post by Fred Kroeger »

Sorry for the delay in getting back you - been away.
The service is now displayed in the memory metrics page , however I suspect that the new one collected from check_nrpe is showing Memory Free instead of Utilised.
Metrics screenshot.PNG
check_nt (top entry) shows 54% utilisation and 46% Free
check_nrpe (bottom entry) show 47% Utilisation
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Metrics Display not showing data from check_nrpe checks

Post by ssax »

I'll take a look, I do know that check_nt includes the pagefile to the memory check output and NRPE doesn't.

What is the full output of this command for that host?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H X.X.X.X -t 30 -c check_memory -a "warn=free < 20%" "crit=free < 10%"
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Metrics Display not showing data from check_nrpe checks

Post by Fred Kroeger »

Already given that but here it is again

Code: Select all

# /usr/local/nagios/libexec/check_nrpe -H X.X.X.X -t 30 -c check_memory -a "warn=free < 20%" "crit=free < 10%"

OK: committed = 1.571GB, physical = 1.276GB|'committed'=960.42187MB;513.79765;256.89882;0;2568.98828 'committed %'=37%;20;10;0;100 'physical'=738.4375MB;409.00546;204.50273;0;2045.02734 'physical %'=36%;20;10;0;100
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Metrics Display not showing data from check_nrpe checks

Post by ssax »

I meant to get the current usage, it's working properly with your exact output on mine:

Code: Select all

OK: committed = 1.571GB, physical = 1.276GB|'committed'=960.42187MB;513.79765;256.89882;0;2568.98828 'committed %'=37%;20;10;0;100 'physical'=738.4375MB;409.00546;204.50273;0;2045.02734 'physical %'=36%;20;10;0;100
Untitled.png
You do not have the required permissions to view the files attached to this post.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Metrics Display not showing data from check_nrpe checks

Post by Fred Kroeger »

Thanks - the problem at the moment is with the check_nrpe checks from nsclient.
The previous screenshot I sent you showed the same host - the top one using check_nt and the bottom one was using check_nrpe (ignore the middle entry as it is another host). You can see that check_nt is reporting 54% used and 46% free whereas the check_nrpe is showing 47% used - this very much looks like the Free value and not the Used value.

Fred
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Metrics Display not showing data from check_nrpe checks

Post by ssax »

That's because check_nt includes the pagefile (virtual memory) usage and check_nrpe doesn't, are you trying to have it include the pagefile? If so, please replace this file with the one I've attached and test:

Code: Select all

/usr/local/nagiosxi/html/includes/utils-metrics.inc.php
utils-metrics.inc-COMMITTED.zip
You do not have the required permissions to view the files attached to this post.
Locked