-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
found during monitoring system migration, potentially later version will fix this, at least looks like 1.13 is available: https://github.com/rhuss/jmx4perl/releases
check_jmx4perl 1.11 [http://www.jmx4perl.org] (bundled)
/omd/versions/default/lib/monitoring-plugins/check_jmx4perl --url "https://<HOST>:<PORT>/app/manage/jolokia" --config=/opt/omd/sites/<SITE>/etc/naemon/misc/jmx4perl/jmx4perl.cfg --check 'memory' -v
Result fetched in 58.353 ms:
$VAR1 = [
bless( {
'status' => 500,
'request' => [
bless( {
'attribute' => 'HeapMemoryUsage',
'type' => 'read',
'mbean' => 'java.lang:type=Memory',
'path' => 'used'
}, 'JMX::Jmx4Perl::Request' ),
bless( {
'attribute' => 'HeapMemoryUsage',
'type' => 'read',
'path' => 'max',
'mbean' => 'java.lang:type=Memory'
}, 'JMX::Jmx4Perl::Request' ),
bless( {
'path' => 'used',
'mbean' => 'java.lang:type=Memory',
'type' => 'read',
'attribute' => 'NonHeapMemoryUsage'
}, 'JMX::Jmx4Perl::Request' ),
bless( {
'type' => 'read',
'attribute' => 'NonHeapMemoryUsage',
'mbean' => 'java.lang:type=Memory',
'path' => 'max'
}, 'JMX::Jmx4Perl::Request' )
],
'error' => 'Error while fetching https://<HOST>:<PORT>/app/manage/jolokia/ :
500 Can\'t connect to <HOST>:<PORT> (Connection refused)
',
'value' => 'Can\'t connect to <HOST>:<PORT> (Connection refused)
Connection refused at /omd/sites/<SITE>/lib/perl5/lib/perl5/LWP/Protocol/http.pm line 50.
',
'stacktrace' => undef
}, 'JMX::Jmx4Perl::Response' ),
undef,
undef,
undef
];
UNKNOWN - 2 of 2 checks failed [2 UNKNOWN (Heap,Non-Heap)]
[1] UNKNOWN Error: 500 Error while fetching https://<HOST>:<PORT>/app/manage/jolokia/ :
[2] UNKNOWN Can't call method "is_error" on an undefined value at /omd/sites/<SITE>/lib/perl5/lib/perl5/JMX/Jmx4Perl/Nagios/SingleCheck.pm line 444.
check_jmx4perl 1.10 [http://www.jmx4perl.org]
/usr/local/bin/check_jmx4perl --url "https://<HOST>:<PORT>/app/manage/jolokia" --config=/etc/nagios/misc/jmx4perl/jmx4perl.cfg --check 'memory' -v
Result fetched in 46.739 ms:
$VAR1 = [
bless( {
'request' => [
bless( {
'attribute' => 'HeapMemoryUsage',
'mbean' => 'java.lang:type=Memory',
'path' => 'used',
'type' => 'read'
}, 'JMX::Jmx4Perl::Request' ),
bless( {
'attribute' => 'HeapMemoryUsage',
'mbean' => 'java.lang:type=Memory',
'path' => 'max',
'type' => 'read'
}, 'JMX::Jmx4Perl::Request' ),
bless( {
'attribute' => 'NonHeapMemoryUsage',
'mbean' => 'java.lang:type=Memory',
'path' => 'used',
'type' => 'read'
}, 'JMX::Jmx4Perl::Request' ),
bless( {
'attribute' => 'NonHeapMemoryUsage',
'mbean' => 'java.lang:type=Memory',
'path' => 'max',
'type' => 'read'
}, 'JMX::Jmx4Perl::Request' )
],
'stacktrace' => undef,
'value' => '500 Connect failed: connect: Connection refused; Connection refused
',
'status' => 500,
'error' => 'Error while fetching https://<HOST>:<PORT>/app/manage/jolokia/ :
500 Connect failed: connect: Connection refused; Connection refused
'
}, 'JMX::Jmx4Perl::Response' ),
undef,
undef,
undef
];
UNKNOWN - Error: 500 Error while fetching https://<HOST>:<PORT>/app/manage/jolokia/ :
500 Connect failed: connect: Connection refused; Connection refused
Metadata
Metadata
Assignees
Labels
No labels