Jboss plugin, problem connection

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hdurans
Posts: 27
Joined: Wed Nov 20, 2013 11:02 am

Jboss plugin, problem connection

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Jboss plugin, problem connection

Post 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:'
hdurans
Posts: 27
Joined: Wed Nov 20, 2013 11:02 am

Re: Jboss plugin, problem connection

Post 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,
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Jboss plugin, problem connection

Post 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
Locked