Page 1 of 1

Windows WMI Wizard Check Plugin Fails at Runtime

Posted: Fri Jul 08, 2011 2:18 pm
by axj0187
I recently upgraded from VMWare XIR1.3 to 1.5. I had the Windows WMI Wizard installed on 1.3 and everything worked perfectly. After the upgrade, I installed the same wizard and it was returning critical for every service, and the data was listed as null. So, I attempted to execute the check_wmi_plus.pl plugin directly from the /usr/local/nagios/libexec directory and it failed at line 1902. Here is the output:

# perl check_wmi_plus.pl
Can't locate DateTime.pm in @INC (@INC contains: /usr/local/nagios/libexec /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at check_wmi_plus.pl line 1902.
BEGIN failed--compilation aborted at check_wmi_plus.pl line 1902.


Line 1902 of the script is:

use DateTime;


This is a VMWare installation, and it appears that DateTime is missing although i'm not a Perl expert so I don't really know what is going on. Can anyone shed some light on this? Is this a problem in the 1.5 Release?


1. Linux Distribution and version?

cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 8)

uname -a
Linux movmbk.pitts.bayer.com 2.6.9-78.0.1.ELsmp #1 SMP Tue Jul 22 18:11:48 EDT 2008 i686 i686 i386 GNU/Linux

2. 32 or 64bit?

32 Bit.

3. VMware Image or Manual Install of XI?

VMWare Image.

Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?

Using a proxy.

Re: Windows WMI Wizard Check Plugin Fails at Runtime

Posted: Mon Jul 11, 2011 9:01 am
by axj0187
Problem solved.

Something bad must have happened while the installation script was installing Perl dependencies. To fix the problem you need to manually install them using the following commands:

yum -qy install perl-DateTime
yum -qy install perl-Config-IniFiles
yum -qy install perl-List-MoreUtils

Test the plugin (perl /usr/local/nagios/libexec/check_wmi_plus.pl) and it should return the usage information.