Monitor Application / Process Running

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
meekiemouse
Posts: 1
Joined: Fri Aug 29, 2014 3:45 pm

Monitor Application / Process Running

Post by meekiemouse »

Looking for a way to monitor for the program running on a Windows system. The program is an executable called client.exe that loads into memory as a process when running. I have tried turning the process into a service with no luck.

While I can monitor for the process count I need to monitor weather or not the process is running and present a "critical" notification if the process is not running.
bbahn
Posts: 385
Joined: Thu Jan 12, 2023 5:42 pm

Re: Monitor Application / Process Running

Post by bbahn »

Hello @meekimouse,

You can monitor a process with NCPA. I would recommend using check_ncpa.py with the NCPA API's processes endpoint. Through the NCPA UI, you can verify that your query is correctly grabbing the right process and then use check_ncpa.py for your checks.

Here are some useful links:
https://support.nagios.com/kb/article.php?id=782
https://www.nagios.org/ncpa/help.php
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
KYLIEJEN931
Posts: 1
Joined: Sat Dec 13, 2025 2:13 am
Contact:

Re: Monitor Application / Process Running

Post by KYLIEJEN931 »

Hi friend, I just tell you the simplest and most reliable approach is to monitor whether client.exe is actually running in memory by checking for the existence of the process itself and triggering a critical alert if it is not found. This can be done by querying running processes by name (for example with a small PowerShell or command-line check) rather than relying on process count, since you only care about whether it is present or absent. Service wrappers often fail because many applications aren’t designed to run as Windows services and may require a user session or UI, so avoiding that complexity is usually the correct choice.
Post Reply