Windows monitor Process by User

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
ir0nx
Posts: 1
Joined: Thu Apr 26, 2018 1:55 am

Windows monitor Process by User

Post by ir0nx »

Hello,

is there a possibility to monitor Windows Processes by Users ?
We have a terminal server where one special process needs to be started by 4 different users (4 process instances, 4 different users).
Now I want to trigger an alert, if the process will not be started by a user or crashes in a user session.
Simply monitoring just the process-name wont work as all 4 processes are same name.
Is there a simple way for monitoring this ?

Thanks,
Regards,
ir0nx
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Windows monitor Process by User

Post by cdienger »

ncpa(https://www.nagios.org/ncpa/) may be your answer. To monitor the chrome process being run by the admin user on my test machine it's just:

./check_ncpa.py -H <ip> -t '<token>' -M 'processes' -q 'username="ACME\Administrator",name=chrome.exe'
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked