Testing the custom agent script agent.py is working when using test-agent.sh.
The script connects and pulls data back.
When Foglight deployed the custom cartridge package the following error message appears:
VERBOSE [Data Submission[13]-3] com.dell.foglight.storage.python.PythonAgentImpl - Agent topology submission succeeded YYYY-05-29 17:59:04.877 ERROR [Quartz[0]-1] com.dell.foglight.storage.python.PythonAgentImpl - An error occurred executing collector script agent.py: java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException. aused by: Traceback (most recent call last): File "/opt/foglight/client/agents/MyAgent/1.0.0-1.0.0-202005290556/scripts/agent.py", line 52, in Class.forName("sybase.jdbc4.sqlanywhere.IDriver");
The Python agent is looking for the jar file in the "lib" folder but the required jar file is in the "scripts" folder.
Product defect
Workaround:
Status:
Defect ID has been filled for this Issue FOG-2842. It will be fixed in a future release.