Comments on: Monitoring Liferay with Nagios, Jolokia and JMX4Perl https://jguru.fi/monitoring-liferay-with-nagios-jolokia-and-jmx4perl.html?utm_source=rss&utm_medium=rss&utm_campaign=monitoring-liferay-with-nagios-jolokia-and-jmx4perl When you need a guru Thu, 09 Apr 2015 16:59:00 +0000 hourly 1 By: Mark Bednarski https://jguru.fi/monitoring-liferay-with-nagios-jolokia-and-jmx4perl.html#comment-6 Thu, 09 Apr 2015 16:59:00 +0000 http://javaguru.fi/?p=7#comment-6 In reply to Mika Koivisto.

This did the trick. Thank you very much!

]]>
By: Mika Koivisto https://jguru.fi/monitoring-liferay-with-nagios-jolokia-and-jmx4perl.html#comment-5 Thu, 09 Apr 2015 05:33:00 +0000 http://javaguru.fi/?p=7#comment-5 In reply to Mark Bednarski.

Hi Mark

It seems it’s missing few dependencies XML::Twig, XML::LibXML and Nagios::Plugin. You can install them via CPAN also or you can use APT which is what I usually prefer. I only use CPAN for perl modules not found as a debian package. Just run apt-get install libxml-twig-perl libxml-libxml-perl libnagios-plugin-perl and you should have those missing libs.

]]>
By: Mark Bednarski https://jguru.fi/monitoring-liferay-with-nagios-jolokia-and-jmx4perl.html#comment-4 Thu, 09 Apr 2015 01:27:00 +0000 http://javaguru.fi/?p=7#comment-4 Hi Mika

I tried to follow your explanations on my ubuntu 14.04 machine, but when I run:
cpan> install JMX::Jmx4Perl

Unfortunately I get the following error.
By any chance you have an idea what could have gone wrong?

Thanks
Mark

CPAN.pm: Building R/RO/ROLAND/jmx4perl-1.11.tar.gz

Warning: Prerequisite ‘XML::Twig => 0’ for ‘ROLAND/jmx4perl-1.11.tar.gz’ failed when processing ‘MIROD/XML-Twig-3.48.tar.gz’ with ‘make_test => NO one dependency not OK (XML::Parser); additionally test harness failed’. Continuing, but chances to succeed are limited.

Warning: Prerequisite ‘XML::LibXML => 0’ for ‘ROLAND/jmx4perl-1.11.tar.gz’ failed when processing ‘SHLOMIF/XML-LibXML-2.0118.tar.gz’ with ‘writemakefile => NO — No ‘Makefile’ created

‘. Continuing, but chances to succeed are limited.

Building jmx4perl

ROLAND/jmx4perl-1.11.tar.gz

./Build — OK

Running Build test

t/10_handler.t ……… ok

t/20_alias.t ……….. ok

t/30_request.t ……… ok

t/40_check_jmx4perl.t .. skipped: Nagios::Plugin not installed

t/50_config.t ………. ok

t/60_parse_name.t …… ok

t/70_pod_syntax.t …… skipped: these tests are for release candidate testing

All tests successful.

Files=7, Tests=66, 1 wallclock secs ( 0.04 usr 0.00 sys + 0.50 cusr 0.05 csys = 0.59 CPU)

Result: PASS

ROLAND/jmx4perl-1.11.tar.gz

Tests succeeded but 3 dependencies missing (XML::Twig,XML::LibXML,Nagios::Plugin)

ROLAND/jmx4perl-1.11.tar.gz

[dependencies] — NA

Running Build install

make test had returned bad status, won’t install without force

Could not read metadata file. Falling back to other methods to determine prerequisites

Failed during this command:

SHLOMIF/XML-LibXML-2.0118.tar.gz : writemakefile NO — No ‘Makefile’ created

TODDR/XML-Parser-2.44.tar.gz : make NO

MIROD/XML-Twig-3.48.tar.gz : make_test NO one dependency not OK (XML::Parser); additionally test harness failed

ROLAND/jmx4perl-1.11.tar.gz : make_test NO 3 dependencies missing (XML::Twig,XML::LibXML,Nagios::Plugin

]]>