Check_jmx plugin problem

Emmanuel Chanteloup manuchanteloup at gmail.com
Thu Apr 15 15:07:38 CEST 2010


Hi Paul,

I also tried with check_by_ssh, here is what I get :

 /usr/local/nagios/libexec/check_by_ssh -H apwebscp01 -l nagios -C
'/usr/local/nagios/libexec/check_jmx -U
service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -A HeapMemoryUsage -K
used -O java.lang:type=Memory'

Remote command execution failed: Exception in thread "main"
java.lang.NoClassDefFoundError: ch.syabru.nagios.NagiosJmxPlugin

I also tried to add " :

/usr/local/nagios/libexec/check_by_ssh -H apwebscp01 -l nagios -C
'/usr/local/nagios/libexec/check_jmx -U
service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -A HeapMemoryUsage -K
used -O "java.lang:type=Memory"'

Could not open pipe: /usr/bin/ssh -l nagios apwebscp01
'/usr/local/nagios/libexec/check_jmx -U
service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -A HeapMemoryUsage -K
used -O "java.lang:type=Memory"'

I think this one is due to -O which also is a check_by_ssh variable.

It is just driving me crazy :)

Thanks anyway,

Regards,

Emmanuel

2010/4/15 Paul WILLIS PSE 55499 <paul.willis at kent.pnn.police.uk>

>  Hi Emmanuel
>
> What user/group do you have set in /etc/xinet.d/nrpe? Are you sure that
> combination has all the rights it needs?
> Perhaps its worth setting it to root or putting an entry in the sudoers
> file to allow that user to run the command. It looks like
> it cannot read one of the java files, possibly jmxquery.jar?
>
>
> Regards
>
> Paul
>
>
> >>> Emmanuel Chanteloup <manuchanteloup at gmail.com> 15/04/10 10:28 >>>
>
> Hi,
>
> I tried with check_by_ssh, to give it a try :
>
> /usr/local/nagios/libexec/check_by_ssh -H apwebscp01 -l nagios -C
> "/usr/local/nagios/libexec/check_jmx -U
> service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O
> java.lang:type=Memory"
>
> Remote command execution failed: Exception in thread "main"
> java.lang.NoClassDefFoundError: ch.syabru.nagios.NagiosJmxPlugin
> ________________________________________________________________________
> [nagios at aporcl11g objects]$ /usr/local/nagios/libexec/check_by_ssh -H
> apwebscp01 -l nagios -C "/usr/local/nagios/libexec/check_jmx -U
> service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O
> 'java.lang:type=Memory'"
>
> Remote command execution failed: Exception in thread "main"
> java.lang.NoClassDefFoundError: ch.syabru.nagios.NagiosJmxPlugin
> ________________________________________________________________________
>
> [nagios at aporcl11g objects]$ /usr/local/nagios/libexec/check_by_ssh -H
> apwebscp01 -l nagios -C "/usr/local/nagios/libexec/check_jmx -U
> service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O
> '\java.lang:type=Memory'"
> Remote command execution failed: Exception in thread "main"
> java.lang.NoClassDefFoundError: ch.syabru.nagios.NagiosJmxPlugin
>
> Any help would be appreciated.
>
> Regards,
>
> Emmanuel
>
> 2010/4/13 Natxo Asenjo <natxo.asenjo at gmail.com>
>
>> On Tue, Apr 13, 2010 at 9:34 AM, Emmanuel Chanteloup
>> <manuchanteloup at gmail.com> wrote:
>> > command[check_jmx]=/usr/local/nagios/libexec/check_jmx -U
>> > service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O
>> java.lang:type=Memory
>> > -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used -vvvv -w 800000000
>> -c
>> > 1500000000
>>
>> ok, try this:
>>
>> command[check_jmx]="/usr/local/nagios/libexec/check_jmx -U
>> service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O
>> java.lang:type=Memory
>> -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used -vvvv -w 800000000
>> -c
>> 1500000000"
>>
>> that is, with inverted commas. If it doesn't work, try escaping the
>> uris like this:
>>
>> service:jmx:rmi:\/\/\/jndi/rmi:/\/\localhost:8999\/jmxrmi
>>
>> You may also try the developers list, maybe they can help you further.
>> Hope this helps
>>
>> --
>>  natxo
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100415/12459472/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list