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
joex51



Joined: 05 Mar 2006
Posts: 32
Location: Connecticut

PostPosted: Mon Mar 13, 2006 11:44 pm    Post subject: Reply with quote

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?
Back to top
DAP



Joined: 18 Jul 2005
Posts: 43
Location: Melbourne, Australia

PostPosted: Tue Mar 14, 2006 12:05 am    Post subject: Reply with quote

I just re-read your previous replies and noted you are using CACTID as your poller. Try using CMD and see if that works better (I am using CMD).
Back to top
joex51



Joined: 05 Mar 2006
Posts: 32
Location: Connecticut

PostPosted: Tue Mar 14, 2006 4:27 pm    Post subject: Reply with quote

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.
Back to top
DAP



Joined: 18 Jul 2005
Posts: 43
Location: Melbourne, Australia

PostPosted: Tue Mar 14, 2006 5:50 pm    Post subject: Reply with quote

Did you try changing your poller to CMD.PHP to see if that made a difference?
Back to top
DAP



Joined: 18 Jul 2005
Posts: 43
Location: Melbourne, Australia

PostPosted: Tue Mar 14, 2006 11:04 pm    Post subject: Reply with quote

Please see http://forums.cacti.net/viewtopic.php?t=12480 re a problem I have noticed.
Back to top
joex51



Joined: 05 Mar 2006
Posts: 32
Location: Connecticut

PostPosted: Tue Mar 14, 2006 11:53 pm    Post subject: Reply with quote

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



test.JPG
 Description:
 Filesize:  46.3 KB
 Viewed:  6887 Time(s)

test.JPG


Back to top
joex51



Joined: 05 Mar 2006
Posts: 32
Location: Connecticut

PostPosted: Tue Mar 14, 2006 11:56 pm    Post subject: Reply with quote

i have changed my poller to cmdphp i will let you know
Back to top
DAP



Joined: 18 Jul 2005
Posts: 43
Location: Melbourne, Australia

PostPosted: Thu Mar 16, 2006 1:40 am    Post subject: Reply with quote

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)
Back to top
DevilSun
Cacti User


Joined: 16 Jul 2004
Posts: 166
Location: Oregon

PostPosted: Mon Mar 20, 2006 1:44 pm    Post subject: Reply with quote

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:

Quote:
c:/skilled-rrdtool/perl/bin/perl.exe c:/skilled-rrdtool/cacti/scripts/windows_exchangequeues.pl <hostname>


to

Quote:
perl <path_cacti>/scripts/windows_exchangequeues.pl <hostname>
Back to top
joex51



Joined: 05 Mar 2006
Posts: 32
Location: Connecticut

PostPosted: Mon Mar 20, 2006 2:15 pm    Post subject: Reply with quote

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!!!!
Back to top
DAP



Joined: 18 Jul 2005
Posts: 43
Location: Melbourne, Australia

PostPosted: Thu Apr 20, 2006 12:34 am    Post subject: Reply with quote

Oops! Thanks DevilSun. I have adjusted my script.
Back to top
JonathanC



Joined: 07 Feb 2006
Posts: 7

PostPosted: Tue Apr 25, 2006 4:12 pm    Post subject: Reply with quote

Has anyone tried these scrpits on Exchange 2000?

Thanks!
Back to top
Brettw



Joined: 18 Mar 2005
Posts: 26

PostPosted: Sun Apr 30, 2006 11:31 pm    Post subject: Reply with quote

Nice scripts DAP,

good to see someone in Aus is contributing
You may want to upload the modified files with the non hardcoded details as I downloaded the ones from the inital post and they have the hardcoded db and script locations in them

Cheers

Brett
Back to top
hunghui



Joined: 05 Jan 2006
Posts: 2

PostPosted: Tue May 02, 2006 2:08 am    Post subject: Reply with quote

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 ?
Back to top
Jeff_Smith



Joined: 04 May 2006
Posts: 14

PostPosted: Thu May 04, 2006 11:54 am    Post subject: Reply with quote

AWESOME

Thanks for the great scripts.
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 2 of 7

 



Powered by phpBB © 2001, 2005 phpBB Group