Need to monitor a counter called Non-page file

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Uday Kumar
Posts: 32
Joined: Wed May 11, 2016 11:59 pm

Need to monitor a counter called Non-page file

Post by Uday Kumar »

Hi Team,

We need to set one of the counter known as "Non-Page File" memory on Windows box in Nagios monitoring.

Also, threshold needs to be set at 215 MB for critical and 200 MB for warning.

Counter file name is "\Terminal Services Session(*)\Pool Nonpaged Bytes"

Can you please help us with command, description and check need to be configured.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Need to monitor a counter called Non-page file

Post by mcapra »

NSClient++ or check_wmi_plus are two options that come to mind. I would recommend NSClient++ if you're relatively new to Nagios since it's much more well documented/understood by the community.

The official NSClient++ documentation has some examples for checking counters:
https://docs.nsclient.org/howto/counters/

There is also documentation for initial setup/configuration of NSClient++ as well as enabling the NRPE server used with the Nagios plugin check_nrpe:
https://docs.nsclient.org/tutorial/

Let us know if something in the documentation is unclear.
Former Nagios employee
https://www.mcapra.com/
kyang

Re: Need to monitor a counter called Non-page file

Post by kyang »

Thanks @mcapra!

@Uday Kumar He's right, do you have any agent installed on your "windows box"?
You would need an agent for communication between your windows box and Nagios. In order to check that counter.

Let us know when or if you got an agent on your windows box!
Uday Kumar
Posts: 32
Joined: Wed May 11, 2016 11:59 pm

Re: Need to monitor a counter called Non-page file

Post by Uday Kumar »

HI Kyang,

I have installed NSclient agent and basic services like CPU,Memory,DISK utilization services are monitoring for server.

CAn you please tell us, how to use nsclient for checking counters,

i need specific command for commands.cfg and service description for server.cfg with counter name i have provide in my earlier mail.
Thanks,,
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Need to monitor a counter called Non-page file

Post by mcapra »

Here's an example of a command you could try:

Code: Select all

check_nrpe -H 10.25.14.2 -c check_pdh -a 'counter:"Terminal Services Session(*)\Pool Nonpaged Bytes' 'warning=value>80' 'critical=value>90' 'perf-config=*(suffix:none)'
I make no guarantees that the above command will work because I don't know your environment. A bit of intuition may be needed.

This page has many different examples of checking various counters using the check_pdh command native to NSClient++:
http://sites.box293.com/nagios/guides/c ... s/cpu-load

Unfortunately I can't provide a command/service definition because I don't know what your Nagios Core setup looks like. The base command(s) and some examples should be enough to get things started, and if you encounter specific problems those can likely be solved here.
Former Nagios employee
https://www.mcapra.com/
kyang

Re: Need to monitor a counter called Non-page file

Post by kyang »

Thanks @mcapra!

He's right, please tell us a little bit more about your setup?
What OS are you on? What Version of Core?
kyang

Re: Need to monitor a counter called Non-page file

Post by kyang »

In case you wanted to really see an example. I was able to do this for the exact same counter you wanted. (Warnings and criticals are up to you)

Code: Select all

define service{
        use                     generic-service
        host_name               winserver
        service_description     Non Page File
        check_command           check_nt!COUNTER!-s "welcome" -l "\\Terminal Services Session(*)\\Pool Nonpaged Bytes" -w 7000000 -c 9000000
        }
Here's a picture as well.
win.PNG
Hope this helps you figure out how to define it.
Locked