Page 1 of 1
check_nrpe check_mem error no percentage output
Posted: Thu Jan 24, 2013 1:19 pm
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
Re: check_nrpe check_mem error no percentage output
Posted: Thu Jan 24, 2013 2:05 pm
by scottwilkerson
You will need to make sure the remote servver had the dc package installed.
Re: check_nrpe check_mem error no percentage output
Posted: Thu Jan 24, 2013 3:15 pm
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
Re: check_nrpe check_mem error no percentage output
Posted: Thu Jan 24, 2013 3:16 pm
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
Re: check_nrpe check_mem error no percentage output
Posted: Thu Jan 24, 2013 4:02 pm
by slansing
Have you installed the bc package to its most up to date version and tried running the command through shell again?:
Re: check_nrpe check_mem error no percentage output
Posted: Thu Jan 24, 2013 4:09 pm
by samuel
Re: check_nrpe check_mem error no percentage output
Posted: Thu Jan 24, 2013 4:11 pm
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.
Re: check_nrpe check_mem error no percentage output
Posted: Thu Jan 24, 2013 4:26 pm
by samuel
The dc package fixed it. Thanks for your help.
Re: check_nrpe check_mem error no percentage output
Posted: Thu Jan 24, 2013 4:56 pm
by slansing
Excellent, it is easy to confuse
and
