Analysis for running services with unique id

I am trying to create relevance that can check to see if a service is running that can account for unique id at the end of the service name. for example: bomgar-ps-58237052-1478728082 all of the bomgar services have bomgar-ps-UNIQUEID sometimes multiple agents get installed so the id will be different, is there an easy way to look for the running service beginning with bomgar-ps-*

Something like this:

exists services whose (display name of it contains "bomgar-ps")

If that doesn’t work try just display names of services to find what the display name is and adjust the query

2 Likes

Ok so that looks like it works how would i be able to get the state of that service? I want to make sure its running because if it is i don’t have to run the fixlet.

Thanks!

exists running services whose (display name of it contains "bomgar-ps")

or

not exists services whose (display name of it contains "bomgar-ps" and state of it != "Running" )

Is there also a similar relevance script for finding the full command line arguments of processes running on Linux and AIX? The following relevance does not return the entire command line argument. For some reason it only shows the first portion: (names of it, pids of it, command line arguments of it) of processes “java” (I really need to capture everything that a ps -ef command would, because I’m trying to assess particular java processes and the only differentiator between them is the command line arguments that are viewed when using a local command: ps -ef .)