Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Exchange 2003 scripts from Windows Cacti
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
fury



Joined: 31 Dec 2006
Posts: 8

PostPosted: Sat Jan 06, 2007 9:25 am    Post subject: Reply with quote

where can i find these sripts for a linux cacti? could someone post a link?

thx
Back to top
namiradaki



Joined: 04 Jan 2007
Posts: 10

PostPosted: Tue Jan 09, 2007 10:09 pm    Post subject: Exchange 2003 SP2 Reply with quote

Do these scripts work on Exch 2k3 SP2?

I only seem to be able to get some of the data for messages template, all the other one dont return any results.

Any suggestions?

Thanks for all your help in advance.

Nick
Back to top
Soriac



Joined: 30 Jan 2007
Posts: 1

PostPosted: Tue Jan 30, 2007 4:37 am    Post subject: Reply with quote

Hi,

may you can help me ? can't import graph template.

Error: XML parse error.

Why?

data template import works fine.

thx
Back to top
psycho.chicken



Joined: 14 Feb 2007
Posts: 21

PostPosted: Mon Feb 19, 2007 2:30 am    Post subject: host Reply with quote

where do i specify the host that this script will run against? do i actually subsitiute <hostname> for <mailserver> ?
Back to top
psycho.chicken



Joined: 14 Feb 2007
Posts: 21

PostPosted: Mon Feb 19, 2007 12:49 pm    Post subject: Reply with quote

Only half the graph is working...

half says 0.2m
and half says NaN...
Back to top
psycho.chicken



Joined: 14 Feb 2007
Posts: 21

PostPosted: Mon Feb 19, 2007 2:09 pm    Post subject: Reply with quote

see attatchment


cactieschange.JPG
 Description:
 Filesize:  126.55 KB
 Viewed:  4514 Time(s)

cactieschange.JPG


Back to top
mattsn0w



Joined: 19 Apr 2007
Posts: 2
Location: San Jose, CA.

PostPosted: Thu Apr 19, 2007 12:48 pm    Post subject: Reply with quote

probably a silly question, but has anyone been able to get the perl scripts working on Linux?

I've seen some posts through Google searches of people setting up WINE on Linux, and installing active state perl to get perl::Win32 working.

I have Cacti running on a Ubuntu Linux system, but may just setup a second box using win2k3 if it'll be easier to get access to WMI.
Back to top
Dacob9906
Cacti User


Joined: 03 Apr 2007
Posts: 189
Location: Pullman Washington

PostPosted: Thu Apr 26, 2007 12:59 pm    Post subject: Reply with quote

DAP wrote:
Here are the Data Templates.

Import using Cacti.

Important: Once imported, edit the script command to include your paths.


How do I edit the script command to include my path??
Back to top
mikedu44



Joined: 23 Apr 2007
Posts: 8
Location: France

PostPosted: Mon Apr 30, 2007 3:04 am    Post subject: Reply with quote

Hi

I having a problem to run this exchange script, the log says:

04/30/2007 10:00:05 AM - CMDPHP: Poller[0] Host[4] DS[23] CMD: c:/perl/bin/perl.exe c:/www/cacti-0.8.6j/scripts/windows_exchangequeues.pl srv-xxx, output: U
04/30/2007 10:00:05 AM - CMDPHP: Poller[0] Host[4] DS[23] WARNING: Result from CMD not valid. Partial Result:
04/30/2007 10:00:05 AM - CMDPHP: Poller[0] Host[4] DS[22] CMD: c:/perl/bin/perl.exe c:/www/cacti-0.8.6j/scripts/windows_exchangemessages.pl srv-xxx, output: U
04/30/2007 10:00:05 AM - CMDPHP: Poller[0] Host[4] DS[22] WARNING: Result from CMD not valid. Partial Result:
04/30/2007 10:00:04 AM - CMDPHP: Poller[0] Host[4] DS[20] CMD: c:/skilled-rrdtool/perl/bin/perl.exe c:/skilled-rrdtool/cacti/scripts/windows_exchangedb.pl srv-xxx, output: U
04/30/2007 10:00:04 AM - CMDPHP: Poller[0] Host[4] DS[20] WARNING: Result from CMD not valid. Partial Result:
04/30/2007 10:00:04 AM - CMDPHP: Poller[0] Host[4] DS[21] CMD: c:/perl/bin/perl.exe c:/www/cacti-0.8.6j/scripts/windows_exchangelatency.pl srv-xxx, output: U
04/30/2007 10:00:04 AM - CMDPHP: Poller[0] Host[4] DS[21] WARNING: Result from CMD not valid. Partial Result:
04/30/2007 10:00:04 AM - CMDPHP: Poller[0] Host[4] SNMP: Host responded to SNMP

