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

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

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

Postby JosephH » Tue Jun 16, 2020 2:40 pm

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

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

Postby cdienger » Wed Jun 17, 2020 5:04 pm

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.
User avatar
cdienger
Support Tech
 
Posts: 4436
Joined: Tue Feb 07, 2017 11:26 am


Return to Community Support

Who is online

Users browsing this forum: evolart, saber and 16 guests