Page 1 of 1
Unable to get Apache monitoring over NCPA to work
Posted: Mon Jan 13, 2020 12:26 pm
by dlukinski
Hi
We are unable to get Apache monitoring over NCPA to work:
"UNKNOWN: Error occurred while running the plugin. Use the verbose flag for more details."
We had follwed the manual aside from the unclear NCPA config change after check_jvm.jar is installed (should there be any changes)
Also, we have Oracle JDK we are using, but not the Open JDK. Would it be a must to get both of them installed?
Thank you
Re: Unable to get Apache monitoring over NCPA to work
Posted: Mon Jan 13, 2020 2:40 pm
by mbellerue
Can you run the check from the command line and add a -v to it? That will give you the verbose output, and should give us a better idea of what is going on.
Re: Unable to get Apache monitoring over NCPA to work
Posted: Tue Jan 14, 2020 4:58 pm
by dlukinski
mbellerue wrote:Can you run the check from the command line and add a -v to it? That will give you the verbose output, and should give us a better idea of what is going on.
Where would I add -v ?
-t alfresco -P 5693 -M plugins/check_jvm.jar -q "args=-s service:jmx:rmi://ignored/jndi/rmi://10.102.75.70:50500/alfresco/jmxrmi,args=-u 'monitorRole ',args=-p 'SuperCraneInKCForQAECM2018',args=-t tomcat,args=-C 'MemorySimpleHeap,MemoryOld,MemoryMetaspace,ProcessCPUUsage,SystemCPUUsage,ThreadCount',args=-w '7516192768,5368709120,314572800,75,80,225',args=-c '8589934592,6442450944,419430400,85,90,250'"
Re: Unable to get Apache monitoring over NCPA to work
Posted: Wed Jan 15, 2020 10:08 am
by mbellerue
Code: Select all
-t alfresco -P 5693 -v -M plugins/check_jvm.jar -q "args=-s service:jmx:rmi://ignored/jndi/rmi://10.102.75.70:50500/alfresco/jmxrmi,args=-u 'monitorRole ',args=-p 'SuperCraneInKCForQAECM2018',args=-t tomcat,args=-C 'MemorySimpleHeap,MemoryOld,MemoryMetaspace,ProcessCPUUsage,SystemCPUUsage,ThreadCount',args=-w '7516192768,5368709120,314572800,75,80,225',args=-c '8589934592,6442450944,419430400,85,90,250'"
Putting the -v right after the port like this should be fine.
Re: Unable to get Apache monitoring over NCPA to work
Posted: Wed Jan 15, 2020 2:12 pm
by dlukinski
mbellerue wrote:Code: Select all
-t alfresco -P 5693 -v -M plugins/check_jvm.jar -q "args=-s service:jmx:rmi://ignored/jndi/rmi://10.102.75.70:50500/alfresco/jmxrmi,args=-u 'monitorRole ',args=-p 'SuperCraneInKCForQAECM2018',args=-t tomcat,args=-C 'MemorySimpleHeap,MemoryOld,MemoryMetaspace,ProcessCPUUsage,SystemCPUUsage,ThreadCount',args=-w '7516192768,5368709120,314572800,75,80,225',args=-c '8589934592,6442450944,419430400,85,90,250'"
Putting the -v right after the port like this should be fine.
Here is the output
Connecting to:
https://10.102.75.70:5693/api/plugins/c ... InKCForQAE
An error occurred:
'HTTPError' object has no attribute 'reason'
Re: Unable to get Apache monitoring over NCPA to work
Posted: Wed Jan 15, 2020 4:36 pm
by mbellerue
That's odd. I don't see 'reason' specified anywhere in that command. Does this plugin work if you run it directly on the host with the same command line switches?
Re: Unable to get Apache monitoring over NCPA to work
Posted: Thu Jan 16, 2020 3:37 pm
by dlukinski
mbellerue wrote:That's odd. I don't see 'reason' specified anywhere in that command. Does this plugin work if you run it directly on the host with the same command line switches?
what would be the full command?
Re: Unable to get Apache monitoring over NCPA to work
Posted: Fri Jan 17, 2020 12:27 pm
by mbellerue
I'm not quite up on how to run Java files.
Code: Select all
check_jvm.jar args=-s service:jmx:rmi://ignored/jndi/rmi://10.102.75.70:50500/alfresco/jmxrmi,args=-u 'monitorRole ',args=-p 'SuperCraneInKCForQAECM2018',args=-t tomcat,args=-C 'MemorySimpleHeap,MemoryOld,MemoryMetaspace,ProcessCPUUsage,SystemCPUUsage,ThreadCount',args=-w '7516192768,5368709120,314572800,75,80,225',args=-c '8589934592,6442450944,419430400,85,90,250'
But that does bring up another point. We should check your ncpa.cfg file to make sure that there's a Java handler. Can you post your ncpa.cfg file?