Windows WMI Wizard Check Plugin Fails at Runtime
Posted: Fri Jul 08, 2011 2:18 pm
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.
# 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.