check_nt 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
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

check_nt Memory

Post by braindope »

Hi Everyone,

I'm using check_nt to monitor my memory, one thing that i noticed is that it's not accurate.


Memory usage: total:37631.87 MB - used: 2263.38 MB (6%) - free: 35368.49 MB (94%)
Above is my reading on my first server, the total should be 32GB only


Memory usage: total:75264.20 MB - used: 2283.17 MB (3%) - free: 72981.03 MB (97%)
Above is my reading on my second server, the total should be 64GB only

why is it that the readings are much higher than the actual?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_nt Memory

Post by hsmith »

What version of NSClient are you using?
Former Nagios Employee.
me.
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Re: check_nt Memory

Post by braindope »

Hi,

below is the client version

NSClient++ 0.4.3.143 2015-04-29
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_nt Memory

Post by Box293 »

What you are seeing here is a combination of physical memory and the page file. This is a limitation of CHECKMEM in check_nt.

To check the physical memory you need to use check_nrpe instead and enable the NRPE module in NSClient++.

Here is some information:
http://sites.box293.com/nagios/guides/c ... mory-usage
http://sites.box293.com/nagios/guides/n ... dows/0-4-x
http://sites.box293.com/nagios/guides/n ... t-ini-file

Does this make sense?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Re: check_nt Memory

Post by braindope »

Hi Box,

Can nrpe installed instead of enabling it in the nsclient? ,unfortunately i don't control on the server :( . It is much easier for me to request the installation of nrpe. is there any problem running nsclient and nrpe at the same time?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_nt Memory

Post by Box293 »

NPPE is another type of communication method and is just another module in NSClient++. It's a matter of adjusting the nsclient.ini file to enable the NRPE module and restarting the service.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Re: check_nt Memory

Post by braindope »

Will this result in a downtime of the server? ,I mean when adjusting the nsclient?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_nt Memory

Post by Box293 »

No.

All you need to do is run these commands in a command prompt on your windows server:

Code: Select all

cd "\Program Files\NSClient++\"
nscp settings --activate-module NRPEServer --add-defaults
nscp settings --path /settings/NRPE/server --key "allow arguments" --set true
nscp settings --path /settings/NRPE/server --key "allow nasty characters" --set true
nscp settings --path /settings/NRPE/server --key insecure --set true
Then restart the NSClient++ service.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
braindope
Posts: 80
Joined: Fri Sep 26, 2014 12:13 am

Re: check_nt Memory

Post by braindope »

Thanks,

I will endorsed your solution to our SysAd. Hope this will fixed my issue :D
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_nt Memory

Post by hsmith »

Let us know if there is anything we can do to further help.

Thanks!
Former Nagios Employee.
me.
Locked