Page 3 of 5

Re: check_nt!MEMUSE showing wrong info

Posted: Mon Feb 18, 2013 2:35 am
by lafargeuser
Attaching, screenshot of CCM.
Pls. help me out with arguments... what & where, I have to pass the arguments. So that, using Test check command, I should see actual Memory.

Re: check_nt!MEMUSE showing wrong info

Posted: Mon Feb 18, 2013 10:35 am
by slansing
Do you have a host selected for this check already? You need to define your config name as well.. For the ARG's fill them in as shown previously. Also, I see you are using XI, we thought you were using core this whole time due to you posting in the core forums. Please post in the XI forums next time. Moving..

Re: check_nt!MEMUSE showing wrong info

Posted: Tue Feb 19, 2013 12:16 am
by lafargeuser
Thanks...
Now, I can see correct Memory as below :-

Physical Memory Critical 5h 36m 26s 5/5 19/02/2013 05:06:48 CRITICAL: physical memory: Total: 2G - Used: 698M (34%) - Free: 1.32G (66%) > critical

But it shows, Critical. However, Total RAM :2G Used: 698M (34%) - Free: 1.32G (66%)

Tried Threshold, -w 80 -c 90.
Still showing critical.

Re: check_nt!MEMUSE showing wrong info

Posted: Tue Feb 19, 2013 8:07 am
by Hartly
Hey.

I would like to know what is your version of NSClient for a 2008 server ?

Thank you.

Baptiste

Re: check_nt!MEMUSE showing wrong info

Posted: Tue Feb 19, 2013 10:13 am
by yancy
lafargeuser,

can you show the check command your using that's giving the wrong warning and critical?

are you using check_nrpe or check_nt?

-Yancy

Re: check_nt!MEMUSE showing wrong info

Posted: Wed Feb 20, 2013 1:03 am
by lafargeuser
Hartly,

I am using NSClient++-0.3.9-x64.msi


Yancy,

I am using check_nrpe
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$


CheckMEM -a MaxWarn=$ARG1$% MaxCrit=$ARG2$% ShowAll type=physical

Re: check_nt!MEMUSE showing wrong info

Posted: Wed Feb 20, 2013 10:58 am
by slansing
What do you receive when you use the following from the Nagios command line?:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 192.168.5.63 -c CheckMEM -a MaxWarn=5% MaxCrit=60% ShowAll type=physical

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 192.168.5.63 -c CheckMEM -a MaxWarn=80% MaxCrit=90% ShowAll type=physical

Re: check_nt!MEMUSE showing wrong info

Posted: Thu Feb 21, 2013 12:28 am
by lafargeuser
/usr/local/nagios/libexec/check_nrpe -H 192.168.5.63 -c CheckMEM -a MaxWarn=5% MaxCrit=60% ShowAll type=physical
Connection refused or timed out

/usr/local/nagios/libexec/check_nrpe -H 192.168.5.63 -c CheckMEM -a MaxWarn=80% MaxCrit=90% ShowAll type=physical
OK: physical memory: 687M|'physical memory %'=33%;80;90 'physical memory'=686.68MB;1638.04;1842.8;0;2047.55

However, RAM is 2 GB on the server.
I think its showing used memory. Along with, it should display actual RAM.

Re: check_nt!MEMUSE showing wrong info

Posted: Thu Feb 21, 2013 10:08 am
by yancy
/usr/local/nagios/libexec/check_nrpe -H 192.168.5.63 -c CheckMEM -a MaxWarn=5% MaxCrit=60% ShowAll type=physical
Connection refused or timed out
after running this command, is there any error in nsclient.log?

Code: Select all

type c:\program files\nsclient++\nsclient.log
Thanks,

-Yancy

Re: check_nt!MEMUSE showing wrong info

Posted: Fri Feb 22, 2013 7:28 am
by lafargeuser
Nope. I didn't see any error in nsclient.log , after running that command.