TECHZEN Zenoss User Community ARCHIVE  

Returning All Devices Running a Certain Process (and Similar Queries)

Subject: Returning All Devices Running a Certain Process (and Similar Queries)
Author: [Not Specified]
Posted: 2016-10-27 14:25

Let's say I want to generate a list of devices in the Zenoss enviroment running a given process, like mysqld. I know that I can look for process sets for a particular process class name in the GUI, but there's not a lot I can do with that output. Can I generate a simple report in Zenoss 5.x Is it possible to search for a process string ad hoc, rather than search for process sets Lastly, is this a job for which the API is better-suited Thanks very much for your consideration.

Subject: Good question! I have
Author: Jane Curry
Posted: 2016-10-29 07:12

Good question! I have written a wee script that hopefully does what you want. You can find it among my Gists at .

Let me know if it works for you.



Email:    Web:

Subject: Jane Curry! Zenoss royalty. =
Author: [Not Specified]
Posted: 2016-11-02 14:45

Jane Curry! Zenoss royalty. =)

Querying "sshd" returns the same number of devices as it does in the GUI, with the added benefit that I can parse the output for further work. Thanks very much for this; I have very little experience with ZenDMD, partly because I started using Zenoss post-JSON API and partly because I'm a little afraid of it ;)

< Previous
Issue Submitting New Post or Updates to Forums