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.
check_nt (top entry) shows 54% utilisation and 46% Free
check_nrpe (bottom entry) show 47% Utilisation
Metrics Display not showing data from check_nrpe checks
-
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
You do not have the required permissions to view the files attached to this post.
Re: Metrics Display not showing data from check_nrpe checks
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?
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
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;100Re: Metrics Display not showing data from check_nrpe checks
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;100You 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
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
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
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.phpYou do not have the required permissions to view the files attached to this post.