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 »

./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.
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 »

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

Re: check_nt!MEMUSE showing wrong info

Post 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.
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 »

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

Re: check_nt!MEMUSE showing wrong info

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_nt!MEMUSE showing wrong info

Post 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? ?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: check_nt!MEMUSE showing wrong info

Post 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.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: check_nt!MEMUSE showing wrong info

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: check_nt!MEMUSE showing wrong info

Post 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"
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_nt!MEMUSE showing wrong info

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked