check_nt!MEMUSE! returning DOUBLE the actual memory

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
alceryes
Posts: 41
Joined: Wed Sep 28, 2011 11:05 am

check_nt!MEMUSE! returning DOUBLE the actual memory

Post by alceryes »

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.
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: check_nt!MEMUSE! returning DOUBLE the actual memory

Post by jsmurphy »

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.
alceryes
Posts: 41
Joined: Wed Sep 28, 2011 11:05 am

Re: check_nt!MEMUSE! returning DOUBLE the actual memory

Post by alceryes »

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?
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

Post by scottwilkerson »

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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
alceryes
Posts: 41
Joined: Wed Sep 28, 2011 11:05 am

Re: check_nt!MEMUSE! returning DOUBLE the actual memory

Post by alceryes »

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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_nt!MEMUSE! returning DOUBLE the actual memory

Post by lmiltchev »

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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
alceryes
Posts: 41
Joined: Wed Sep 28, 2011 11:05 am

Re: check_nt!MEMUSE! returning DOUBLE the actual memory

Post by alceryes »

I don't have a check_nrpe in my plugins directory. I guess I need to install it...
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: check_nt!MEMUSE! returning DOUBLE the actual memory

Post by jsmurphy »

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)
Locked