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.
check_nrpe!check_mem!-a '-w 15 -c 10' return warning
-
SLAMSupport
- Posts: 3
- Joined: Mon Nov 17, 2014 7:38 am
Re: check_nrpe!check_mem!-a '-w 15 -c 10' return warning
What is the OS/Distro of the remote machine? Just by looking at the output:
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.WARNING - 3356 / 3764 MB (%) Free Memory, Used: 408 MB, Shared: 1 MB, Buffers: 85 MB, Cached: 212 MB
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
Hi ,lmiltchev wrote:What is the OS/Distro of the remote machine? Just by looking at the output:
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.WARNING - 3356 / 3764 MB (%) Free Memory, Used: 408 MB, Shared: 1 MB, Buffers: 85 MB, Cached: 212 MB
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
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:
This should fix your issue.
Code: Select all
sudo apt-get install dcBe 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
Thanks. It work