REDHAT 下安装Jmx4perl 用于Nagios监控JAVA虚拟机状态

alex 安装评论阅读模式

在我的环境中需要安装以下的perl模块,可能你的和我不一样,不一样请自行解决

如果你的服务器能上网应该很好解决使用cpan进行在先安装,我的服务器不能上外网,智能悲催的自己安装,折腾了将近一天。我把我下载的模块分享出来,这里面已经带Jmx4perl软件了。安装不用说,基本都是以下步骤。如不是请自行查阅README或软件中的相关说明文件,模块下载地址:链接: https://pan.baidu.com/s/1c2MYwm8
密码: sy37

perl Makefile.PL

Make

Make install

 
 

REDHAT 下安装Jmx4perl 用于Nagios监控JAVA虚拟机状态

 
 

- ERROR: Sys::SigAction is not installed

- ERROR: Digest::SHA1 is not installed

- ERROR: Archive::Zip is not installed

- ERROR: Crypt::Blowfish_PP is not installed

- ERROR: Term::ProgressBar is not installed

- ERROR: IO::Socket::Multicast is not installed

- ERROR: File::SearchPath is not installed

- ERROR: Term::Size is not installed

- ERROR: Term::ShellUI is not installed

- ERROR: Term::ReadLine::Gnu is not installed

- ERROR: Config::General is not installed

- ERROR: Monitoring::Plugin is not installed

- ERROR: Module::Find is not installed

- ERROR: XML::LibXML is not installed

- ERROR: JSON is not installed

- ERROR: Term::Clui is not installed

 
 

如果执行下面的命令出现上面的类是的提示,一定先解决完相关依赖,

 
 

[root@nagios jmx4perl-1.12]# perl Build.PL

 
 

Jmx4Perl comes with a set of supporting scripts, which

are not necessarily required for using JMX::Jmx4Perl

programmatically.

 
 

jmx4perl

========

 
 

jmx4perl is a command line utility for accessing Jolokia agents

(www.jolokia.org). It can be used for script based exploration

and easy inspection of the JMX space.

 
 

Install 'jmx4perl' ? (y/n) [y ]

y

 
 

check_jmx4perl

==============

 
 

check_jmx4perl is a full featured Nagios Plugin (www.nagios.org) for

monitoring JEE and other Java-servers.

 
 

Install 'check_jmx4perl' ? (y/n) [y ]

y

 
 

cacti_jmx4perl

==============

 
 

cacti_jmx4perl is a script which can be used as a Cacti

(www.cacti.net) plugin.

 
 

Install 'cacti_jmx4perl' ? (y/n) [y ]

y

 
 

j4psh

=====

 
 

j4psh is an interactive JMX shell with context sensitive command line

completion. It uses JMX::Jmx4Perl for connecting to the JMX backend

and has quite some Perl module dependencies.

 
 

Install 'j4psh' ? (y/n) [y ]

y

 
 

jolokia

=======

 
 

jolokia is an utility which helps in downloading

and managing the Jolokia agents (www.jolokia.org), which

are required on the server side for using jmx4perl.

 
 

Install 'jolokia' ? (y/n) [y ]

y

Checking whether your kit is complete...

Looks good

 
 

Checking prerequisites...

Looks good

 
 

Creating new 'Build' script for 'jmx4perl' version '1.12'

[root@nagios jmx4perl-1.12]#

 
 

这个报错,README文档已经说明了需要安装 Module::Build 0.36版本以上

注意:如果是后更新的模块,需要重新执行Build动作

[root@nagios jmx4perl-1.12]# ./Build installdeps

No action 'installdeps' defined, try running the 'help' action.

 
 

 
 

[root@nagios jmx4perl-1.12]# ./Build installdeps

All prerequisites satisfied

[root@nagios jmx4perl-1.12]# ./Build

Building jmx4perl

[root@nagios jmx4perl-1.12]# ./Build test

t/10_handler.t ......... ok

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

t/30_request.t ......... ok

t/40_check_jmx4perl.t .. skipped: Monitoring::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, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.35 cusr 0.06 csys = 0.45 CPU)

Result: PASS

[root@nagios jmx4perl-1.12]# ./Build install

Building jmx4perl

