Memory Utilization plugin for windows server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
deek
Posts: 194
Joined: Fri Apr 26, 2019 2:01 am

Memory Utilization plugin for windows server

Post 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 .
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Memory Utilization plugin for windows server

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
deek
Posts: 194
Joined: Fri Apr 26, 2019 2:01 am

Re: Memory Utilization plugin for windows server

Post by deek »

This is really good . Thank you so much
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Memory Utilization plugin for windows server

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
deek
Posts: 194
Joined: Fri Apr 26, 2019 2:01 am

Re: Memory Utilization plugin for windows server

Post 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
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Memory Utilization plugin for windows server

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
deek
Posts: 194
Joined: Fri Apr 26, 2019 2:01 am

Re: Memory Utilization plugin for windows server

Post by deek »

So is there a way by using the plugin checkMem we can set the warning and critical thresholds in GB ?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Memory Utilization plugin for windows server

Post 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 %
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
deek
Posts: 194
Joined: Fri Apr 26, 2019 2:01 am

Re: Memory Utilization plugin for windows server

Post 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 .
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Memory Utilization plugin for windows server

Post 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'
Locked