Page 2 of 5

Re: check_nt!MEMUSE showing wrong info

Posted: Mon Feb 11, 2013 12:48 am
by lafargeuser
./check_nrpe -H 172.17.98.163 -p 5666 -c CheckMEM -a MaxWarn=$ARG1$% MaxCrit=$ARG2$% ShowAll type=physical
CRITICAL: physical memory: Total: 2G - Used: 664M (32%) - Free: 1.35G (68%) > critical|'physical memory %'=32%;0;0 'physical memory'=696369152B;0;0;0;214701670433

Now i can see correct Memory. But in GUI still i can see 4095 Memory.

Memory Usage OK 02-11-2013 12:40:44 2d 0h 4m 4s 1/3 Memory usage: total:4095.14 Mb - used: 700.98 Mb (17%) - free: 3394.16 Mb (83%)

Where do i have to make changes & How. Pls. let me know. Would be reall appericate.

Re: check_nt!MEMUSE showing wrong info

Posted: Mon Feb 11, 2013 12:13 pm
by slansing
Did you allow the check in the UI to update when the value after it runs again? It will still show the previous value until it has ran.

Re: check_nt!MEMUSE showing wrong info

Posted: Tue Feb 12, 2013 12:46 am
by lafargeuser
I did some changes in commands.cfg file but it didnt work.
Will You pls. help me with, how to allow the check in the UI to update the actual value.

Re: check_nt!MEMUSE showing wrong info

Posted: Tue Feb 12, 2013 11:09 am
by slansing
For the sake of testing, try changing your command to from:

Code: Select all

ShowAll type=physical
To:

Code: Select all

ShowAll=long type=physical

Re: check_nt!MEMUSE showing wrong info

Posted: Wed Feb 13, 2013 12:32 am
by lafargeuser
Slansing,

It shows me the same output.
Will you pls. help me with, which configuration file i have to make changes & what ? So that it will show correct memory.
However, it show correct memory if i use snmp monitoring.

There are 300+ server on which i am getting wrong mem info.

Re: check_nt!MEMUSE showing wrong info

Posted: Wed Feb 13, 2013 11:11 am
by abrist
lafargeuser wrote: Memory Usage OK 02-11-2013 12:40:44 2d 0h 4m 4s 1/3 Memory usage: total:4095.14 Mb - used: 700.98 Mb (17%) - free: 3394.16 Mb (83%)
Where do you receive this output? In XI? From the cli? ?

Re: check_nt!MEMUSE showing wrong info

Posted: Thu Feb 14, 2013 1:21 am
by lafargeuser
In XI.
It show wrong mem info mean if 2 GB is exist on server it shows double pagefile + physical mem = total memory.

When i login into XI weburl under services it shows wrong info.
Where i have to make changes so that it will reflect actual mem in XI.

Re: check_nt!MEMUSE showing wrong info

Posted: Thu Feb 14, 2013 11:09 am
by lmiltchev
Where i have to make changes so that it will reflect actual mem in XI.
You posted on the Nagios Core forum... Are you using Nagios XI?

Can you post your command definition so that we can review it?

Re: check_nt!MEMUSE showing wrong info

Posted: Fri Feb 15, 2013 5:21 am
by lafargeuser
define command {
command_name CheckMEM
command_line /usr/local/nagios/libexec/check_nrpe -H 172.17.98.163 -c CheckMEM

Also i tried below

command_line /usr/local/nagios/libexec/check_nrpe -H 172.17.98.163 -c CheckMEM -a MaxWarn $ARG1$% MaxCrit $ARG2$% type "physical"

Re: check_nt!MEMUSE showing wrong info

Posted: Fri Feb 15, 2013 10:53 am
by abrist
You need to have the proper syntax. Compare your check to this one.

Code: Select all

command_line /usr/local/nagios/libexec/check_nrpe -H 172.17.98.163 -c CheckMEM -a MaxWarn $ARG1$% MaxCrit $ARG2$% type=physical
type=physical