Reinstalling Perl for Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
atremblay
Posts: 46
Joined: Wed Apr 05, 2017 1:38 pm

Reinstalling Perl for Nagios XI

Post by atremblay »

I came across a suggestion for an issue I was having with the Nagios XI VMware Plugin which said to run CPAN to update Perl. 1/2 way through this broke the VMware plugin entirely. I know, this was stupid right. I thought so, but was willing to try. At this point I'm not sure if it's worth it to run right through the rest of the Perl update, or if I should re-install Perl. If I should re-install can someone provide me with the package or version which should be used with XI 5.4.4? Else if you have a good suggestion to undo the CPAN install. Thanks.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Reinstalling Perl for Nagios XI

Post by lmiltchev »

All of the steps needed for monitoring vmware are listed here:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

This should work for the majority of the cases. If for some reason, you have a perl module (installed by "yum") that is outdated, you can install the newer version via CPAN.

Many times you would see some warnings after you install SDK, stating that some of the modules are too old, but the plugin still works, and you actually don't need to install the "latest and greatest".

If you run into an issue, while following the document listed above, please post the specific error(s) that you are getting (logs & screenshots can be also posted too if needed).
Be sure to check out our Knowledgebase for helpful articles and solutions!
atremblay
Posts: 46
Joined: Wed Apr 05, 2017 1:38 pm

Re: Reinstalling Perl for Nagios XI

Post by atremblay »

