Check_jmx plugin problem

Emmanuel Chanteloup manuchanteloup at gmail.com
Tue Apr 13 08:39:13 CEST 2010


The thing I do not understand is why I can run it directly with my nagios
account :

[nagios at myserver ~]$ /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
JMX OK
HeapMemoryUsage.used=593227424{committed=1036189696;init=1073741824;max=1036189696;used=593227424}

and it doesn't work with NRPE, knowing that NRPE is using the nagios account
!

[nagios at myserver ~]$ /usr/local/nagios/libexec/check_nrpe -H localhost -c
check_jmx
NRPE: Unable to read output

Weird. I guess it is concerned by the environment variables or something
like that. I tried to add the JAVA_HOME parameter in the check_jmx script,
but it changed nothing.

If anyone has an idea, he is welcome.

Thank you,

Regards,

Emmanuel

2010/4/12 Emmanuel Chanteloup <manuchanteloup at gmail.com>

> I tried it too. I just get one more line telling the SSL access, that's it
> :
>
> example :
>
> Apr 12 17:34:26 myserver xinetd[14625]: START: nrpe pid=16717 from=10.1.2.1
> Apr 12 17:34:26 myserver nrpe[16717]: INFO: SSL/TLS initialized. All
> network traffic will be encrypted.
> Apr 12 17:34:26 myserver xinetd[14625]: EXIT: nrpe status=0 pid=16717
> duration=0(sec)
>
> 2010/4/12 Natxo Asenjo <natxo.asenjo at gmail.com>
>
>> On Mon, Apr 12, 2010 at 4:00 PM, Emmanuel Chanteloup
>>
>> <manuchanteloup at gmail.com> wrote:
>> > Hi,
>> >
>> > Yes of course it is :
>> >
>> > [root at myserver libexec]# ./check_nrpe -H localhost
>> > NRPE v2.12
>> >
>> > I have a lot of other plugins running ok on this server (check_users,
>> > check_procs ...).
>>
>> ok. Have you tried enabling the debug information on the client (iirc
>> debug=1 instead of 0), reload the nrpe daemon and see if you get more
>> info.
>>
>> --
>> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100413/afbc6d05/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