check_nt!MEMUSE showing wrong info
-
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
Re: check_nt!MEMUSE showing wrong info
./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.
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.
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: check_nt!MEMUSE showing wrong info
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.
-
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
Re: check_nt!MEMUSE showing wrong info
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.
Will You pls. help me with, how to allow the check in the UI to update the actual value.
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: check_nt!MEMUSE showing wrong info
For the sake of testing, try changing your command to from:
To:
Code: Select all
ShowAll type=physical
Code: Select all
ShowAll=long type=physical
-
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
Re: check_nt!MEMUSE showing wrong info
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.
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
Where do you receive this output? In XI? From the cli? ?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%)
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.
"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.
-
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
Re: check_nt!MEMUSE showing wrong info
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.
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
You posted on the Nagios Core forum... Are you using Nagios XI?Where i have to make changes so that it will reflect actual mem in 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!
-
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
Re: check_nt!MEMUSE showing wrong info
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"
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
You need to have the proper syntax. Compare your check to this one.
type=physical
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
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.
"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.