Better Check for Physical Memory on Windows Servers?
-
cfgriffith
- Posts: 83
- Joined: Tue Jan 15, 2013 4:22 pm
Better Check for Physical Memory on Windows Servers?
Currently I am using NRPE to check memory on our windows boxes, this works fine in most situations but for SQL servers it doesn't seem to accurately gauge the memory that is in use. I believe this is caused by the way windows caches memory. Currently I'm showing 98% used on SQL boxes.
Currently I am aware for 4 different checkmem variables: Page, Paged, Virtual, and Physical. Is there another variable that might get around this problem, or a different check other than checkmem? Thanks.
Also do you think this would be a better question to ask the NSclient people?
Currently I am aware for 4 different checkmem variables: Page, Paged, Virtual, and Physical. Is there another variable that might get around this problem, or a different check other than checkmem? Thanks.
Also do you think this would be a better question to ask the NSclient people?
Re: Better Check for Physical Memory on Windows Servers?
What is the output, when you use "Physical"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
cfgriffith
- Posts: 83
- Joined: Tue Jan 15, 2013 4:22 pm
Re: Better Check for Physical Memory on Windows Servers?
alias_mem = checkMem MaxWarn=95% MaxCrit=99% ShowAll=long type=physical <-----
alias_page = checkMem MaxWarn=90% MaxCrit=95% ShowAll=long type=page
alias_paged = checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=paged
alias_virtual = checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=virtual
As far as output I will upload a screenshot. Sorry it took me a little long to get back to this, been busy.
The reason It shows as fully used is its a database server. I don't think it is actually utilizing that much, it just has that much reserved.
alias_page = checkMem MaxWarn=90% MaxCrit=95% ShowAll=long type=page
alias_paged = checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=paged
alias_virtual = checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=virtual
As far as output I will upload a screenshot. Sorry it took me a little long to get back to this, been busy.
The reason It shows as fully used is its a database server. I don't think it is actually utilizing that much, it just has that much reserved.
You do not have the required permissions to view the files attached to this post.
Re: Better Check for Physical Memory on Windows Servers?
cfgrigffith,
Can you verify the memory available
From powershell:
You can use NSClient to pull performance counters depending on what your looking for
to find performance counters related to memory
see here for more information:
http://www.nsclient.org/nscp/wiki/Check ... eckCounter
-Yancy
Can you verify the memory available
From powershell:
Code: Select all
Get-Counter '\Memory\Available MBytes'to find performance counters related to memory
Code: Select all
get-counter -ListSet *memory* | Select-Object -ExpandProperty Counter http://www.nsclient.org/nscp/wiki/Check ... eckCounter
-Yancy
-
cfgriffith
- Posts: 83
- Joined: Tue Jan 15, 2013 4:22 pm
Re: Better Check for Physical Memory on Windows Servers?
By Powershell, what do you mean? The Nagios server terminal? Thanks, again sorry for delayed response, quite busy these last few weeks.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Better Check for Physical Memory on Windows Servers?
Powershell is something that may or may not be present on your windows server, it is a Windows command line shell, what version of Windows are you using?
http://technet.microsoft.com/en-us/libr ... 78526.aspx
http://technet.microsoft.com/en-us/libr ... 78526.aspx
-
cfgriffith
- Posts: 83
- Joined: Tue Jan 15, 2013 4:22 pm
Re: Better Check for Physical Memory on Windows Servers?
Ah, I just didn't know what power-shell you meant.
As I do not currently have access to the main SQL servers I have setup a test server. I have power-shell working and have looked at the list
If I choose to use one of these commands available in power shell, how would I go about having Nagios call one of them up? An example would be must appreciated.
Thanks for your continued assistance
\Memory\Page Faults/sec
\Memory\Available Bytes
\Memory\Committed Bytes
\Memory\Commit Limit
\Memory\Write Copies/sec
\Memory\Transition Faults/sec
\Memory\Cache Faults/sec
\Memory\Demand Zero Faults/sec
\Memory\Pages/sec
\Memory\Pages Input/sec
\Memory\Page Reads/sec
\Memory\Pages Output/sec
\Memory\Pool Paged Bytes
\Memory\Pool Nonpaged Bytes
\Memory\Page Writes/sec
\Memory\Pool Paged Allocs
\Memory\Pool Nonpaged Allocs
\Memory\Free System Page Table Entries
\Memory\Cache Bytes
\Memory\Cache Bytes Peak
\Memory\Pool Paged Resident Bytes
\Memory\System Code Total Bytes
\Memory\System Code Resident Bytes
\Memory\System Driver Total Bytes
\Memory\System Driver Resident Bytes
\Memory\System Cache Resident Bytes
\Memory\% Committed Bytes In Use
\Memory\Available KBytes
\Memory\Available MBytes
\Memory\Transition Pages RePurposed/sec
\Memory\Free & Zero Page List Bytes
\Memory\Modified Page List Bytes
\Memory\Standby Cache Reserve Bytes
\Memory\Standby Cache Normal Priority Bytes
\Memory\Standby Cache Core Bytes
\.NET Memory Cache 4.0(*)\Cache Hits
\.NET Memory Cache 4.0(*)\Cache Misses
\.NET Memory Cache 4.0(*)\Cache Hit Ratio
\.NET Memory Cache 4.0(*)\Cache Trims
\.NET Memory Cache 4.0(*)\Cache Entries
\.NET Memory Cache 4.0(*)\Cache Turnover Rate
As I do not currently have access to the main SQL servers I have setup a test server. I have power-shell working and have looked at the list
If I choose to use one of these commands available in power shell, how would I go about having Nagios call one of them up? An example would be must appreciated.
Thanks for your continued assistance
\Memory\Page Faults/sec
\Memory\Available Bytes
\Memory\Committed Bytes
\Memory\Commit Limit
\Memory\Write Copies/sec
\Memory\Transition Faults/sec
\Memory\Cache Faults/sec
\Memory\Demand Zero Faults/sec
\Memory\Pages/sec
\Memory\Pages Input/sec
\Memory\Page Reads/sec
\Memory\Pages Output/sec
\Memory\Pool Paged Bytes
\Memory\Pool Nonpaged Bytes
\Memory\Page Writes/sec
\Memory\Pool Paged Allocs
\Memory\Pool Nonpaged Allocs
\Memory\Free System Page Table Entries
\Memory\Cache Bytes
\Memory\Cache Bytes Peak
\Memory\Pool Paged Resident Bytes
\Memory\System Code Total Bytes
\Memory\System Code Resident Bytes
\Memory\System Driver Total Bytes
\Memory\System Driver Resident Bytes
\Memory\System Cache Resident Bytes
\Memory\% Committed Bytes In Use
\Memory\Available KBytes
\Memory\Available MBytes
\Memory\Transition Pages RePurposed/sec
\Memory\Free & Zero Page List Bytes
\Memory\Modified Page List Bytes
\Memory\Standby Cache Reserve Bytes
\Memory\Standby Cache Normal Priority Bytes
\Memory\Standby Cache Core Bytes
\.NET Memory Cache 4.0(*)\Cache Hits
\.NET Memory Cache 4.0(*)\Cache Misses
\.NET Memory Cache 4.0(*)\Cache Hit Ratio
\.NET Memory Cache 4.0(*)\Cache Trims
\.NET Memory Cache 4.0(*)\Cache Entries
\.NET Memory Cache 4.0(*)\Cache Turnover Rate
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Better Check for Physical Memory on Windows Servers?
Powershell can be used as a CLI, or as a tool to run powershell scripts, it would be required for certain checks, Yancy was just showing you a way to list that data straight from powershell, you can also view it by doing this:
Start > In the search box at the bottom of the start menu enter performance monitor > Click Performance Monitor > From the list on the left hand side, once again select Performance Monitor > Click the green "plus" symbol > On the scrolling list find Memory and click the expand button next to it > Select the performance tables you would like to monitor, and click Add >>> Let us know which counter(s) you selected that you would like to monitor through Nagios XI.
Start > In the search box at the bottom of the start menu enter performance monitor > Click Performance Monitor > From the list on the left hand side, once again select Performance Monitor > Click the green "plus" symbol > On the scrolling list find Memory and click the expand button next to it > Select the performance tables you would like to monitor, and click Add >>> Let us know which counter(s) you selected that you would like to monitor through Nagios XI.
-
cfgriffith
- Posts: 83
- Joined: Tue Jan 15, 2013 4:22 pm
Re: Better Check for Physical Memory on Windows Servers?
Alright, I will look into my options in this regard. Again sorry for the delay, very busy lately. Should be back with analysis of which one I would like monitored sometime next week.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Better Check for Physical Memory on Windows Servers?
ok great! Thanks for the update
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.