NCPA agent monitor a window process's memory and cpu usage

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
JosephH
Posts: 34
Joined: Fri Oct 12, 2018 10:04 am

NCPA agent monitor a window process's memory and cpu usage

Post by JosephH »

Is it possible to using NCPA agent to monitor a window servers process's memory and cpu usage and also specify the warning and critical thresholds of its cpu and memory usage by given process name?
I used the API endpoint processes, but it only give me the process count and the thresholds apply to the process count, not the process's cpu or memory usage threshold.
Any help is greatly appreciated!
Thanks
Joseph
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NCPA agent monitor a window process's memory and cpu usa

Post by cdienger »

You can add filters to the check so that it only includes processes that exceed certain memory or cpu usage. For example, I'm applying filters to return the number of processes that match test.exe and have a memory usage of 80% or more:

Code: Select all

./check_ncpa.py -H IP -t '<your token>' -M 'processes' -q 'mem_percent=80,exe=test.exe'
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked