Page 2 of 2

Re: Metrics Display not showing data from check_nrpe checks

Posted: Mon Nov 26, 2018 11:29 pm
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

Re: Metrics Display not showing data from check_nrpe checks

Posted: Tue Nov 27, 2018 3:09 pm
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%"

Re: Metrics Display not showing data from check_nrpe checks

Posted: Wed Nov 28, 2018 12:31 am
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

Re: Metrics Display not showing data from check_nrpe checks

Posted: Wed Nov 28, 2018 5:29 pm
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

Re: Metrics Display not showing data from check_nrpe checks

Posted: Thu Nov 29, 2018 7:35 pm
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

Re: Metrics Display not showing data from check_nrpe checks

Posted: Fri Nov 30, 2018 4:44 pm
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