Page 1 of 1

java monitoring in nagios XI using ncpa

Posted: Sun Aug 04, 2019 11:59 pm
Hi ,

i am reing to monitor java application on nagios XI,
i am getting below error.

(Service check timed out after 60.03 seconds)


i am using using jboss 6.3

Re: java monitoring in nagios XI using ncpa

Posted: Mon Aug 05, 2019 12:26 pm
by cdienger
What is the full command you're trying to run? Are you able to run it from the command line?

Re: java monitoring in nagios XI using ncpa

Posted: Mon Aug 05, 2019 11:01 pm
below is the command from core config.

-t token -P 5693 -M plugins/check_jvm.jar -q "args=-s service:jmx:rmi:///jndi/rmi://192.168.105.65:8088/jmxrmi,args=-u 'user',args=-p 'password',args=-t jboss,args=-C 'MemorySimpleHeap,MemoryMetaspace,ProcessCPUUsage,SystemCPUUsage,Uptime,ClassCount,ThreadCount',args=-w '17179869184,34359738368,50,70,1500000:,10000,150',args=-c '32212254720,68719476736,70,90,300000:,50000,190'" -v

Re: java monitoring in nagios XI using ncpa

Posted: Tue Aug 06, 2019 4:48 pm
by cdienger
Is 192.168.105.65 the IP address of the host where NCPA is installed or is that another host? If it is the same host, then try changing the command to connect to localhost instead. If it is a different host, make sure the NCPA server can connect to that machine:

Code: Select all

telnet 192.168.105.65 8088

Re: java monitoring in nagios XI using ncpa

Posted: Thu Aug 08, 2019 4:06 am
from nagios server i am able to telnet,

[root@localhost ~]# telnet 192.168.105.65 8088
Trying 192.168.105.65...
Connected to 192.168.105.65.
Escape character is '^]'.
^]
telnet> q
Connection closed.
[root@localhost ~]#

yes, 192.168.105.65 this is the server where ncpa is installed.

Re: java monitoring in nagios XI using ncpa

Posted: Thu Aug 08, 2019 1:55 pm
by cdienger
Does switching it to localhost instead work? Since you're using NCPA the XI server is contacting the client via that agent which then in turn runs check_jvm locally.

Another thing to try would be to configure the check so that XI makes a direct connection to the server on port 8088. See screenshot and https://assets.nagios.com/downloads/nag ... ios-XI.pdf.