Page 1 of 1

check_nrpe!check_mem!-a '-w 15 -c 10' return warning

Posted: Wed Jan 28, 2015 3:42 am
by SLAMSupport
HI,

I have configure check_nrpe!check_mem!-a '-w 15 -c 10' to check on the server memory usage. However it return the wrong "warning" message as the free memory is more that 15%. Can anyone advice on this.

The return result shown in the Nagios XI:

WARNING - 3356 / 3764 MB (%) Free Memory, Used: 408 MB, Shared: 1 MB, Buffers: 85 MB, Cached: 212 MB

Thank you.

Re: check_nrpe!check_mem!-a '-w 15 -c 10' return warning

Posted: Wed Jan 28, 2015 9:22 am
by lmiltchev
What is the OS/Distro of the remote machine? Just by looking at the output:
WARNING - 3356 / 3764 MB (%) Free Memory, Used: 408 MB, Shared: 1 MB, Buffers: 85 MB, Cached: 212 MB
I can tell that most probably your issues is caused by a missing package ("bc" or "dc" - not sure which one). Notice that you have a % sign but no in front of it. Install the missing package and this *should* fix your problem. Let me know if this helped.

Re: check_nrpe!check_mem!-a '-w 15 -c 10' return warning

Posted: Thu Jan 29, 2015 6:26 am
by SLAMSupport
lmiltchev wrote:What is the OS/Distro of the remote machine? Just by looking at the output:
WARNING - 3356 / 3764 MB (%) Free Memory, Used: 408 MB, Shared: 1 MB, Buffers: 85 MB, Cached: 212 MB
I can tell that most probably your issues is caused by a missing package ("bc" or "dc" - not sure which one). Notice that you have a % sign but no in front of it. Install the missing package and this *should* fix your problem. Let me know if this helped.
Hi ,

Thank you for the reply.

That is Ubuntu. Can I know more details on "a missing package ("bc" or "dc" - not sure which one)." which you mentioned ?

Thank you.

Best regards,

Re: check_nrpe!check_mem!-a '-w 15 -c 10' return warning

Posted: Thu Jan 29, 2015 8:01 am
by lmiltchev
As this is Ubuntu, you will need dc. In Ubuntu dc stands alone, on CentOS and RHEL dc comes in bc... Run the following command on the Ubuntu box to install dc:

Code: Select all

sudo apt-get install dc
This should fix your issue.

Re: check_nrpe!check_mem!-a '-w 15 -c 10' return warning

Posted: Thu Mar 12, 2015 9:58 pm
by SLAMSupport
Thanks. It work