Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Templates, scripts for templates, scripts and requests for templates.
Moderators: Developers , Moderators
jazer
Posts: 3 Joined: Thu May 26, 2005 8:15 am
Location: Rome - Italy
Post
by jazer » Wed May 17, 2006 10:46 am
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.
DAP
Posts: 43 Joined: Mon Jul 18, 2005 10:42 pm
Location: Melbourne, Australia
Post
by DAP » Tue May 23, 2006 9:03 am
"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
bballard
Posts: 35 Joined: Thu Jan 19, 2006 11:58 am
Post
by bballard » Wed May 24, 2006 3:58 pm
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
DAP
Posts: 43 Joined: Mon Jul 18, 2005 10:42 pm
Location: Melbourne, Australia
Post
by DAP » Sat May 27, 2006 12:05 am
Did you fix the script path for the Data Input method?
bballard
Posts: 35 Joined: Thu Jan 19, 2006 11:58 am
Post
by bballard » Sat May 27, 2006 11:58 am
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?
bballard
Posts: 35 Joined: Thu Jan 19, 2006 11:58 am
Post
by bballard » Sat May 27, 2006 12:14 pm
Here is the debug from my datasource.
Attachments
datasource.JPG (109.41 KiB) Viewed 13381 times
bballard
Posts: 35 Joined: Thu Jan 19, 2006 11:58 am
Post
by bballard » Sat May 27, 2006 12:17 pm
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
bballard
Posts: 35 Joined: Thu Jan 19, 2006 11:58 am
Post
by bballard » Sat May 27, 2006 12:21 pm
Here are my RRD files.
Attachments
RRDfiles.JPG (38.17 KiB) Viewed 13378 times
bballard
Posts: 35 Joined: Thu Jan 19, 2006 11:58 am
Post
by bballard » Sat May 27, 2006 12:24 pm
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
bballard
Posts: 35 Joined: Thu Jan 19, 2006 11:58 am
Post
by bballard » Sat May 27, 2006 12:27 pm
Cacti Log snipet
Attachments
cactilog.JPG (179.5 KiB) Viewed 13376 times
bballard
Posts: 35 Joined: Thu Jan 19, 2006 11:58 am
Post
by bballard » Tue May 30, 2006 10:09 am
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.
bballard
Posts: 35 Joined: Thu Jan 19, 2006 11:58 am
Post
by bballard » Wed May 31, 2006 3:21 pm
Can anyone help me on this one?
DAP
Posts: 43 Joined: Mon Jul 18, 2005 10:42 pm
Location: Melbourne, Australia
Post
by DAP » Thu Jun 01, 2006 1:26 am
Make sure your POLLER scheduled task is running under an account with sufficient access to your servers. See how you go then
bballard
Posts: 35 Joined: Thu Jan 19, 2006 11:58 am
Post
by bballard » Thu Jun 01, 2006 7:23 am
The account I use is a domain admin.
bballard
Posts: 35 Joined: Thu Jan 19, 2006 11:58 am
Post
by bballard » Thu Jun 01, 2006 8:01 am
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".
Users browsing this forum: No registered users and 1 guest