ContributionsMost RecentMost LikesSolutionsRe: Which property source sets system.collector? Just to follow up on this... I just ran into this issue. Long story short, I had to reinstall a collector and afterwards it was not showing up as a collector and was missing the system.collector = true property, EVEN THOUGH it was monitoring itself. The solution was to set it's preferred collector to a different collector and then set it back to monitoring itself. Re: Does anyone have any experience with monitoring Windows Processes? Ok, decided to let you work on the graphs if you want. If you do make some good ones, export the xml and submit a pr. How to use Files Thank you so much. I’m looking over the files and code now. Thanks again! Re: Does anyone have any experience with monitoring Windows Processes? The way I’ve done this with services in our systems is to use win32_service as a class to match the names to the PIDs and gather the status, state, & startmode, then use win32_process using that PID to get resource consumption data. That allows output of all of the pieces and parts as a single DS for our application components we’re monitoring. multi-instance Batch for application service sets that have more than one component to reduce task load on the collectors/network. Do you have this published in the exchange? or would you mind sharing your PS script so I can use it for my own environment? Re: Does anyone have any experience with monitoring Windows Processes? @Stuart Weenig Also, because this process only shows up when the application I am trying to monitor is manually run, there unfortunately isn’t a service I can use to monitor this. Re: Does anyone have any experience with monitoring Windows Processes? @Stuart Weenig Correct, the PID would be unchanged for the lifetime of the process. But once the process ends (ie, the machine is rebooted, or the process is killed) if the process starts again it would be an entirely new PID. When I do an active discovery from the datasource editing page I can see that I have 7 instances of Chrome… When I go to the resource page and look, there is just 1 instance. If I closed out of 2 or 3 tabs of Chrome LogicMonitor would still think that the process is running, when the specific PID that I want to monitor is in fact not running. Getting LogicMonitor to recognize that Chrome1 and Chrome2 are two different things is the part I am having trouble with. Aside from somehow incorporating the PID, I do not see an alternative option. I also don’t want to discover the process by name but then have the instance be just the PID because when the alerts come out in an email I don’t want to get an email that says “Process ID #### has stopped” I would like to know what that means in a user-friendly way. If it says “Process ID ‘Chrome-####’” has stopped, at least I would know that one of the Chrome processes that I was monitoring stopped. My only reason for that is that IF down the road I am monitoring multiple processes on any given machine, I would know which one actually died. Do you have any powershell experience or suggestions that would help me find a solution for this? Re: Does anyone have any experience with monitoring Windows Processes? @Mike Aracic Thank you for the very detailed response! I had been working on a powershell script that gets all processes running that match a given name/keyword and then adds an object property to those processes that combines the process name and the PID of the process in the format “Name-PID”. So for example i would run get-process for Chrome and then make an array of those results. Then each index of that array would get a “.InstanceName” property. So chrome[0].InstanceName would be Chrome-1234, chrome[1].InstanceName would be Chrome-7890 or whatever the various PID would be for that specific process. I may combine that script with the section here on WMI Instance Level Properties. If that does not work I also like the suggest about LM Logs. We currently have LM Logs partially set up, so maybe finishing that set up and utilizing that would be beneficial. Overall I am defitely more interested in using 1 single datasource rather than having a new datasource for each process I’d like to monitor. For service monitoring I monitor about 30+ services across a group of about 285 servers all from 1 datasource. That’s generally the idea that i’m going for here too. I just wish that process monitoring was as easy as service monitoring! Re: Does anyone have any experience with monitoring Windows Processes? I have come across a few customers that have expressed interested in Process monitoring. Sounds like you have a good framework of the idea already. Maybe revisit your and use the PID (Process ID) instead of process name. If I think of anything else, I’ll share another 2 cents. First, thank you for the suggestion! I appreciate you taking the time to reply! I thought about using PIDs but I think that would start to get pretty confusing after a while. If you’ve set up the Microsoft_Windows_Services datasource then you are familiar with adding in multiple services displaynames in the Filters field, which is what I am looking for here. I think it would be easier to monitor processes where DisplayName has a Regex Match to a “Value*” of “ccSvcHst|Chrome|CiscoJabber|cmd” versus a regex match to a value of “5328|22688|19786|21860” Also, if I want to monitor all processes with the word Chrome in their name, then just “Chrome” would suffice, versus listing out each PID that Chrome is currently using for all of the different tabs. Plus the PID will change when I close chrome and then reopen it, which means I would have to update the datasource. Again, thank you for your suggestion and taking the time! If you can think of a different way to incorporate the PIDs I am all ears! Does anyone have any experience with monitoring Windows Processes? I’ve checked the community for datasources and I don’t see anything to what I’m specifically looking for. Our organization currently utilizes the Microsoft_Windows_Services datasource (modified a little bit for our specific needs) to monitor services. I’m looking for something similar to monitor windows processes. Similar to the Microsoft_Windows_Services datasource, what I am hoping to accomplish is provide a list of keywords that will either match or be contained in the process name that I want to monitor, provide a list of machines that I want to monitor those processes on, and then get alerted on if those processes stop running. Some issues I am running into so far are: Win32_Process always returns a value of NULL for status and state. So I cannot monitor for those two class level properties. Powershell’s Get-Process does not return status or state, rather it just looks for processes that are actively running, so I would need to get creative in having LogicMonitor create the instance and what value to monitor in the instance. Some of the processes I want to monitor create multiple processes with the same name, and LogicMonitor then groups them all together into one instance, which makes monitoring diffucult. Some of the process I want to monitor are processes that only run if an application is manually launched, which means that again I will need to get creative in how I set up monitoring because I don’t want to get alerts when a process that I know shouldn’t be running is not running. Because the processes I am trying to monitor are not going to be common for everyone everywhere, something that other people could do to try to replicate my scenario would be: Open Chrome. When Chrome is launched, you will get a processed called “Chrome”. Now, open several other tabs of Chrome, you will just get more processes named “Chrome”. Now, keeping in mind the points I made earlier, set up monitoring to let you know when the 3rd tab in Chrome has been closed, even though the rest of the Chrome tabs are still open. How would you break that down? My first thought would be to monitor the PIDs, however, when you reboot your machine, your PIDs will likely change. Also, I don’t want to have the datasource wild value search by PID, because that would get confusing really fast once you have 2 or 3 different PIDs that you want to monitor. All suggestions are welcome, and any help is greatly appreciated. Bonus points if you can get this to work with the discovery method as Script and you use an embedded Groovy or Powershell script. SolvedRe: Introduce Yourself! Hey Everyone. My name is Eddie and I’m a server systems engineer at hospital. I’m fairly new to Logicmonitor but I’m loving it so far.
Top ContributionsDoes anyone have any experience with monitoring Windows Processes?SolvedRe: Which property source sets system.collector?Re: Introduce Yourself!Re: Does anyone have any experience with monitoring Windows Processes?Re: Does anyone have any experience with monitoring Windows Processes?Re: Does anyone have any experience with monitoring Windows Processes?Re: Does anyone have any experience with monitoring Windows Processes?Re: Does anyone have any experience with monitoring Windows Processes?Re: Does anyone have any experience with monitoring Windows Processes?