We cannot start the EP Agent on AIX when we enable the VMSTAT plugin

book

Article ID: 145468

calendar_today

Updated On:

Products

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

Issue/Introduction

We cannot start the EP Agent on AIX when we enable the VMSTAT plugin, without VMSTAT we are able to start the agent.  We are getting below error with VMSTAT script,

[ERROR] [EPAgent] EPAgent failed to start because: Invalid plugin type 'VMSTAT', must be command or class.
com.wily.introscope.epagent.IllegalConfigurationException: Invalid plugin type 'VMSTAT', must be command or class.

Cause

There was an error in the configuration in the IntroscopeEPAgent.properties file

The script was being called as a stateful plugin

introscope.epagent.plugins.stateful.names=VMSTAT

but the command property for it had been defined as stateless

introscope.epagent.stateless.VMSTAT.command=perl /opt/apm/epagent/epaplugins/unix/vmstat.pl

A stateful plugin requires a stateful comand e.g.

introscope.epagent.stateful.VMSTAT.command=perl /opt/apm/epagent/epaplugins/unix/vmstat.pl

A stateless plugin requires a stateless command AND delay property e.g.

introscope.epagent.stateless.VMSTAT.command=perl /opt/apm/epagent/epaplugins/unix/vmstat.pl
introscope.epagent.stateless.VMSTAT.delayInSeconds=900

The VMSTAT plugin is intended to run as stateful

Environment

Release : 10.x

Component : APM Agents

Resolution

The command property in the IntroscopeEPAgent.properties file was corrected to be stateful

introscope.epagent.stateful.VMSTAT.command=perl /opt/apm/epagent/epaplugins/unix/vmstat.pl