check_nrpe check_mem error no percentage output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
samuel
Posts: 55
Joined: Wed Jan 16, 2013 4:44 pm

check_nrpe check_mem error no percentage output

Post by samuel »

I started monitoring a turnkey server based on debian. All of the other checks return just fine, but the memory usage is always at warning levels even when it is above the threshold. I think it is because the percentage isn't outputting.

Here is the output.

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_nrpe -H 10.149.149.15 -t 30 -c check_mem -a '-w 20 -c 10'
OUTPUT: WARNING - 72 / 1010 MB (%) Free Memory, Used: 938 MB, Shared: 0 MB, Buffers: 347 MB, Cached: 518 MB | total=1010MB free=72MB used=938MB shared=0 buffers=347MB cached=518MB
It should be on Critical right now.

What version of Nagios XI are you using? Nagios XI 2012R1.3
Linux Distribution and version? centos 6.3
32 or 64bit? 32bit
VMware Image or Manual Install of XI? VMware Image
Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL? none
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_nrpe check_mem error no percentage output

Post by scottwilkerson »

You will need to make sure the remote servver had the dc package installed.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
samuel
Posts: 55
Joined: Wed Jan 16, 2013 4:44 pm

Re: check_nrpe check_mem error no percentage output

Post by samuel »

What is the dc package? I installed nagios-agent_1.0-2ppa2_all.deb on it. I just followed the pdf. http://assets.nagios.com/downloads/nagi ... _Agent.pdf
samuel
Posts: 55
Joined: Wed Jan 16, 2013 4:44 pm

Re: check_nrpe check_mem error no percentage output

Post by samuel »

All of the other servers I am monitoring are working just fine. I used the same pdf to install the client on the others. The other services on this machine are running fine as well
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_nrpe check_mem error no percentage output

Post by slansing »

Have you installed the bc package to its most up to date version and tried running the command through shell again?:

Code: Select all

yum install bc
samuel
Posts: 55
Joined: Wed Jan 16, 2013 4:44 pm

Re: check_nrpe check_mem error no percentage output

Post by samuel »

Code: Select all

bc is already the newest version.
samuel
Posts: 55
Joined: Wed Jan 16, 2013 4:44 pm

Re: check_nrpe check_mem error no percentage output

Post by samuel »

Code: Select all

sudo apt-get install dc
sudo: /etc/sudoers.d/nagios-agent is mode 0644, should be 0440
Reading package lists... Done
Reading package lists... Done%
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  dc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 65.7 kB of archives.
After this operation, 213 kB of additional disk space will be used.
Get:1 http://10.150.150.40/ftp.us.debian.org/debian/ squeeze/main dc i386 1.06.95-2 [65.7 kB]
Fetched 65.7 kB in 0s (189 kB/s)
[master 94088f1] saving uncommitted changes in /etc prior to apt run
 Author: root <root@blvmnas>
 1 files changed, 1 insertions(+), 1 deletions(-)
Selecting previously deselected package dc.
(Reading database ... 32228 files and directories currently installed.)
Unpacking dc (from .../archives/dc_1.06.95-2_i386.deb) ...
Processing triggers for man-db ...
Setting up dc (1.06.95-2) ...
Counting objects: 1902, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (1039/1039), done.
Writing objects: 100% (1902/1902), done.
Total 1902 (delta 451), reused 1890 (delta 443)
Building dependency tree
Reading state information... Done
dc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
samuel
Posts: 55
Joined: Wed Jan 16, 2013 4:44 pm

Re: check_nrpe check_mem error no percentage output

Post by samuel »

The dc package fixed it. Thanks for your help.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_nrpe check_mem error no percentage output

Post by slansing »

Excellent, it is easy to confuse

Code: Select all

dc 
and

Code: Select all

 bc 
:)
Locked