check_nt!MEMUSE showing wrong info

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: check_nt!MEMUSE showing wrong info

Post 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.
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_nt!MEMUSE showing wrong info

Post 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..
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: check_nt!MEMUSE showing wrong info

Post 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.
Hartly
Posts: 8
Joined: Mon Feb 18, 2013 12:37 pm

Re: check_nt!MEMUSE showing wrong info

Post by Hartly »

Hey.

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

Thank you.

Baptiste
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: check_nt!MEMUSE showing wrong info

Post 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
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: check_nt!MEMUSE showing wrong info

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_nt!MEMUSE showing wrong info

Post 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
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: check_nt!MEMUSE showing wrong info

Post 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.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: check_nt!MEMUSE showing wrong info

Post 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
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: check_nt!MEMUSE showing wrong info

Post by lafargeuser »

Nope. I didn't see any error in nsclient.log , after running that command.
Locked