Systems Management (OpenView-OP Mgmt) Support and News Forum
Showing results for 
Search instead for 
Do you mean 

OSSPI - how to anchor the process in procmon_local.cfg

Frequent Advisor

OSSPI - how to anchor the process in procmon_local.cfg

hey experts..

 

I'd like to know how can I anchor the process.

 

e.g.:

 

I want to monitor "/opt/xpto/a"

 

when I run "ps -ef | grep -v grep | grep /opt/xpto/a"

the output is:

/opt/xpto/a

/opt/xpto/ab

/opt/xpto/abc

 

so, if I run "ps -ef | grep -v grep | grep /opt/xpto/a | wc -l"

the output is:

3

 

the problem is, if I setup the process regarding follwing, will warn.

 

procmon_local.cfg

[xpto]

/opt/xpto/a * 1

 

also I've tryed to use '$' to anchor, but did not work.

procmon_local.cfg

[xpto]

/opt/xpto/a$ * 1

 

any suggestions?

 

thanks in advance

3 REPLIES
Acclaimed Contributor Acclaimed Contributor

Re: OSSPI - how to anchor the process in procmon_local.cfg

[ Edited ]

>I want to monitor "/opt/xpto/a"

 

If you are on Linux, you can simply use -C to find all processes with a basename of "a":

ps -f -C a

 

If on HP-UX, you need to change it to:

UNIX95=EXTENDED_PS ps -f -C a

Frequent Advisor

Re: OSSPI - how to anchor the process in procmon_local.cfg

Hi Dennis..

 

Thanks, but the idea is to how to anchor the string in procmon_local.cfg.

And not how to use "ps"..

Acclaimed Contributor Acclaimed Contributor

Re: OSSPI - how to anchor the process in procmon_local.cfg

>And not how to use "ps"

 

Sorry, your post showed using ps(1) so I thought you had control over the options.