Page 1 of 4
Nsclient++ Check_Mem
Posted: Mon Mar 10, 2014 10:16 am
by tenda21
command check_nt!MEMUSE! duplicates information
ex:
I have 12 G RAM and display 24
Re: Nsclient++ Check_Mem
Posted: Mon Mar 10, 2014 10:22 am
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
Re: Nsclient++ Check_Mem
Posted: Mon Mar 10, 2014 12:11 pm
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
Re: Nsclient++ Check_Mem
Posted: Mon Mar 10, 2014 2:53 pm
by sreinhardt
By default, I believe nsclient also includes the pagefile. Could you provide the service and command definitions?
Re: Nsclient++ Check_Mem
Posted: Tue Mar 11, 2014 4:02 am
by tenda21
nsclient-sample?
Re: Nsclient++ Check_Mem
Posted: Tue Mar 11, 2014 4:05 am
by tenda21
command check_nt!MEMUSE! G -w 80 -c 90
Re: Nsclient++ Check_Mem
Posted: Tue Mar 11, 2014 5:07 am
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
Re: Nsclient++ Check_Mem
Posted: Tue Mar 11, 2014 5:47 am
by tenda21
nagios display this error: CHECK_NRPE: Received 0 bytes from daemon.
Re: Nsclient++ Check_Mem
Posted: Tue Mar 11, 2014 7:22 am
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
Re: Nsclient++ Check_Mem
Posted: Tue Mar 11, 2014 7:53 am
by tenda21
I make modifications and navio display error Exception processing request: Request contained arguments (not currently allowed, check the allow arguments option).