Page 1 of 1

Jboss plugin, problem connection

Posted: Wed Jun 16, 2021 9:27 am
by hdurans
Hi,

I'm trying to use the jboss/wildfly plugin, but I don't know which is the error.

when I execute the plugin this spend more than 30 seconds in answer to this error
UNKNOWN: Failed to connect: Operation failed with status WAITING

Code: Select all

# /usr/bin/java -Djava.class.path=/usr/local/nagios/libexec/jboss-client.jar:/usr/local/nagios/libexec/check_jvm.jar GenericASCheck -s 'service:jmx:remote+http://192.168.95.44:9990' -u user -p 'XXXXX' -t jboss -C 'MemorySimpleHeap,MemoryEden,MemoryMetaspace,ProcessCPUUsage,SystemCPUUsage,Uptime' -w '17179869184,,34359738368,50,70,1500000:' -c '32212254720,,68719476736,70,90,300000:'
UNKNOWN: Failed to connect: Operation failed with status WAITING
Please, if you can help me identify the error

Re: Jboss plugin, problem connection

Posted: Wed Jun 16, 2021 6:31 pm
by ssax
I had to use the jboss-cli-client.jar instead of the jboss-client.jar to get it to work, try putting jboss-cli-client.jar from the jboss server in /usr/local/nagios/libexec on the XI server, then run these commands to test it:

Code: Select all

su - nagios
cd /usr/local/nagios/libexec
java -Djava.class.path=/usr/local/nagios/libexec/jboss-cli-client.jar:/usr/local/nagios/libexec/check_jvm.jar GenericASCheck -s 'service:jmx:remote+http://192.168.95.4:9990' -u user -p 'XXXXX' -t jboss -C 'MemorySimpleHeap,MemoryMetaspace,ProcessCPUUsage,SystemCPUUsage,Uptime' -w '17179869184,34359738368,50,70,1500000:' -c '32212254720,68719476736,70,90,300000:'

Re: Jboss plugin, problem connection

Posted: Fri Jun 25, 2021 10:38 am
by hdurans
ssax wrote:I had to use the jboss-cli-client.jar instead of the jboss-client.jar to get it to work, try putting jboss-cli-client.jar from the jboss server in /usr/local/nagios/libexec on the XI server, then run these commands to test it:

Code: Select all

su - nagios
cd /usr/local/nagios/libexec
java -Djava.class.path=/usr/local/nagios/libexec/jboss-cli-client.jar:/usr/local/nagios/libexec/check_jvm.jar GenericASCheck -s 'service:jmx:remote+http://192.168.95.4:9990' -u user -p 'XXXXX' -t jboss -C 'MemorySimpleHeap,MemoryMetaspace,ProcessCPUUsage,SystemCPUUsage,Uptime' -w '17179869184,34359738368,50,70,1500000:' -c '32212254720,68719476736,70,90,300000:'
Hi

thanks for your answer,

I try with jboss-cli-client.jar but I had the same message

Code: Select all

$ java -Djava.class.path=/usr/local/nagios/libexec/jboss-cli-client.jar:/usr/local/nagios/libexec/check_jvm.jar GenericASCheck -s 'service:jmx:remote+http://192.168.95.44:9990' -u XXX -p 'XXX' -t jboss -C 'MemorySimpleHeap,MemoryMetaspace,ProcessCPUUsage,SystemCPUUsage,Uptime' -w '17179869184,34359738368,50,70,1500000:' -c '32212254720,68719476736,70,90,300000:'
UNKNOWN: Failed to connect: Operation failed with status WAITING
it is possible to do the connection validation in another way,

Re: Jboss plugin, problem connection

Posted: Fri Jun 25, 2021 2:52 pm
by ssax
Does that file exist?

Code: Select all

ls -l /usr/local/nagios/libexec/jboss-cli-client.jar
What specifically are you trying to monitor?

If they are using JMX you can try using this:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf