I recently set up Nagios and NSClient++ to monitor a network with about 25 Windows servers, and it has been absolutely wonderful.
One of the servers in question runs a very poorly written commercial non-free software product. In the interest of protecting the guilty, let’s call this product “OfficeMatch” for now.
OfficeMatch normally runs a process that we’ll call “match.exe” as a local user that we’ll call “wetadmin”. When the OfficMatch malfunctions – which, unfortunately, happens often* – OfficeMatch somehow manages to spawn a second instance of “match.exe” which runs under user “SYSTEM”. The two “match.exe” processes apparently end up fighting over a serial port that the system uses to record call data from the PBX, and the end result is that the server fails to do its job. However, OfficeMatch is not polite enough to notify us that it is malfunctioning; instead, it simply collects incomplete data and generates reports that have little no relationship with reality.
So, does anyone know of a simple way to use Check_nt and NSClient++ (or any other combination of Nagios plugins and clients) to check for multiple instances of a specific process on a Windows server? Of course, we can and do currently use check_nt to make sure that match.exe is running at all, but is there a way to make sure that it’s running only once?
- (and we are powerless to fix it ourselves because it is not open-source software)