For some reason the 'check_nt!MEMUSE!' is returning double the amount of actual memory in a system.
Ex. - this system only has 3GB's of memory but the memory status info shows this - Memory usage: total:6141.36 Mb - used: 1703.53 Mb (28%) - free: 4437.83 Mb (72%) - twice the actual amount of memory for the 'total'.
This 'doubling' appears for virtual and physical systems across 3 different physical hardware platforms.
I think I read somewhere that it may be combining used pagefile with system mem but we have other Nagios installations that don't do this so...I'm at a loss.
Any suggestions would be appreciated.
check_nt!MEMUSE! returning DOUBLE the actual memory
Re: check_nt!MEMUSE! returning DOUBLE the actual memory
It's returning physical memory + page file, if you want to change it to physical memory only find the CheckMem command under the Alias section in the NSClient++ config and remove all the type= statements except for type=physical.
Re: check_nt!MEMUSE! returning DOUBLE the actual memory
I changed the checkmem command under the alias section of the .ini for all the clients but it's still doubling the memory. I've already tried restarting the nagios services and rebooting the Nagios server.
any ideas?
any ideas?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_nt!MEMUSE! returning DOUBLE the actual memory
Changing the checkmem command will help if you are using check_nrpe but not check_nt!MEMUSE
MEMUSE has no option to change to physical only
MEMUSE has no option to change to physical only
Re: check_nt!MEMUSE! returning DOUBLE the actual memory
Thanks Scot!
Do you know how I would make it use the check_nrpe command? Are there any additional setups that need to be done?
Do you know how I would make it use the check_nrpe command? Are there any additional setups that need to be done?
Re: check_nt!MEMUSE! returning DOUBLE the actual memory
You will have to modify the "NSC.ini" file:
- Uncomment the NRPEListener.dll option by removing the ";" symbol:
NRPEListener.dll
- Make sure port 5666 is uncommented as well:
port=5666
- Uncomment the "allow_arguments" option and set its value to 1:
allow_arguments=1
- Restart the NSClient++ service - you can do it from a DOS command prompt:
net stop nsclientpp
net start nsclientpp
- Test it by running this command from the plugins directory on your nagios server:
./check_nrpe -H <client_IP_address>
You should see:
"I ... seem to be doing fine...".
Hope this helps.
- Uncomment the NRPEListener.dll option by removing the ";" symbol:
NRPEListener.dll
- Make sure port 5666 is uncommented as well:
port=5666
- Uncomment the "allow_arguments" option and set its value to 1:
allow_arguments=1
- Restart the NSClient++ service - you can do it from a DOS command prompt:
net stop nsclientpp
net start nsclientpp
- Test it by running this command from the plugins directory on your nagios server:
./check_nrpe -H <client_IP_address>
You should see:
"I ... seem to be doing fine...".
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_nt!MEMUSE! returning DOUBLE the actual memory
I don't have a check_nrpe in my plugins directory. I guess I need to install it...
Re: check_nt!MEMUSE! returning DOUBLE the actual memory
The check_nrpe plugin is part of the NRPE package found... http://exchange.nagios.org/directory/Ad ... or/details and documentation for installing it: http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf (it's less complicated then it looks you just need to compile it and copy the check_nrpe executable to the libexec directory)