Can't locate Win32/OLE.pm

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
bballard
Posts: 35
Joined: Thu Jan 19, 2006 11:58 am

Can't locate Win32/OLE.pm

Post by bballard »

As I have scoured the forums for hints, I only saw brief mentions to a perl version issue. Can anyone help me out with this.

I am trying to manually test the following:
perl /usr/share/cacti/site/scripts/w32_exch_query_mailboxstats.pl mailxx.xxx.local get SendQueueSize,RecieveQueueSize,MessagesSentPermin,MessagesSubmittedPermin,MessagesDeliveredPermin _Total
I get the following:
Can't locate Win32/OLE.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/cacti/site/scripts/w32_exch_query_mailboxstats.pl line 4.
BEGIN failed--compilation aborted at /usr/share/cacti/site/scripts/w32_exch_query_mailboxstats.pl line 4.
The first couple of lines from the script "w32_exch_query_mailboxstats.pl":
#!/usr/bin/perl

use strict;
use Win32::OLE;

my $output_delimeter = " ";
my $argCount = scalar(@ARGV);

my $Win32_Class = "Win32_PerfFormattedData_MSExchangeIS_MSExchangeISPublic";

#Display help if
if ($argCount == 0) {
I have the nsclient installed on my Exchange server and I have a succesful test in nagios using "check_ping". I know I am connecting to the nsclient.

My System:
Debian Kernal 2.4.27-2-386
Cacti Version 0.8.6g
PHP4 4.3.10-16
MySql Ver 14.7 Distrib 4.1.11
Nagios 2.0rc2
Last edited by bballard on Thu Jan 19, 2006 12:24 pm, edited 3 times in total.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

That is a perl error...

You are missing a perl module that the script you are trying to run needs.

Also, from that module, I would say this script is designed to run on Windows, not unix.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
bballard
Posts: 35
Joined: Thu Jan 19, 2006 11:58 am

Post by bballard »

So I can get the module and it should work? But if you say it is for Windows then where can I look for Unix versions to pull the info?
bballard
Posts: 35
Joined: Thu Jan 19, 2006 11:58 am

Post by bballard »

Do I have to execute the Perl scripts from the Exchange server?

How do I pull information from the Exchange server using the NSCLIENT?

The forums are not very clear on how I get the information from the NSCLIENT on the Exchange server to Cacti.
bballard
Posts: 35
Joined: Thu Jan 19, 2006 11:58 am

Post by bballard »

I think I may have found an answer in the forums... I hope this is it...
Thanks
zeroy
Posts: 25
Joined: Wed Jan 25, 2006 8:27 am

Post by zeroy »

¬¬ZeRoY¬¬
bballard
Posts: 35
Joined: Thu Jan 19, 2006 11:58 am

Post by bballard »

I am going to check it out right now. I will let you know. THANKS
hunghui
Posts: 2
Joined: Thu Jan 05, 2006 8:06 pm
Contact:

Post by hunghui »

scripts is windows platform perl , but my cacti is running on unix !
I don't know to modify perl file ! does anyone can do it ?
edouard37
Posts: 1
Joined: Thu Jun 10, 2010 2:54 am

Post by edouard37 »

Hi,
I'lm sorry ti use this old post...but my problem is discribe on tittle :

When I run a .pl file (to ask information for SQL Server), I have an error :

Can't locate Win32/OLE.pm in @INC

What is the perl module I must install and how ? (yum, wget ) ???

Thanks a lot.

PS : I'm using CACTIEZ on Centos I update Cacti on 0.8.7f.

Edouard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest