Nsclient++ Check_Mem

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
tenda21
Posts: 37
Joined: Tue Feb 25, 2014 7:55 am

Nsclient++ Check_Mem

Post by tenda21 »

command check_nt!MEMUSE! duplicates information
ex:
I have 12 G RAM and display 24
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nsclient++ Check_Mem

Post by slansing »

Can you show us the output of the check command? Also, on the windows system please show the output of running the following from it's CLI:

Code: Select all

wmic OS get TotalVisibleMemorySize /Value
tenda21
Posts: 37
Joined: Tue Feb 25, 2014 7:55 am

Re: Nsclient++ Check_Mem

Post by tenda21 »

Memory usage: total:32541,24 Mb - used: 20599,93 Mb (63%) - free: 11941,31 Mb (37%)

TotalVisibleMemorySize=16661904

I have windows Server 64Bits
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nsclient++ Check_Mem

Post by sreinhardt »

By default, I believe nsclient also includes the pagefile. Could you provide the service and command definitions?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
tenda21
Posts: 37
Joined: Tue Feb 25, 2014 7:55 am

Re: Nsclient++ Check_Mem

Post by tenda21 »

nsclient-sample?
tenda21
Posts: 37
Joined: Tue Feb 25, 2014 7:55 am

Re: Nsclient++ Check_Mem

Post by tenda21 »

command check_nt!MEMUSE! G -w 80 -c 90
FTL
Posts: 72
Joined: Fri Oct 21, 2011 7:23 am

Re: Nsclient++ Check_Mem

Post by FTL »

As stated the command check_nt counts page file and other bits as total memory.

use check_nrpe with NSClient++ and use the "physical" parameter

eg:

Code: Select all

check_nrpe -H ip -p 5666 -c checkMEM -a MaxWarn=x% MaxCrit=x% type=physical
This will get you the info you are requiring for just actual phyical memory
tenda21
Posts: 37
Joined: Tue Feb 25, 2014 7:55 am

Re: Nsclient++ Check_Mem

Post by tenda21 »

nagios display this error: CHECK_NRPE: Received 0 bytes from daemon.
FTL
Posts: 72
Joined: Fri Oct 21, 2011 7:23 am

Re: Nsclient++ Check_Mem

Post by FTL »

Please check your nsclient.ini file on the server you are monitoring for the following; which you will find in the "NRPE setting for Protocol options" section

Code: Select all

; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
and set it to

Code: Select all

allow arguments = true
tenda21
Posts: 37
Joined: Tue Feb 25, 2014 7:55 am

Re: Nsclient++ Check_Mem

Post by tenda21 »

I make modifications and navio display error Exception processing request: Request contained arguments (not currently allowed, check the allow arguments option).
Locked