Monitoring VMware With Nagios XI
Monitoring VMware With Nagios XI
Hi Team,
I have executed below commands but struck with last command here while doing monitoring VMware with Nagios XI,could you please help us to resolve here.
RHEL 7.x | CentOS 7.x | Oracle Linux 7.x
yum install -y libxml2-devel xml2 libuuid-devel perl-XML-LibXML perl-Env
export PERL_MM_USE_DEFAULT=1
cpan -i App::cpanminus
cpanm --notest Module::Build Crypt::SSLeay
root@hpsatvld5302:~ # yum install -y libxml2-devel xml2 libuuid-devel perl-XML-LibXML perl-Env
Loaded plugins: langpacks
UENG.2019.3.0.RHEL | 3.7 kB 00:00:00
nagios-base | 2.9 kB 00:00:00
nagiosxi-deps | 2.9 kB 00:00:00
Package libxml2-devel-2.9.1-6.el7_2.3.x86_64 already installed and latest version
No package xml2 available.
Package libuuid-devel-2.23.2-59.el7_6.1.x86_64 already installed and latest version
Package 1:perl-XML-LibXML-2.0018-5.el7.x86_64 already installed and latest version
Package perl-Env-1.04-2.el7.noarch already installed and latest version
Nothing to do
root@hpsatvld5302:~ # export PERL_MM_USE_DEFAULT=1
root@hpsatvld5302:~ # cpan -i App::cpanminus
Reading '/root/.cpan/Metadata'
Database was generated on Thu, 24 Oct 2019 17:17:03 GMT
App::cpanminus is up to date (1.7044).
root@hpsatvld5302:~ #
root@hpsatvld5302:~ #
root@hpsatvld5302:~ # cpanm --notest Module::Build Crypt::SSLeay
! Finding Module::Build on cpanmetadb failed.
! Finding Module::Build () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Module::Build
! Finding Crypt::SSLeay on cpanmetadb failed.
! Finding Crypt::SSLeay () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Crypt::SSLeay
root@hpsatvld5302:~ # timed out waiting for input: auto-logout
ed859404@hpsatvld5302:~ $ sudo su -
Last login: Fri Oct 25 03:37:32 CDT 2019 on pts/0
root@hpsatvld5302:~ #
I have executed below commands but struck with last command here while doing monitoring VMware with Nagios XI,could you please help us to resolve here.
RHEL 7.x | CentOS 7.x | Oracle Linux 7.x
yum install -y libxml2-devel xml2 libuuid-devel perl-XML-LibXML perl-Env
export PERL_MM_USE_DEFAULT=1
cpan -i App::cpanminus
cpanm --notest Module::Build Crypt::SSLeay
root@hpsatvld5302:~ # yum install -y libxml2-devel xml2 libuuid-devel perl-XML-LibXML perl-Env
Loaded plugins: langpacks
UENG.2019.3.0.RHEL | 3.7 kB 00:00:00
nagios-base | 2.9 kB 00:00:00
nagiosxi-deps | 2.9 kB 00:00:00
Package libxml2-devel-2.9.1-6.el7_2.3.x86_64 already installed and latest version
No package xml2 available.
Package libuuid-devel-2.23.2-59.el7_6.1.x86_64 already installed and latest version
Package 1:perl-XML-LibXML-2.0018-5.el7.x86_64 already installed and latest version
Package perl-Env-1.04-2.el7.noarch already installed and latest version
Nothing to do
root@hpsatvld5302:~ # export PERL_MM_USE_DEFAULT=1
root@hpsatvld5302:~ # cpan -i App::cpanminus
Reading '/root/.cpan/Metadata'
Database was generated on Thu, 24 Oct 2019 17:17:03 GMT
App::cpanminus is up to date (1.7044).
root@hpsatvld5302:~ #
root@hpsatvld5302:~ #
root@hpsatvld5302:~ # cpanm --notest Module::Build Crypt::SSLeay
! Finding Module::Build on cpanmetadb failed.
! Finding Module::Build () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Module::Build
! Finding Crypt::SSLeay on cpanmetadb failed.
! Finding Crypt::SSLeay () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Crypt::SSLeay
root@hpsatvld5302:~ # timed out waiting for input: auto-logout
ed859404@hpsatvld5302:~ $ sudo su -
Last login: Fri Oct 25 03:37:32 CDT 2019 on pts/0
root@hpsatvld5302:~ #
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Monitoring VMware With Nagios XI
Hello @nagedre,
It looks like your not able to get all of the required packages. Please post the output of the following command.
Documentation: Monitoring VMware with Nagios XI
It looks like your not able to get all of the required packages. Please post the output of the following command.
Code: Select all
yum repolist -v
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Monitoring VMware With Nagios XI
root@hpsatvld5302:~ # yum repolist -v
Not loading "rhnplugin" plugin, as it is disabled
Loading "langpacks" plugin
Adding en_US.UTF-8 to language list
Config time: 0.020
Yum version: 3.4.3
Setting up Package Sacks
pkgsack time: 0.030
Repo-id : UENG.2019.3.0.RHEL/7Server/x86_64
Repo-name : UENG/DXC ue custom quarterly patchbundle repo for RHEL 2019.3.0 7Server-x86_64
Repo-revision: 1571917945
Repo-updated : Thu Oct 24 06:55:23 2019
Repo-pkgs : 17,492
Repo-size : 17 G
Repo-baseurl : http://10.200.1.254/repo/UENG/2019.3.0/ ... ver/x86_64
Repo-expire : 21,600 second(s) (last: Fri Oct 25 03:38:17 2019)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/UENG.2019.3.0.RHEL.repo
Repo-id : nagios-base
Repo-name : Nagios
Repo-revision: 1571913730
Repo-updated : Thu Oct 24 05:42:23 2019
Repo-pkgs : 96
Repo-size : 551 M
Repo-baseurl : http://10.200.1.254/repo/NAGIOS/7/nagios-base/
Repo-expire : 21,600 second(s) (last: Fri Oct 25 03:38:17 2019)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/nagios-7.repo
Repo-id : nagiosxi-deps
Repo-name : Nagios XI Dependencies
Repo-revision: 1571913729
Repo-updated : Thu Oct 24 05:42:10 2019
Repo-pkgs : 31
Repo-size : 14 M
Repo-baseurl : http://10.200.1.254/repo/NAGIOS/7/nagiosxi-deps/
Repo-expire : 21,600 second(s) (last: Fri Oct 25 03:38:17 2019)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/nagios-7.repo
repolist: 17,619
root@hpsatvld5302:~ #
Not loading "rhnplugin" plugin, as it is disabled
Loading "langpacks" plugin
Adding en_US.UTF-8 to language list
Config time: 0.020
Yum version: 3.4.3
Setting up Package Sacks
pkgsack time: 0.030
Repo-id : UENG.2019.3.0.RHEL/7Server/x86_64
Repo-name : UENG/DXC ue custom quarterly patchbundle repo for RHEL 2019.3.0 7Server-x86_64
Repo-revision: 1571917945
Repo-updated : Thu Oct 24 06:55:23 2019
Repo-pkgs : 17,492
Repo-size : 17 G
Repo-baseurl : http://10.200.1.254/repo/UENG/2019.3.0/ ... ver/x86_64
Repo-expire : 21,600 second(s) (last: Fri Oct 25 03:38:17 2019)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/UENG.2019.3.0.RHEL.repo
Repo-id : nagios-base
Repo-name : Nagios
Repo-revision: 1571913730
Repo-updated : Thu Oct 24 05:42:23 2019
Repo-pkgs : 96
Repo-size : 551 M
Repo-baseurl : http://10.200.1.254/repo/NAGIOS/7/nagios-base/
Repo-expire : 21,600 second(s) (last: Fri Oct 25 03:38:17 2019)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/nagios-7.repo
Repo-id : nagiosxi-deps
Repo-name : Nagios XI Dependencies
Repo-revision: 1571913729
Repo-updated : Thu Oct 24 05:42:10 2019
Repo-pkgs : 31
Repo-size : 14 M
Repo-baseurl : http://10.200.1.254/repo/NAGIOS/7/nagiosxi-deps/
Repo-expire : 21,600 second(s) (last: Fri Oct 25 03:38:17 2019)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/nagios-7.repo
repolist: 17,619
root@hpsatvld5302:~ #
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Monitoring VMware With Nagios XI
Hello,
You'll need to add the EPEl repo and then try installing the requirements again. If you get any errors, post them to the thread.
See: https://fedoraproject.org/wiki/EPEL
You'll need to add the EPEl repo and then try installing the requirements again. If you get any errors, post them to the thread.
See: https://fedoraproject.org/wiki/EPEL
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Monitoring VMware With Nagios XI
root@hpsatvld5302:/tmp # yum -y install epel-release-latest-7.noarch.rpm
Loaded plugins: langpacks
Examining epel-release-latest-7.noarch.rpm: epel-release-7-11.noarch
Marking epel-release-latest-7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution
UENG.2019.3.0.RHEL/7Server/x86_64 | 3.7 kB 00:00:00
nagios-base | 2.9 kB 00:00:00
nagiosxi-deps | 2.9 kB 00:00:00
Dependencies Resolved
======================================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================================
Installing:
epel-release noarch 7-11 /epel-release-latest-7.noarch 24 k
Transaction Summary
======================================================================================================================================================
Install 1 Package
Total size: 24 k
Installed size: 24 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-11.noarch 1/1
Verifying : epel-release-7-11.noarch 1/1
Installed:
epel-release.noarch 0:7-11
Complete!
root@hpsatvld5302:/tmp #
Loaded plugins: langpacks
Examining epel-release-latest-7.noarch.rpm: epel-release-7-11.noarch
Marking epel-release-latest-7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution
UENG.2019.3.0.RHEL/7Server/x86_64 | 3.7 kB 00:00:00
nagios-base | 2.9 kB 00:00:00
nagiosxi-deps | 2.9 kB 00:00:00
Dependencies Resolved
======================================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================================
Installing:
epel-release noarch 7-11 /epel-release-latest-7.noarch 24 k
Transaction Summary
======================================================================================================================================================
Install 1 Package
Total size: 24 k
Installed size: 24 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-11.noarch 1/1
Verifying : epel-release-7-11.noarch 1/1
Installed:
epel-release.noarch 0:7-11
Complete!
root@hpsatvld5302:/tmp #
Re: Monitoring VMware With Nagios XI
root@hpsatvld5302:/tmp # yum install -y libxml2-devel xml2 libuuid-devel perl-XML-LibXML perl-Env
Loaded plugins: langpacks
UENG.2019.3.0.RHEL | 3.7 kB 00:00:00
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable <repoid>
or
subscription-manager repos --disable=<repoid>
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
root@hpsatvld5302:/tmp #
root@hpsatvld5302:/tmp #
root@hpsatvld5302:/tmp #
root@hpsatvld5302:/tmp # export PERL_MM_USE_DEFAULT=1
root@hpsatvld5302:/tmp #
root@hpsatvld5302:/tmp #
root@hpsatvld5302:/tmp #
root@hpsatvld5302:/tmp # cpan -i App::cpanminus
Reading '/root/.cpan/Metadata'
Database was generated on Fri, 25 Oct 2019 22:29:02 GMT
App::cpanminus is up to date (1.7044).
root@hpsatvld5302:/tmp #
root@hpsatvld5302:/tmp #
root@hpsatvld5302:/tmp # cpanm --notest Module::Build Crypt::SSLeay
! Finding Module::Build on cpanmetadb failed.
! Finding Module::Build () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Module::Build
! Finding Crypt::SSLeay on cpanmetadb failed.
! Finding Crypt::SSLeay () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Crypt::SSLeay
root@hpsatvld5302:/tmp #
Loaded plugins: langpacks
UENG.2019.3.0.RHEL | 3.7 kB 00:00:00
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable <repoid>
or
subscription-manager repos --disable=<repoid>
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
root@hpsatvld5302:/tmp #
root@hpsatvld5302:/tmp #
root@hpsatvld5302:/tmp #
root@hpsatvld5302:/tmp # export PERL_MM_USE_DEFAULT=1
root@hpsatvld5302:/tmp #
root@hpsatvld5302:/tmp #
root@hpsatvld5302:/tmp #
root@hpsatvld5302:/tmp # cpan -i App::cpanminus
Reading '/root/.cpan/Metadata'
Database was generated on Fri, 25 Oct 2019 22:29:02 GMT
App::cpanminus is up to date (1.7044).
root@hpsatvld5302:/tmp #
root@hpsatvld5302:/tmp #
root@hpsatvld5302:/tmp # cpanm --notest Module::Build Crypt::SSLeay
! Finding Module::Build on cpanmetadb failed.
! Finding Module::Build () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Module::Build
! Finding Crypt::SSLeay on cpanmetadb failed.
! Finding Crypt::SSLeay () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Crypt::SSLeay
root@hpsatvld5302:/tmp #
Re: Monitoring VMware With Nagios XI
Something is wrong with your repos. Are you using a proxy and/or custom repos? Here's a list of repos from a "vanilla" RHEL 7 system with Nagios XI installed on it:
Try running:
Do you see any errors?
Code: Select all
[root@TEST_XI_RHEL_7 ~]# yum repolist
Loaded plugins: product-id, search-disabled-repos, subscription-manager
repo id repo name status
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,445
nagios-base Nagios 97
nagiosxi-deps Nagios XI Dependencies 31
rhel-7-server-optional-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - Optional (RPMs) 19,363
rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) 26,502
repolist: 59,438
Code: Select all
yum clean all
yum update -y
Be sure to check out our Knowledgebase for helpful articles and solutions!
unable to install cpanm
Hi Team,
Can some one help me with cpanm issue.
Iam trying to execute the command cpanm --notest Module::Build Crypt::SSLeay but throwing error.
root@hpsatvld5302:/tmp # cpanm --notest Module::Build Crypt::SSLeay
! Finding Module::Build on cpanmetadb failed.
! Finding Module::Build () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Module::Build
! Finding Crypt::SSLeay on cpanmetadb failed.
! Finding Crypt::SSLeay () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Crypt::SSLeay
root@hpsatvld5302:/tmp #
Can some one help me with cpanm issue.
Iam trying to execute the command cpanm --notest Module::Build Crypt::SSLeay but throwing error.
root@hpsatvld5302:/tmp # cpanm --notest Module::Build Crypt::SSLeay
! Finding Module::Build on cpanmetadb failed.
! Finding Module::Build () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Module::Build
! Finding Crypt::SSLeay on cpanmetadb failed.
! Finding Crypt::SSLeay () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Crypt::SSLeay
root@hpsatvld5302:/tmp #
Re: unable to install cpanm
we are in an OFFLINE environment and are using a CPAN replicated Mirror.
Re: Monitoring VMware With Nagios XI
Unfortunately, this is not something that we would support. We don't know how you have your CPAN replicated Mirror set up, how often you are updating it, if you are using instant mirroring, etc. You will have to talk to your system administrator, and find a way to install all of the required packages in your specific environment.
Be sure to check out our Knowledgebase for helpful articles and solutions!