the result of perl command in attachement

Please, anybody can help me ?

Mike



beug script exchange.JPG
 Description:
 Filesize:  9.42 KB
 Viewed:  4051 Time(s)

beug script exchange.JPG


Back to top
StevoDevo



Joined: 30 Apr 2007
Posts: 4

PostPosted: Mon Apr 30, 2007 6:09 pm    Post subject: Reply with quote

Hi,

I'm having the problem where I can get the script to run but it doesn't return any results. I have checked the WMI security settings on my Exchange server and they allow EVERYONE to remote access the server (currently).

Below is when I execute the scripts from my Cacti Server:

Code:
C:\Inetpub\wwwroot\cacti\scripts>perl windows_exchangemessages.pl snv-exh1

C:\Inetpub\wwwroot\cacti\scripts>perl windows_exchangedb.pl snv-exh1

C:\Inetpub\wwwroot\cacti\scripts>perl windows_exchangelatency.pl snv-exh1

C:\Inetpub\wwwroot\cacti\scripts>perl windows_exchangequeues.pl snv-exh1

C:\Inetpub\wwwroot\cacti\scripts>perl windows_memory.pl snv-exh1
FreePhysicalMemory:450028 TotalVisibleMemorySize:3144976 CommitLimit:5237317632
CommittedBytes:2815942656 PoolPagedBytes:49958912 PoolNonpagedBytes:37257216
C:\Inetpub\wwwroot\cacti\scripts>


The only script that returns results is the Memory one. I'm running Exchange SP2 on Windows Server 2003.

Any ideas?

Stevo
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 981

PostPosted: Tue May 01, 2007 1:43 am    Post subject: Reply with quote

Try running wmiadap /f at the command line to see if this helps. You should restart the WMI service after running this command.
Back to top
StevoDevo



Joined: 30 Apr 2007
Posts: 4

PostPosted: Tue May 01, 2007 9:33 am    Post subject: Reply with quote

Thanks - that worked... but now the only script returning no results is the DB scripts. I read in this thread that the creator had kept his DB name and computer name in the script, but I can't find it anywhere!

Here is the script I'm using - what do I need to change?

Code:
use strict;
use Win32::OLE('in');

use constant wbemFlagReturnImmediately => 0x10;
use constant wbemFlagForwardOnly => 0x20;

my @computers = ($ARGV[0]);
foreach my $computer (@computers) {

   my $objWMIService = Win32::OLE->GetObject("winmgmts:\\\\$computer\\root\\CIMV2") or die "WMI connection failed.\n";
   my $colItems = $objWMIService->ExecQuery("SELECT * FROM Win32_PerfFormattedData_ESE_Database", "WQL",
                  wbemFlagReturnImmediately | wbemFlagForwardOnly);

   foreach my $objItem (in $colItems) {
      print "DatabaseReadsSec:$objItem->{IODatabaseReadsPersec} ";
      print "DatabaseWritesSec:$objItem->{IODatabaseWritesPersec} ";
      print "LogReadsSec:$objItem->{IOLogReadsPersec} ";
      print "LogWritesSec:$objItem->{IOLogWritesPersec} ";
      print "\n";
   }
}
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 981

PostPosted: Tue May 01, 2007 10:17 am    Post subject: Reply with quote

I think this script was modified after someone else pointed it out,. I could never get this one working either, and to be honest, I decided to leave it alone. In terms of the Exchange DB, what are you looking to graph ?
Back to top
briealeida



Joined: 02 Jul 2007
Posts: 19
Location: a pebble

PostPosted: Tue Jul 10, 2007 7:06 am    Post subject: Reply with quote

@ fury, mattsn0w and hunghui

I know it's been a while. Crazy to think we're the only people running Cacti on Linux boxes?
Oh, well.

I've been working on this as well. The problem, as I believe it to be now, is the Perl module for OLE. If you get errors similar to this:

Can't locate WIN32/OLE.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/vendor_prel/5.8.8/i686-linux /usr/lib/perl5/vendor_perl/5.8.8 et cetera et cetera)


You have the same problem. I'm currently trying to find that Perl module, wget it and I'll fill you all in.
Back to top
briealeida



Joined: 02 Jul 2007
Posts: 19
Location: a pebble

PostPosted: Tue Jul 10, 2007 12:21 pm    Post subject: Reply with quote

That's totally not the case.

Sorry, guys.

I'm giving this up and sticking to switches, Linux boxes and networking stuff for Cacti and searching for the SNMP OIDs.

Completely screw WMI and OLE.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 5 of 7

 



Powered by phpBB © 2001, 2005 phpBB Group