Exchange 2003 scripts from Windows Cacti
Moderators: Developers, Moderators
This is what I get when I run the memory script against my exchange server.
C:\Inetpub\wwwroot\cacti\scripts>perl windows_memory.pl gorthaur
FreePhysicalMemory:588492 TotalVisibleMemorySize:2096692 CommitLimit:4210757632
CommittedBytes:1623674880 PoolPagedBytes:32505856 PoolNonpagedBytes:35753984
But i still get nan for data in my graph.
I went into the data source for this script and set the correct path for it. it was set to the default path for your cacti server. after i changed it i still have no data in my graphs. should i reboot cacti box?
C:\Inetpub\wwwroot\cacti\scripts>perl windows_memory.pl gorthaur
FreePhysicalMemory:588492 TotalVisibleMemorySize:2096692 CommitLimit:4210757632
CommittedBytes:1623674880 PoolPagedBytes:32505856 PoolNonpagedBytes:35753984
But i still get nan for data in my graph.
I went into the data source for this script and set the correct path for it. it was set to the default path for your cacti server. after i changed it i still have no data in my graphs. should i reboot cacti box?
DAP,
I ran scriptomatic. all the WMI calls are there. before I ive into recreating scripts I am going to delete and recreate the graphs. split them up create 2 device one for drive space and traffic and one for just exchange graphs and let you know how I make out.
BTW I ran all the scripts manually against my exchange server they all returned valid results.
I am thinking that maybe because i created these graphs with a the wrong script path it might be an issue.
I ran scriptomatic. all the WMI calls are there. before I ive into recreating scripts I am going to delete and recreate the graphs. split them up create 2 device one for drive space and traffic and one for just exchange graphs and let you know how I make out.
BTW I ran all the scripts manually against my exchange server they all returned valid results.
I am thinking that maybe because i created these graphs with a the wrong script path it might be an issue.
Please see http://forums.cacti.net/viewtopic.php?t=12480 re a problem I have noticed.
I used scriptomatic and found that the data was there.
I dont know what I am doing wrong with this.
this is the cacti log entry:
03/14/2006 11:40:40 PM - CACTID: Poller[0] Host[13] DS[157] SCRIPT: c:/perl/bin/perl.exe c:/inetpub/wwwroot/cacti/scripts/windows_memory.pl
03/14/2006 11:40:40 PM - CACTID: Poller[0] Host[13] DS[157] WARNING: Result from SCRIPT not valid. Partial Result: ...
03/14/2006 11:40:40 PM - CACTID: Poller[0] Host[13] ERROR: Empty result [localhost]: 'c:/perl/bin/perl.exe c:/inetpub/wwwroot/cacti/scripts/windows_memory.pl
this is what i get when I run the script manually:
C:\Inetpub\wwwroot\cacti\scripts>perl windows_memory.pl localhost
FreePhysicalMemory:731964 TotalVisibleMemorySize:1048180 CommitLimit:2593849344
CommittedBytes:245723136 PoolPagedBytes:22777856 PoolNonpagedBytes:27643904
C:\Inetpub\wwwroot\cacti\scripts>
and attached is the pic of the graph
I dont know what I am doing wrong with this.
this is the cacti log entry:
03/14/2006 11:40:40 PM - CACTID: Poller[0] Host[13] DS[157] SCRIPT: c:/perl/bin/perl.exe c:/inetpub/wwwroot/cacti/scripts/windows_memory.pl
03/14/2006 11:40:40 PM - CACTID: Poller[0] Host[13] DS[157] WARNING: Result from SCRIPT not valid. Partial Result: ...
03/14/2006 11:40:40 PM - CACTID: Poller[0] Host[13] ERROR: Empty result [localhost]: 'c:/perl/bin/perl.exe c:/inetpub/wwwroot/cacti/scripts/windows_memory.pl
this is what i get when I run the script manually:
C:\Inetpub\wwwroot\cacti\scripts>perl windows_memory.pl localhost
FreePhysicalMemory:731964 TotalVisibleMemorySize:1048180 CommitLimit:2593849344
CommittedBytes:245723136 PoolPagedBytes:22777856 PoolNonpagedBytes:27643904
C:\Inetpub\wwwroot\cacti\scripts>
and attached is the pic of the graph
- Attachments
-
- test.JPG (46.3 KiB) Viewed 14790 times
I have set a MAX limit on all the Data Sources in the Exchange Messages Data Template to "1000000". This seems to fix the issue when the exchange/smtp services are restarted. See (http://forums.cacti.net/viewtopic.php?t=12480)
Scripts look good, found out that your exchangedb script has your server hardcoded in it. Also, all of my data input methods have hardcoded "SCRIPT" paths, that's why mine weren't working -- so update all your data input methods and it should work fine -- like this:
toc:/skilled-rrdtool/perl/bin/perl.exe c:/skilled-rrdtool/cacti/scripts/windows_exchangequeues.pl <hostname>
perl <path_cacti>/scripts/windows_exchangequeues.pl <hostname>
I figured out what I had to do.
I created a "cactiadmin" account on the cacti server to run the CMD in the background so I did not get the command promt popping up every 5 min.
So I had to add the "cactiadmin" account to the local administrators group on the server I was running the scripts against.
In short the account running cmd.php has to have the permissions to WMI on the server you are trying to get stats from.
Now everything Looks Good
Good Job DAP!!!!
I created a "cactiadmin" account on the cacti server to run the CMD in the background so I did not get the command promt popping up every 5 min.
So I had to add the "cactiadmin" account to the local administrators group on the server I was running the scripts against.
In short the account running cmd.php has to have the permissions to WMI on the server you are trying to get stats from.
Now everything Looks Good
Good Job DAP!!!!
Who is online
Users browsing this forum: No registered users and 0 guests