Modify output of Paging File check?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Brian_M
Posts: 43
Joined: Wed Apr 04, 2012 8:08 am

Modify output of Paging File check?

Post by Brian_M »

Hello,

We've been trying to troubleshoot some random software issues that's causing unexpected server reboots. The application vendor wishes to monitor paging file usage to try and spot some workload patterns. I've configured the default Paging File check in the host wizard, but it's simply displaying percent of the paging file used. In addition to percent utilized, we would also like to display the size in Gb of the paging files across all disks (total), and how much is used in Gb. We would basically like the output of this check to mimic the output of the physical disk usage checks, e.g.:

Paging File total: 20Gb - used: 5Gb (25%) - free 15Gb (75%).

How do I need to modify the check command to include this information? We don't need warning / critical thresholds, just a graphical representation of these figures graphed to help with toubleshooting.

Many Thanks,
Brian
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Modify output of Paging File check?

Post by scottwilkerson »

So we know what plugin your check is currently using, which wizard did you run?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Brian_M
Posts: 43
Joined: Wed Apr 04, 2012 8:08 am

Re: Modify output of Paging File check?

Post by Brian_M »

Hi Scott,

I used the standard Windows Server wizard, checked the Paging File performance counter at the bottom.

-Brian
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Modify output of Paging File check?

Post by lmiltchev »

Open the "Performance Monitor" on your Windows box, and add a new counter - Process->Page File Bytes. Change the command in Nagios XI, so that it would use: "\\Process(_Total)\\Page File Bytes".

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!