Hello everyone, First say thank you for a very flexible and robust product. I do have a question about a WMI execution. One of the products we use needs to have a separate process for each core to utilize the CPU efficiently. (Yeah it should be multi threaded but it's not and there is nothing I can do to fix that). To make things even more fun, the processes (all of them) die at random times. I am using the following WMI query to check for the processes. SELECT Name FROM Win32_Process WHERE Name='myprocess.exe' When the processes are running I see the monitor updating on schedule. When no processes are running the timestamp is never updated. From the command line (using wmic) I can see that then there are no processed nothing (zero bytes) are returned. I am going to write a plugin to do the query and then pipe it to wc -l to get a count. (If I do I will see about posting it to your library) Before I go thru that, is this a know issue and does it have a work around? Thanks again for a really cool monitoring system. Scott
WMI Check Process - not returning
scottygolden · 10 ago 2015, 21:29 · 4 mensajes · 53 visitas
- Inicio del debate
So I got my first plugin written and tested. How do I upload it to your repository?
Hello scottygolden, You can upload the plugin to our library: http://pandorafms.com/Library/repository/en For the problem that you mentioned. What does the plugin return if you execute it manually from command line? Most likely is returning a kind of value that Pandora does not recognize, or maybe the module type is not correct, and so the monitor gets unknown status. Best regards, Antonio.
Thanks for the reply. The plugin return nothing. To test I started up notepad.exe on the target machine. I used the wmic at the command line to get the process using that name. (Query was "SELECT name FROM Win32_Process WHERE Name='Notepad.exe'"). This returned results. When I exited notepad and reran it again, nothing was returned. To make sure that it was not sending any non-printable characters I piped it to a file. The file was zero bytes long. I will try post my plugin today. I do want to say it was pretty easy to add a plug in to the system. Scott
Entra en tu cuenta para publicar.