I have a separate post on this forum running about the specifics of the VMware Plugin issues. This one is more about undoing a stupid mistake made by trying to update Perl. I need to fix Perl before I can continue with the VMware issue. Which I figure can be done by reinstalling the perl package expected to come with Nagios XI 5.4 out of the box (this would probably be the quickest), or by undoing the CPAM update issued (which doesn't seem like it's possible from what I've been reading).
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Reinstalling Perl for Nagios XI

Post by lmiltchev »

What are the perl packages that you currently have installed on the system? Can you show us the output of the following commands?

Code: Select all

yum list installed perl
rpm -qa | grep perl
which perl
Be sure to check out our Knowledgebase for helpful articles and solutions!
atremblay
Posts: 46
Joined: Wed Apr 05, 2017 1:38 pm

Re: Reinstalling Perl for Nagios XI

Post by atremblay »

yum list installed perl

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.csclub.uwaterloo.ca
* epel: ftp.cse.buffalo.edu
* extras: centos.mirror.netelligent.ca
* updates: mirror.gpmidi.net
Installed Packages
perl.x86_64 4:5.10.1-144.el6 @base

rpm -qa | grep perl

perl-ExtUtils-MakeMaker-6.55-144.el6.x86_64
perl-Test-Simple-0.92-144.el6.x86_64
rrdtool-perl-1.3.8-10.el6.x86_64
perl-List-MoreUtils-0.22-10.el6.x86_64
perl-Config-IniFiles-2.72-2.el6.noarch
perl-Module-Pluggable-3.90-144.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-Digest-HMAC-1.01-22.el6.noarch
perl-IO-Compress-Base-2.021-144.el6.x86_64
perl-Nagios-Plugin-0.35-1.el6.noarch
perl-Net-DNS-0.65-5.el6.x86_64
perl-UNIVERSAL-isa-1.03-1.el6.noarch
perl-Net-SMTP-TLS-0.12-1.el6.rf.noarch
perl-Math-Calc-Units-1.07-6.el6.noarch
perl-Data-Dump-1.15-1.el6.noarch
perl-Mail-IMAPClient-3.37-1.el6.noarch
perl-libwww-perl-5.833-5.el6.noarch
perl-Time-HiRes-1.9721-144.el6.x86_64
perl-Config-Tiny-2.12-7.1.el6.noarch
perl-libs-5.10.1-144.el6.x86_64
perl-Pod-Simple-3.13-144.el6.x86_64
perl-5.10.1-144.el6.x86_64
perl-URI-1.40-2.el6.noarch
perl-DBD-MySQL-4.013-3.el6.x86_64
perl-Digest-SHA1-2.12-2.el6.x86_64
perl-Compress-Raw-Zlib-2.021-144.el6.x86_64
perl-Net-SSLeay-1.35-10.el6_8.1.x86_64
perl-IO-Compress-Zlib-2.021-144.el6.x86_64
perl-IO-Socket-INET6-2.56-4.el6.noarch
perl-Error-0.17015-4.el6.noarch
perl-IO-Socket-SSL-1.31-3.el6_8.2.noarch
perl-Crypt-Rijndael-1.09-2.el6.x86_64
perl-Mail-POP3Client-2.18-6.el6.noarch
perl-Parse-RecDescent-1.965-1.el6.noarch
perl-Number-Format-1.73-3.el6.noarch
perl-HTML-Parser-3.64-2.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
perl-Params-Validate-0.92-3.el6.x86_64
perl-Crypt-DES-2.05-9.el6.x86_64
perl-Class-Accessor-0.31-6.1.el6.noarch
perl-Digest-SHA-5.47-144.el6.x86_64
perl-Test-Harness-3.17-144.el6.x86_64
perl-devel-5.10.1-144.el6.x86_64
perl-CPAN-1.9402-144.el6.x86_64
perl-IO-stringy-2.110-10.1.el6.noarch
perl-DateTime-0.5300-3.el6.x86_64
net-snmp-perl-5.5-60.el6.x86_64
perl-XML-NamespaceSupport-1.10-3.el6.noarch
perl-XML-SAX-0.96-7.el6.noarch
perl-MailTools-2.04-4.el6.noarch
perl-UNIVERSAL-can-1.15-1.el6.noarch
perl-MIME-Lite-3.027-2.el6.noarch
perl-Test-MockObject-1.09-4.el6.noarch
uuid-perl-1.6.1-10.el6.x86_64
perl-Archive-Zip-1.30-2.el6.noarch
perl-Monitoring-Plugin-0.38-1.el6.1.noarch
perl-ExtUtils-ParseXS-2.2003.0-144.el6.x86_64
perl-TimeDate-1.16-13.el6.noarch
perl-Class-Singleton-1.4-6.el6.noarch
perl-Pod-Escapes-1.04-144.el6.x86_64
perl-version-0.77-144.el6.x86_64
perl-Socket6-0.23-4.el6.x86_64
perl-XML-LibXML-1.70-5.el6.x86_64
perl-Compress-Zlib-2.021-144.el6.x86_64
perl-Email-Date-Format-1.002-5.el6.noarch
perl-MIME-Types-1.28-2.el6.noarch
perl-Net-LibIDN-0.12-3.el6.x86_64
perl-SOAP-Lite-0.710.10-4.el6.noarch
perl-SNMP_Session-1.12-4.el6.noarch
perl-Class-MethodMaker-2.16-6.el6.x86_64
perl-Crypt-SSLeay-0.57-17.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
perl-XML-Simple-2.18-6.el6.noarch
perl-Net-SNMP-5.2.0-4.el6.noarch


which perl

/usr/bin/perl
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Reinstalling Perl for Nagios XI

Post by dwhitfield »

atremblay wrote: perl.x86_64 4:5.10.1-144.el6 @base

/usr/bin/perl
These are correct.

What's the output of yum repolist all? Also, what is the exact error you are getting?
atremblay
Posts: 46
Joined: Wed Apr 05, 2017 1:38 pm

Re: Reinstalling Perl for Nagios XI

Post by atremblay »

I was having an issue with getting just the IO or DISK checker in the VMware plugin to work. It just kept returning a blank result, not null, just blank.

Someone gave me the idea to run a cpan update on Perl itself (after troubleshooting other stuff like the install of the SDK etc...).

I got only so far in the CPAN update and then all the sudden started getting a flood of emails from Nagios. All the other VMware modules stopped working... Memory, CPU, etc... So I stopped the cpan update. So it's only part way complete. But all VMware monitoring is broken.

They keep timing out with this syslog:
nagios: Warning: Check of service '<vm name>' on host '<vmware servername>' timed out after 60.009s!
atremblay
Posts: 46
Joined: Wed Apr 05, 2017 1:38 pm

Re: Reinstalling Perl for Nagios XI

Post by atremblay »

yum repolist all

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink | 12 kB 00:00
* base: mirror.csclub.uwaterloo.ca
* epel: mirrors.mit.edu
* extras: mirror.csclub.uwaterloo.ca
* updates: mirror.csclub.uwaterloo.ca
base | 3.7 kB 00:00
cr | 2.9 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.9 MB 00:01
extras | 3.4 kB 00:00
nagios-base | 1.5 kB 00:00
nagiosxi-deps | 1.5 kB 00:00
updates | 3.4 kB 00:00
repo id repo name status
<output removed - All were disabled anyway...>
C6.8-base CentOS-6.8 - Base disabled
C6.8-centosplus CentOS-6.8 - CentOSPlus disabled
C6.8-contrib CentOS-6.8 - Contrib disabled
C6.8-extras CentOS-6.8 - Extras disabled
C6.8-updates CentOS-6.8 - Updates disabled
base CentOS-6 - Base enabled: 6,706
base-debuginfo CentOS-6 - Debuginfo disabled
c6-media CentOS-6 - Media disabled
centosplus CentOS-6 - Plus disabled
contrib CentOS-6 - Contrib disabled
cr CentOS-6 - CR enabled: 0
epel Extra Packages for Enterprise Linux 6 - x86_64 enabled: 12,372
epel-debuginfo Extra Packages for Enterprise Linux 6 - x86_64 - Debug disabled
epel-source Extra Packages for Enterprise Linux 6 - x86_64 - Source disabled
epel-testing Extra Packages for Enterprise Linux 6 - Testing - x86_64 disabled
epel-testing-debuginfo Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Debug disabled
epel-testing-source Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Source disabled
extras CentOS-6 - Extras enabled: 45
fasttrack CentOS-6 - fasttrack disabled
nagios-base Nagios enabled: 161
nagiosxi-deps Nagios XI Dependencies enabled: 31
updates CentOS-6 - Updates enabled: 447
repolist: 19,762
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Reinstalling Perl for Nagios XI

Post by tgriep »

In the second post, there is a link to the requirements for the VMWare plugin. Try going following it to reinstall the requirements for the plugin.
I found the same as you, there doesn't seem to be a way to go back on a cpan upgrade. It might be best to go forward and finish them.
Be sure to check out our Knowledgebase for helpful articles and solutions!
atremblay
Posts: 46
Joined: Wed Apr 05, 2017 1:38 pm

Re: Reinstalling Perl for Nagios XI

Post by atremblay »

I found something noteworthy, but not helpful for this case. The upgrade of perl to the latest makes the 6.0 SDK not work with Nagios, but if you us the 6.5 SDK, then it works.
Still trying to figure out what's wrong here. Completing the perl upgrade didn't help, but didn't hurt.

In the install doc the only thing I didn't do was include the switch for defaults and accepting the Eula. I just accepted the Eula during the install. Do you think the "defaults" could have made a difference though? I'll try it...

Code: Select all

./vmware-install.pl EULA_AGREED=yes --default
Locked