|
|
| Author |
Message |
fury
Joined: 31 Dec 2006 Posts: 8
|
Posted: Sat Jan 06, 2007 9:25 am Post subject: |
|
|
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
|
Posted: Tue Jan 09, 2007 10:09 pm Post subject: Exchange 2003 SP2 |
|
|
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
|
Posted: Tue Jan 30, 2007 4:37 am Post subject: |
|
|
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
|
Posted: Mon Feb 19, 2007 2:30 am Post subject: host |
|
|
| 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
|
Posted: Mon Feb 19, 2007 12:49 pm Post subject: |
|
|
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
|
Posted: Mon Feb 19, 2007 2:09 pm Post subject: |
|
|
see attatchment
| Description: |
|
| Filesize: |
126.55 KB |
| Viewed: |
4498 Time(s) |

|
|
|
| Back to top |
|
 |
mattsn0w
Joined: 19 Apr 2007 Posts: 2 Location: San Jose, CA.
|
Posted: Thu Apr 19, 2007 12:48 pm Post subject: |
|
|
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
|
Posted: Thu Apr 26, 2007 12:59 pm Post subject: |
|
|
| 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
|
Posted: Mon Apr 30, 2007 3:04 am Post subject: |
|
|
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
| Description: |
|
| Filesize: |
9.42 KB |
| Viewed: |
4035 Time(s) |

|
|
|
| Back to top |
|
 |
StevoDevo
Joined: 30 Apr 2007 Posts: 4
|
Posted: Mon Apr 30, 2007 6:09 pm Post subject: |
|
|
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: 977
|
Posted: Tue May 01, 2007 1:43 am Post subject: |
|
|
| 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
|
Posted: Tue May 01, 2007 9:33 am Post subject: |
|
|
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: 977
|
Posted: Tue May 01, 2007 10:17 am Post subject: |
|
|
| 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
|
Posted: Tue Jul 10, 2007 7:06 am Post subject: |
|
|
@ 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
|
Posted: Tue Jul 10, 2007 12:21 pm Post subject: |
|
|
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 |
|
 |
|