TECHZEN Zenoss User Community ARCHIVE  

Zenoss Process Management - OR logic around process checks

Subject: Zenoss Process Management - OR logic around process checks
Author: [Not Specified]
Posted: 2014-12-30 10:50

I need to ensure a process is always running.
Lets call the process myProc.

The software that the process supports is installed to


but we also have a symlink set up:


Such that starting the process can be done from either location.

If we assume that the symlink setup won't change, and running process (with ps command) could show up as either one of the following:


How can I set up Zenoss process monitoring such that it doesn't end up dynamically adding both and trying to monitor that each one, separately is running

Right now, I'm getting an alert because it originally saw


but now the process is running as /some/path/softwareName/myProc

So, Zenoss dynamically added the 2nd process to the list of Procs to monitor, and thinks that they should both be on, when in reality I only need to ensure that one OR the other is running.

My setup is as follows: Zenoss 2.4.3

Process page:
Name: myProc
Description: myProc Base Process

Regular Expression
Pattern: .*softwareName.*myProc
Ignore Params when Modeling: No
Ignore Params: No
Enable Monitoring: Inherit Value "Yes"
Send Event on Restart: Inherit Value "No"
Failure Event Severity: Inherit Value "Error"

Can provide more info if needed.
thanks in advance!

Subject: This is what the "Replace
Author: [Not Specified]
Posted: 2014-12-30 11:43

This is what the "Replace Command Line Text" / "With" fields are for.

You could do...

Replace command line text: .*/(myProc) (.*)

With: \1 \2

Subject: Thanks for your reply.
Author: [Not Specified]
Posted: 2015-01-16 11:40

Thanks for your reply.
As an edit to my original post, my Zenoss version is 4.2.3 (not 2.4.3)..

From what I've read, the Replace Command Line Text options don't seem to be available until 4.2.5
Does that align with what you know


< Previous
centos 7 install trouble
[Errno 11] Resource temporarily unavailable