Page 1 of 1

Gathering performance data from check_nrpe check mem

Posted: Mon Jun 27, 2011 9:46 am
by recycle
Hi, I'm using NRPE with a NSClient install on a 64bit Win 2008 server to gather memory info. The check works fine, but I'm unable to graph the resulting data in Nagios XI.

The command in use is:

$USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckMEM -a MaxWarn=$ARG1$% MaxCrit=$ARG2$% ShowAll=long type=physical

Run at the command line on the Nagios server I get the following:

CRITICAL: physical memory: Total: 4G - Used: 3.63G (90%) - Free: 380M (10%) > critical|'physical memory %'=90%;80;90; 'physical memory'=3.62G;3.19;3.59;0;3.99;

In Nagios XI, the output under the service advanced tab is:

Performance Data: 'physical memory %'=87%;90;95; 'physical memory'=3.48G;3.59;3.79;0;3.99;

"No performance graphs were found for this service."

I wonder if you can help me troubleshoot this? How can I graph this data?

The setup is Nagios XI running on CentOS in VMPlayer on a windows PC. The installation is based on a 2 week old download so is fairly recent.

Many thanks

Stephen

Re: Gathering performance data from check_nrpe check mem

Posted: Mon Jun 27, 2011 10:53 am
by recycle
Actually, fixed this while awaiting post approval.

1) Upgraded to latest version of Nagios XI (not sure if this is relevant or not in the end)

2) Changed my service:

Check command: check_nrpe
Template name: xiwizard_nrpe_service

Command view: $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$

$ARG1$: checkmem
$ARG2$: -a MaxWarn=80% MaxCrit=90% ShowAll=long type=physical

:-)

Re: Gathering performance data from check_nrpe check mem

Posted: Mon Jun 27, 2011 11:41 am
by mguthrie
Good deal! Thanks for the update!