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
jazer



Joined: 26 May 2005
Posts: 3
Location: Rome - Italy

PostPosted: Wed May 17, 2006 10:46 am    Post subject: Reply with quote

DAP,

I've a problem of WMI connection. My cacti box is a win2k3 and it is in domain A. My Exchange server (2003 sp1) is in domain B and the comunication is through a firewall (but from A to B is all open).

Can you help me?

when i run "perl windows_exchangemessages.pl srvexchange" i receive WMI connection failed.
Back to top
DAP



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

PostPosted: Tue May 23, 2006 9:03 am    Post subject: Reply with quote

"WMI connection failed" messages usually are a permission problem with either the account you are running the script from manually, or the WMI permissions on the remote server. See my previous post about enabling "Remote enable" and see if that helps.

Cheers
Back to top
bballard



Joined: 19 Jan 2006
Posts: 35

PostPosted: Wed May 24, 2006 3:58 pm    Post subject: Reply with quote

I am able to manually run every script and get back results I want, but it breaks all of my graphing when I add them to my Exchange Server device.

Thoughts?

Win2K3 Server
IIS6
RRDTool 1.2.12
Cacti v 0.8.6h
MySql 5.0.21
PHP 5.1.4
Back to top
DAP



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

PostPosted: Sat May 27, 2006 12:05 am    Post subject: Reply with quote

Did you fix the script path for the Data Input method?
Back to top
bballard



Joined: 19 Jan 2006
Posts: 35

PostPosted: Sat May 27, 2006 11:58 am    Post subject: Reply with quote

Yeah I saw the post.

perl <path_cacti>/scripts/windows_exchangemessages.pl <hostname>

Can I zip up some logs and get someone to look them over?
Back to top
bballard



Joined: 19 Jan 2006
Posts: 35

PostPosted: Sat May 27, 2006 12:14 pm    Post subject: Reply with quote

Here is the debug from my datasource.


datasource.JPG
 Description:
 Filesize:  109.41 KB
 Viewed:  6102 Time(s)

datasource.JPG


Back to top
bballard



Joined: 19 Jan 2006
Posts: 35

PostPosted: Sat May 27, 2006 12:17 pm    Post subject: Reply with quote

Hear is what I get when I run it manually.

C:\Inetpub\wwwroot\cacti\scripts>perl windows_exchangemessages.pl mail0301.hchb.local

MB_MsgsSubmitted:726
MB_MsgsDelivered:3415
MB_MsgsSent:895
SMTP_MsgBytesReceived:80563155
SMTP_MsgBytesSent:59688239
SMTP_MsgsDelivered:1622
SMTP_MsgsReceived:1355
SMTP_MsgsSent:669
Back to top
bballard



Joined: 19 Jan 2006
Posts: 35

PostPosted: Sat May 27, 2006 12:21 pm    Post subject: Reply with quote

Here are my RRD files.


RRDfiles.JPG
 Description:
 Filesize:  38.17 KB
 Viewed:  6099 Time(s)

RRDfiles.JPG


Back to top
bballard



Joined: 19 Jan 2006
Posts: 35

PostPosted: Sat May 27, 2006 12:24 pm    Post subject: Reply with quote

Poller manually ran

C:\Inetpub\wwwroot\cacti>c:\php\php.exe c:\inetpub\wwwroot\cacti\poller.php
05/27/2006 01:22:14 PM - SYSTEM STATS: Time:7.2064 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:1 RRDsProcessed:1
OK u:0.05 s:0.03 r:5.06
Back to top
bballard



Joined: 19 Jan 2006
Posts: 35

PostPosted: Sat May 27, 2006 12:27 pm    Post subject: Reply with quote

Cacti Log snipet


cactilog.JPG
 Description:
 Filesize:  179.5 KB
 Viewed:  6097 Time(s)

cactilog.JPG


Back to top
bballard



Joined: 19 Jan 2006
Posts: 35

PostPosted: Tue May 30, 2006 10:09 am    Post subject: Reply with quote

I think I found out what is wrong. The Exchange graphing only works when I am logged in as the user that the scheduler uses to run every five minutes.

Is there a policy or something I need to set? I will go through my local server policies and see if I missed something.
Back to top
bballard



Joined: 19 Jan 2006
Posts: 35

PostPosted: Wed May 31, 2006 3:21 pm    Post subject: Reply with quote

Can anyone help me on this one?
Back to top
DAP



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

PostPosted: Thu Jun 01, 2006 1:26 am    Post subject: Reply with quote

Make sure your POLLER scheduled task is running under an account with sufficient access to your servers. See how you go then
Back to top
bballard



Joined: 19 Jan 2006
Posts: 35

PostPosted: Thu Jun 01, 2006 7:23 am    Post subject: Reply with quote

The account I use is a domain admin.
Back to top
bballard



Joined: 19 Jan 2006
Posts: 35

PostPosted: Thu Jun 01, 2006 8:01 am    Post subject: Reply with quote

DAP, is your Windows/Cacti installation in an 2003 Active Directory environment? It is weird that the poller runs, but only updates the files while the user account is logged in. I made sure that the check mark in the scheduled task is unchecked for "user must be logged in".
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 3 of 7

 



Powered by phpBB © 2001, 2005 phpBB Group