Installing /usr/local/share/man/man1/check_jmx4perl.1

Installing /usr/local/share/man/man1/jolokia.1

Installing /usr/local/share/man/man1/j4psh.1

Installing /usr/local/share/man/man1/cacti_jmx4perl.1

Installing /usr/local/share/man/man1/jmx4perl.1

Installing /usr/local/share/perl5/JMX/Jmx4Perl.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Util.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/J4psh.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Alias.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Response.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Agent.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Config.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Manual.pod

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Request.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Nagios/CactiJmx4Perl.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Nagios/CheckJmx4Perl.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Nagios/SingleCheck.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Nagios/MessageHandler.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/J4psh/Shell.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/J4psh/ServerHandler.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/J4psh/CompletionHandler.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/J4psh/CommandHandler.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/J4psh/Command.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/J4psh/Command/MBean.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/J4psh/Command/Global.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/J4psh/Command/Server.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Agent/UserAgent.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Agent/Jolokia/DownloadAgent.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Agent/Jolokia/Logger.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Agent/Jolokia/Meta.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Agent/Jolokia/ArtifactHandler.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Agent/Jolokia/WebXmlHandler.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Agent/Jolokia/Verifier.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Agent/Jolokia/Verifier/OpenPGPVerifier.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Agent/Jolokia/Verifier/ChecksumVerifier.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Agent/Jolokia/Verifier/PGPKey.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Agent/Jolokia/Verifier/MD5Verifier.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Agent/Jolokia/Verifier/GnuPGVerifier.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Agent/Jolokia/Verifier/SHA1Verifier.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Alias/Object.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Product/Geronimo.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Product/Jetty.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Product/Hadoop.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Product/Tomcat.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Product/Terracotta.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Product/Unknown.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Product/Resin.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Product/Weblogic.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Product/BaseHandler.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Product/ActiveMQ.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Product/Websphere.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Product/Glassfish.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Product/JBoss.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Product/SpringDM.pm

Installing /usr/local/share/perl5/JMX/Jmx4Perl/Product/Jonas.pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Agent::Jolokia::DownloadAgent.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::J4psh::Shell.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Agent.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Agent::Jolokia::Verifier.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Nagios::CactiJmx4Perl.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Agent::Jolokia::Verifier::MD5Verifier.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Agent::Jolokia::Meta.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Config.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Product::Tomcat.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Product::BaseHandler.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::J4psh::CompletionHandler.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Product::Glassfish.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::J4psh::ServerHandler.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Product::SpringDM.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::J4psh::CommandHandler.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Product::Websphere.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Response.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::J4psh::Command::MBean.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Agent::Jolokia::Verifier::GnuPGVerifier.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Product::Geronimo.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Alias.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::J4psh.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Agent::Jolokia::Logger.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Product::JBoss.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Agent::Jolokia::WebXmlHandler.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Agent::Jolokia::ArtifactHandler.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Agent::Jolokia::Verifier::OpenPGPVerifier.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Product::Weblogic.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Product::Resin.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Alias::Object.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Nagios::CheckJmx4Perl.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Product::ActiveMQ.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Agent::Jolokia::Verifier::SHA1Verifier.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Product::Terracotta.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Manual.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Agent::UserAgent.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Product::Jetty.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Util.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::J4psh::Command::Global.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Product::Jonas.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Request.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Product::Hadoop.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Nagios::SingleCheck.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::J4psh::Command::Server.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Nagios::MessageHandler.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::J4psh::Command.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Agent::Jolokia::Verifier::ChecksumVerifier.3pm

Installing /usr/local/share/man/man3/JMX::Jmx4Perl::Product::Unknown.3pm

Installing /usr/local/bin/check_jmx4perl

Installing /usr/local/bin/jolokia

Installing /usr/local/bin/cacti_jmx4perl

Installing /usr/local/bin/j4psh

Installing /usr/local/bin/jmx4perl

[root@nagios jmx4perl-1.12]#

 
 

 
 

 
 

 
 

 
 

文章末尾固定信息

 
alex
  • 本文由 alex 发表于 2017年9月2日 16:01:19
  • 转载请务必保留本文链接:https://www.qnjslm.com/ITHelp/224.html
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定