Page 1 of 2

Memory Utilization plugin for windows server

Posted: Thu Jan 07, 2021 1:14 am
by deek
Hi Team ,

Currently we are monitoring the memory utilization of windows server using check_nrpe as shown in the below screenshot . The alerting threshold is setup as MaxWarn=90% MaxCrit=95% .
Capture_memory metric.PNG
I wanted a warning / critical alert when there is only 2 GB space available . So is there a way to give the alerting threshold value in GB .

Re: Memory Utilization plugin for windows server

Posted: Thu Jan 07, 2021 3:30 pm
by benjaminsmith
Hi Deek,

We have a check the library on our knowledgebase with some example, NSClient checks that are pretty useful.

https://support.nagios.com/kb/article/m ... free_value

In this case, the example arguments would be (critical if less than 2GB):

Code: Select all

./check_nrpe -H 10.25.14.10 -c check_memory -a type=physical 'warn=free<4G' 'crit=free<2G'
Let me know if that's going to work for you. Also, some more details on the NSClient check_memory query available at:
https://docs.nsclient.org/reference/win ... eck_memory

--Benjamin

Re: Memory Utilization plugin for windows server

Posted: Tue Jan 19, 2021 8:56 am
by deek
This is really good . Thank you so much

Re: Memory Utilization plugin for windows server

Posted: Wed Jan 20, 2021 11:20 am
by benjaminsmith
Hi @deek,
This is really good . Thank you so much
Glad that helped!

Let us know if you have any other questions or if we may close this topic.

Regards,
Benjamin

Re: Memory Utilization plugin for windows server

Posted: Tue Feb 02, 2021 12:40 pm
by deek
Hi ,

I have one more question . This plugin is really good but it displays only the used GB . Is there a way it can display the available / Free GB as well.
Capture_memory.PNG

Re: Memory Utilization plugin for windows server

Posted: Tue Feb 02, 2021 5:46 pm
by benjaminsmith
HI deek,

After reviewing the doc on this one, I don't see an option to change that behavior. Here's a link to all the available options for check_memory.

https://docs.nsclient.org/reference/win ... ory_filter

Let us know if you have further questions.

--Benjamin

Re: Memory Utilization plugin for windows server

Posted: Wed Feb 03, 2021 1:09 am
by deek
So is there a way by using the plugin checkMem we can set the warning and critical thresholds in GB ?

Re: Memory Utilization plugin for windows server

Posted: Wed Feb 03, 2021 2:46 pm
by benjaminsmith
Hi Deek,

You can set the free memory to use any of the following metrics, that part can be adjusted
Free memory in bytes (g,m,k,b) or percentages %
https://docs.nsclient.org/reference/win ... ory_filter

Or used memory:
used Used memory in bytes (g,m,k,b) or percentages %

Re: Memory Utilization plugin for windows server

Posted: Fri Feb 05, 2021 10:32 am
by deek
Thanks for that .

And is there a way to only alert when the "available memory is less than 1 GB and less than 5% memory consumed" . I know its complicated .

Re: Memory Utilization plugin for windows server

Posted: Fri Feb 05, 2021 4:31 pm
by ssax
I think this should do it:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -2 -H X.X.X.X -c check_memory -a type=physical 'crit=free<1G or used<5%'
Or:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -2 -H X.X.X.X -c check_memory -a type=physical 'warn=used<5%' 'crit=free<1G'