Page 1 of 1

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

Posted: Tue Jun 16, 2020 2:40 pm
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

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

Posted: Wed Jun 17, 2020 5:04 pm
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'