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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
SLAMSupport
Posts: 3
Joined: Mon Nov 17, 2014 7:38 am

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

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
SLAMSupport
Posts: 3
Joined: Mon Nov 17, 2014 7:38 am

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

Post 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,
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
SLAMSupport
Posts: 3
Joined: Mon Nov 17, 2014 7:38 am

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

Post by SLAMSupport »

Thanks. It work
Locked