How to monitor multiple windows services using Processavailability scrtipt?
search cancel

How to monitor multiple windows services using Processavailability scrtipt?

book

Article ID: 218840

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope) CA Application Performance Management Agent (APM / Wily / Introscope) CA Application Performance Management SaaS DX Application Performance Management

Issue/Introduction

We are planning to monitor the process to ensure windows service is up and running . So in order to do that we are planning to use EPA agent which uses the below script. 

windows processAvailability.pl  

If we want to monitor multiple processes, how should we mention them in bundle.properties 

Should we use multiple entries or we can group it using "OR" operator
 

Example:

introscope.epagent.stateless.EpaSamples.MATCHEDPROCS.command=perl {ApmExtensionHome}\\bin\\processAvailability.pl -match ^java -distinctmatch

 

 

Environment

Release : 10.7.0, 20.x

Component : Agent

Resolution

The script only appears to accept (or report) one argument at  time even when using the distinctMatch argument.

Therefore create a separate entry for each process to check e.g.

introscope.epagent.plugins.stateless.names=PROC1, PROC2
introscope.epagent.stateless.PROC1.command=perl C:\\EPAgent10.7.0.45windows\\epagent\\epaplugins\\windows\\processAvailability.pl -match ^java
introscope.epagent.stateless.PROC1.delayInSeconds=60
introscope.epagent.stateless.PROC2.command=perl C:\\EPAgent10.7.0.45windows\\epagent\\epaplugins\\windows\\processAvailability.pl -match ^cmd
introscope.epagent.stateless.PROC2.delayInSeconds=60