Page 2 of 2

Re: Graph not generate. JMXEval plugin used by nrpe

Posted: Wed Apr 23, 2014 9:00 am
by edwardzg
Only for “Full path” this changes works on both machines. Next i change check_jmxeval line in .ini file to

Code: Select all

check_jmxeval = scripts\check_jmxeval.bat
but still on Windows host I get:

Code: Select all

# C:\Program Files\NSClient++\scripts>check_jmxeval.bat
JMXEval MemHeap OK - heapMemoryUsedPercent is 28.56 | heapMemoryUsedPercent=28.56;92;95 time=0.0s
and on Nagios server:

Code: Select all

# /usr/local/nagios/libexec/check_nrpe -H host_IP -c check_jmxeval
JMXEval MemHeap OK - heapMemoryUsedPercent is 28.68
For “without scripts”
On host:

Code: Select all

# C:\Program Files\NSClient++\scripts>check_jmxeval.bat
JMXEval MemHeap OK - heapMemoryUsedPercent is 29.56 | heapMemoryUsedPercent=29.56;92;95 time=0.0s
On server:

Code: Select all

# /usr/local/nagios/libexec/check_nrpe -H host_IP -c check_jmxeval2
Error: Can not read configuration file: C:\Program Files\NSClient++\.\jmxeval_jbossas.xml
For “with scripts”
On serwer:

Code: Select all

# /usr/local/nagios/libexec/check_nrpe -H host_IP -c check_jmxeval
JMXEval MemHeap OK - heapMemoryUsedPercent is 36.08
On host:

Code: Select all

# C:\Program Files\NSClient++\scripts>check_jmxeval.bat
Error: Can not read configuration file: C:\Program Files\NSClient++\scripts\scripts\jmxeval_jbossas.xml
Previously, I thought that it was not important additional information but now I do not know. As a result, in addition to I always get something like:

Code: Select all

2014-04-23 13:51:08 org.xnio.Xnio <clinit>
INFO: XNIO Version 3.0.3.GA
2014-04-23 13:51:08 org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.0.3.GA
2014-04-23 13:51:08 org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 3.2.3.GA
As a result of run check_jmxeval.bat I gets something like:

Code: Select all

C:\Program Files\NSClient++\scripts>check_jmxeval.bat
2014-04-23 14:58:30 org.xnio.Xnio <clinit>
INFO: XNIO Version 3.0.3.GA
2014-04-23 14:58:30 org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.0.3.GA
2014-04-23 14:58:30 org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 3.2.3.GA
JMXEval MemHeap OK - heapMemoryUsedPercent is 28.56 | heapMemoryUsedPercent=28.56;92;95 time=0.0s
This change anything?


Regards

Re: Graph not generate. JMXEval plugin used by nrpe

Posted: Wed Apr 23, 2014 4:46 pm
by tmcdonald
It looks like NSClient has an issue with spaces around the | perfdata separator:

http://nsclient.org/nscp/discussion/message/2889

Unfortunately since the check plugin is a JAR we can't edit it ourselves. If you're handy with powershell of VBS you can maybe build a wrapper script to remove the spaces. Otherwise check with the NSClient author and see if he has a fix.

Now that we mention it, what version of NSClient are you running?

Re: Graph not generate. JMXEval plugin used by nrpe

Posted: Thu Apr 24, 2014 9:19 am
by edwardzg
NSClient version: 0.4.0.172-x64
Nagios version: 3.5.1

I'm not to handy with powershell or VBS :roll: I will ask NSClient author about it


Regards

Re: Graph not generate. JMXEval plugin used by nrpe

Posted: Thu Apr 24, 2014 12:56 pm
by abrist
Yep. Either that, or try nsclient 0.3.9 as I have only seen this bug reported on 0.4.x installs.

Re: Graph not generate. JMXEval plugin used by nrpe

Posted: Fri Apr 25, 2014 7:58 am
by edwardzg
With 0.3.9 version I got perfdata on Nagios server.

Thanks for clue abrist

Re: Graph not generate. JMXEval plugin used by nrpe

Posted: Fri Apr 25, 2014 9:52 am
by abrist
edwardzg wrote:With 0.3.9 version I got perfdata on Nagios server.

Thanks for clue abrist
No problem. There is a parse issue with some versions of NSClient 0.4.x where a space immediately proceeding the performance pipe causes the perfdata to truncate. I guess you may want to use 0.3.9 for the time being and I would suggest reporting this on the NSClient site.

There is a good reason why we still consider 0.4.x version to be unstable in XI.

Can we lock this thread up?

Re: Graph not generate. JMXEval plugin used by nrpe

Posted: Fri Apr 25, 2014 12:31 pm
by edwardzg
Ok I'll report this.

Yeap, problem solved