Checking process status in unix/Linux

Hi

I am tryint to configure a relevance for a Fixlet which I want to start automatically the ITM agent for SO.
In this case I’m trying to make a relevance similar to that:

RELEVANCE EXPRESSION:

(name of operating system contains “Linux”) and (exists process “klzagent”) and (exists running services “klzagent” = “False”)

But it seems "exists running services “klzagent” for Linux is not working fine.
I am very new in Relevance language and I woule like to know if someone can help me to Perform adequately relevance

Thanks in advance.

The “services” handler is for Windows only. By the looks of it your making sure the OS is Linux and the “klzagent” process isn’t running. I would do something like this:

(name of operating system contains "Linux") and (not exists process "klzagent")

You also want to be aware that relevance is case sensitive so make sure the name of the process is actually cased that way.

Ok I understand.

But I understood that the clause “exists process” helped you to know if the process is installed or not,not if it is running or not.

Under your comment I understand, If a stop klzagent and make this query in qna (exists process “klzagent”) should be the result “false” ?

in unix: process existance means “is running”
windows: service - just installed and you have to control its status, process is in list - it is running

1 Like

@bfgarzon For Linux, the way to check for an installed package is by looking for the specific package in the RPM.

I highly recommend you bookmark the Inspector reference here. It is really informative on which inspectors work for which OS, what they are looking for, and syntax on how they’re used. You can also put the inspector keyword into the QnA session by itself and it can direct you on how it’s used.

To be totally correct, at the moment the “service” operator on *NIX only knows about the BigFix services and on some platforms that actually have services we do plan on extending this.

Ok thank you, because you are right with process seems enought. Sorry for Delay I was on vacation.