Graph not generate. JMXEval plugin used by nrpe

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
edwardzg
Posts: 21
Joined: Fri Jan 10, 2014 5:11 am

Re: Graph not generate. JMXEval plugin used by nrpe

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Graph not generate. JMXEval plugin used by nrpe

Post 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?
Former Nagios employee
edwardzg
Posts: 21
Joined: Fri Jan 10, 2014 5:11 am

Re: Graph not generate. JMXEval plugin used by nrpe

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Graph not generate. JMXEval plugin used by nrpe

Post by abrist »

Yep. Either that, or try nsclient 0.3.9 as I have only seen this bug reported on 0.4.x installs.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
edwardzg
Posts: 21
Joined: Fri Jan 10, 2014 5:11 am

Re: Graph not generate. JMXEval plugin used by nrpe

Post by edwardzg »

With 0.3.9 version I got perfdata on Nagios server.

Thanks for clue abrist
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Graph not generate. JMXEval plugin used by nrpe

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
edwardzg
Posts: 21
Joined: Fri Jan 10, 2014 5:11 am

Re: Graph not generate. JMXEval plugin used by nrpe

Post by edwardzg »

Ok I'll report this.

Yeap, problem solved
Locked