EPAgent failed to start when using custom VMSTAT script and the EPAgent log shows the following exception:
[ERROR] [EPAgent] EPAgent failed to start because: Stateless plugin 'VMSTAT' must have a schedule or delay configured. com.wily.introscope.epagent.IllegalConfigurationException: Stateless plugin 'VMSTAT' must have a schedule or delay configured. at com.wily.introscope.epagent.EPAPlugin.<init>(EPAPlugin.java:111) at com.wily.introscope.epagent.ProcessPlugin.<init>(ProcessPlugin.java:106) at com.wily.introscope.epagent.EPAConfig.parseConfig(EPAConfig.java:281) at com.wily.introscope.epagent.EPAConfig.parseConfig(EPAConfig.java:188) at com.wily.introscope.epagent.EPAConfig.parseConfigFile(EPAConfig.java:178) at com.wily.introscope.epagent.EPAgent.start(EPAgent.java:155) at com.wily.introscope.epagent.EPAgent.main(EPAgent.java:438) at com.wily.introscope.api.IntroscopeEPAgent.main(IntroscopeEPAgent.java:55) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.tanukisoftware.wrapper.WrapperJarApp.run(WrapperJarApp.java:394) at java.lang.Thread.run(Thread.java:767)
Cause
This error indicates that the script needs a delay configured to work.
Environment
EPAgent 10.x
Resolution
In order to address this issue please make sure that the property "introscope.epagent.stateless.VMSTAT.delayInSeconds" is enabled and has a value in the EPAgent profile:
1.- Open IntroscopeEPAgent.properties 2.- Locate the property "introscope.epagent.stateless.VMSTAT.delayInSeconds" and check that this property is uncommented and has a value, eg: introscope.epagent.stateless.VMSTAT.delayInSeconds=900 3.- Save the file and restart the EPAgent for the changes to take effect