Windows Pagefile monitoring with Nagios

Posted on

Windows Pagefile monitoring with Nagios – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about windows, monitoring, nagios, pagefile, .

I have a NAGIOS check that monitors virtual memory on a windows machine, this check returns all the virtual memory used (physical+ max size of the pagefile).

This is not what I want, I have tried to search for some checks that only monitor the pagefile usage on a windows machine but I didn’t find anything intersting.

Are you aware of any SNMP check that monitor if the pagefile is used or not by windows?

Solution :

WMI

You can access WMI parameters directly with WMI client installed on Linux machine:

Compile and install wmi-client package manually or use compiled packages from www.orvant.com it seem to work with newer versions of Ubuntu as well (14.04 64bit).

Here is an example of wmic usage from command line:

wmic -Uuser%pass //192.168.0.2 "SELECT FileSize FROM Win32_PageFile WHERE Path=c:"

Leave a Reply

Your email address will not be published. Required fields are marked *