Unable to get Apache monitoring over NCPA to work

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Unable to get Apache monitoring over NCPA to work

Post 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
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Unable to get Apache monitoring over NCPA to work

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Unable to get Apache monitoring over NCPA to work

Post 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'"
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Unable to get Apache monitoring over NCPA to work

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Unable to get Apache monitoring over NCPA to work

Post 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'
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Unable to get Apache monitoring over NCPA to work

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Unable to get Apache monitoring over NCPA to work

Post 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?
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Unable to get Apache monitoring over NCPA to work

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked