nsclient MEMUSE reporting different usage than server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

nsclient MEMUSE reporting different usage than server

Post by snapon_admin »

I'm not sure if this is an issue of the memory check counting cache in with used memory or what, but I need some assistance on this. One of our windows servers is reporting mem utilization of 71%, but Nagios says 84%. I need to know why these are different and what I need to do to make them line up better. Please see attached screens.

Task manager on server:
TM.png
Nagios:
nagios.png
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nsclient MEMUSE reporting different usage than server

Post by tmcdonald »

Can you post the check command being used for this service?
Former Nagios employee
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: nsclient MEMUSE reporting different usage than server

Post by snapon_admin »

Code: Select all

$USER1$/check_nt -t 60 -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $ARG2$ $ARG3$ $ARG4$
ARG2: MEMUSE
ARG3: -w 80 -c 90

Rest are blank.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: nsclient MEMUSE reporting different usage than server

Post by slansing »

Change ARG3 to this:

Code: Select all

ShowAll type=physical
And shift the warning and crit values to ARG4:

Code: Select all

-w 80% -c 90%
That should filter the memory to physical, but it will only show committed bytes. You may want to try check_nrpe:

Code: Select all

./check_nrpe –H ip.addr.of.host –c CheckMEM -a 'type=physical' '-w 80 -c 90'
We may need to take a look at your nsclient.ini file to see if you have arguments and NRPE enabled.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: nsclient MEMUSE reporting different usage than server

Post by snapon_admin »

k, that looks like it sort of did the trick. It's showing green now, which is good, but it still says 83% used. Is there a way to only show the used physical memory?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: nsclient MEMUSE reporting different usage than server

Post by slansing »

Yeah, that will have to be done through NRPE methinks, due to how that is set up with NSClient++, the other alternative would be to use NCPA where you can hand pick the metrics you want on each service through it's API.
Locked