Exchange 2003 scripts from Windows Cacti
Moderators: Developers, Moderators
-
- Posts: 4
- Joined: Mon Nov 19, 2007 10:46 pm
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Ok - do you have this particular problem with any other (if applicable) PERL scripts running on your CACTI system ? Does your SPINE binary reside in C:\cygwin\bin ? I had this issue myself, and resolved it by placing the SPINE binary and conf file in this directory.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
-
- Posts: 4
- Joined: Mon Nov 19, 2007 10:46 pm
I noticed that the DB Stats didn't seem right... So I change the script to pull the raw data instead of the formatted data. It seems closer to what it should be.
- Attachments
-
- cacti_graph_template_windows_-_exchange_database.xml
- (19.79 KiB) Downloaded 578 times
-
- windows_exchangedb.pl
- (814 Bytes) Downloaded 700 times
Woops... forgot to change the data template -> data source type to a counter...
This also eliminates the need to divide by 100000.
This also eliminates the need to divide by 100000.
- Attachments
-
- cacti_graph_template_windows_-_exchange_database(2).xml
- (18.65 KiB) Downloaded 830 times
-
- Posts: 5
- Joined: Tue May 13, 2008 8:14 am
Strange one happening with me....
Setup as per edgonz instructions. I can run the query perl windows_exchangemessages.pl servername and i get the result:
MB_MsgsSubmitted:93 MB_MsgsDelivered:14996 MB_MsgsSent:93 SMTP_MsgBytesReceived:
27507381 SMTP_MsgBytesSent:3286685 SMTP_MsgsDelivered:14963 SMTP_MsgsReceived:74
14 SMTP_MsgsSent:74
But the graphs in cacti are still blank... Can anyone point me in the right direction to try and fix this?
thanks for your time.
Setup as per edgonz instructions. I can run the query perl windows_exchangemessages.pl servername and i get the result:
MB_MsgsSubmitted:93 MB_MsgsDelivered:14996 MB_MsgsSent:93 SMTP_MsgBytesReceived:
27507381 SMTP_MsgBytesSent:3286685 SMTP_MsgsDelivered:14963 SMTP_MsgsReceived:74
14 SMTP_MsgsSent:74
But the graphs in cacti are still blank... Can anyone point me in the right direction to try and fix this?
thanks for your time.
Does anyone have any ideas why I would not be able to find the
Win32_PerfRawData_MSExchangeIS_MSExchangeISMailbox
class on my exchange server? I can see the
Win32_PerfRawData_SMTPSVC_SMTPServer
class and return data from it fine.
Server is Server 2003 R2 SP2 running Exchange 2003.
Also in the Exchange (Messages) graph, I am getting data graphed for the Win32_PerfRawData_SMTPSVC_SMTPServer data, but the values are not displayed below the graph. Any suggestions on what to look at?
Win32_PerfRawData_MSExchangeIS_MSExchangeISMailbox
class on my exchange server? I can see the
Win32_PerfRawData_SMTPSVC_SMTPServer
class and return data from it fine.
Server is Server 2003 R2 SP2 running Exchange 2003.
Also in the Exchange (Messages) graph, I am getting data graphed for the Win32_PerfRawData_SMTPSVC_SMTPServer data, but the values are not displayed below the graph. Any suggestions on what to look at?
- Attachments
-
- exch msg.JPG (47.84 KiB) Viewed 9158 times
Don't give up that quick. How about this link?briealeida wrote: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.
http://www.perlmonks.org/?node_id=430194
Getting that damn Perl Script over wine. I will give it a try, but my linux capabilitys are not that good So lets see. I will post my findings.
-
- Posts: 8
- Joined: Fri Jun 06, 2008 3:02 am
- Location: Rostock / Germany
hi
i have problems with x axis. my graph not count the mails but something else.
i will be count the mails per minute or per 5 minute ... which is my problem? at the moment count the graph 3 per mail not 1. i get 1 mail and the graph show 3,6 m ... i want see that the graph show 1 by 1 mail incoming ...
and sorry for my bad englich
win2003 sp2
exchange 2003 sp1
cacti Version 0.8.7b
i have problems with x axis. my graph not count the mails but something else.
i will be count the mails per minute or per 5 minute ... which is my problem? at the moment count the graph 3 per mail not 1. i get 1 mail and the graph show 3,6 m ... i want see that the graph show 1 by 1 mail incoming ...
and sorry for my bad englich
win2003 sp2
exchange 2003 sp1
cacti Version 0.8.7b
- Attachments
-
- untitled.png (32.58 KiB) Viewed 9018 times
-
- Posts: 1
- Joined: Fri Jun 20, 2008 1:18 pm
- Location: Rockford, IL
Hi there, I've set up Cacti for the very first time (although it appears I may have actually done it mostly right!)...joex51 wrote:DAP,
i am getting a warning.
03/12/2006 09:55:18 PM - CACTID: Poller[0] Host[10] DS[128] WARNING: Result from SCRIPT not valid. Partial Result: ...
should make my time out longer?
I get this same result when looking at the log, however, running the scripts returns data.
I looked through the rest of this thread and could not determine if Joex51 was able to get his issue resolved. The user account that runs the scheduled poller is a domain admin.
I've attempted the various WMI commands and opening up WMI access to 'everyone', with no success.
-
- Posts: 9
- Joined: Sun Jul 13, 2008 10:28 am
Hi,
I have a problem with Exchange message template...
Cacti informations
Version 0.8.7b
Operating System: win32 (Win2k3 SP2 stdr)
PHP SNMP Support: yes
All other template work properly (Exchange Queues : OK, Exchange Client Latency : OK, Exchange Database : OK, Exchange message stats : Graph don't work!!)
The perl script "windows_exchangemessages.pl" work perfectly
Here my data sources :
The problem is due to the COMMENT line :
Only "(SMTP_MsgsSent): SMTP Msgs Sent and (MB_MsgsSent): MBox Msgs Sent" work!!!
When I remove "|" in the "MB_MsgsDelivered,MB_MsgsSubmitted,SMTP_MsgsDelivered and SMTP_MsgBytesReceiv" the graph appear like in the screenshot.
Do you know how can I resolve this problem??
Thanks a lot for your help.
Best regards.
I have a problem with Exchange message template...
Cacti informations
Version 0.8.7b
Operating System: win32 (Win2k3 SP2 stdr)
PHP SNMP Support: yes
All other template work properly (Exchange Queues : OK, Exchange Client Latency : OK, Exchange Database : OK, Exchange message stats : Graph don't work!!)
The perl script "windows_exchangemessages.pl" work perfectly
I have edit the data input with my correct path.D:\Web\Cacti\scripts>perl windows_exchangemessages.pl MYSERVER
MB_MsgsSubmitted:100697 MB_MsgsDelivered:414159 MB_MsgsSent:103975 SMTP_MsgBytes
Received:11619132579 SMTP_MsgBytesSent:10500612509 SMTP_MsgsDelivered:260065 SMT
P_MsgsReceived:267192 SMTP_MsgsSent:45575
Here my data sources :
Here my graph management debug :Data Source Debug
D:/Web/Cacti/rrdtool.exe create \
D:/Web/Cacti/rra/myserver_smtp_msgbytesreceiv_404.rrd \
--step 300 \
DS:SMTP_MsgBytesReceiv:COUNTER:600:0:U \
DS:MB_MsgsSubmitted:COUNTER:600:0:U \
DS:SMTP_MsgBytesSent:COUNTER:600:0:U \
DS:SMTP_MsgsReceived:COUNTER:600:0:U \
DS:SMTP_MsgsDelivered:COUNTER:600:0:U \
DS:MB_MsgsDelivered:COUNTER:600:0:U \
DS:SMTP_MsgsSent:COUNTER:600:0:U \
DS:MB_MsgsSent:COUNTER:600:0:U \
RRA:AVERAGE:0.5:1:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
I have find the problem in the template but I can't find how to resolved it!!!RRDTool Command:
Notice: Undefined index: MB_MsgsDelivered in D:\Web\Cacti\lib\graph_variables.php on line 464
Notice: Undefined index: MB_MsgsSubmitted in D:\Web\Cacti\lib\graph_variables.php on line 464
Notice: Undefined index: SMTP_MsgsDelivered in D:\Web\Cacti\lib\graph_variables.php on line 464
Notice: Undefined index: SMTP_MsgBytesReceiv in D:\Web\Cacti\lib\graph_variables.php on line 464
D:/Web/Cacti/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="myserver - Exchange (Messages)" \
--rigid \
--base=1000 \
--height=175 \
--width=575 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Messages/Sec" \
DEF:a="D\:/Web/Cacti/rra/myserver_smtp_msgbytesreceiv_404.rrd":MB_MsgsDelivered:AVERAGE \
DEF:b="D\:/Web/Cacti/rra/myserver_smtp_msgbytesreceiv_404.rrd":MB_MsgsSubmitted:AVERAGE \
DEF:c="D\:/Web/Cacti/rra/myserver_smtp_msgbytesreceiv_404.rrd":MB_MsgsSent:AVERAGE \
DEF:d="D\:/Web/Cacti/rra/myserver_smtp_msgbytesreceiv_404.rrd":SMTP_MsgsDelivered:AVERAGE \
DEF:e="D\:/Web/Cacti/rra/myserver_smtp_msgbytesreceiv_404.rrd":SMTP_MsgsReceived:AVERAGE \
DEF:f="D\:/Web/Cacti/rra/myserver_smtp_msgbytesreceiv_404.rrd":SMTP_MsgBytesReceiv:AVERAGE \
DEF:g="D\:/Web/Cacti/rra/myserver_smtp_msgbytesreceiv_404.rrd":SMTP_MsgsSent:AVERAGE \
DEF:h="D\:/Web/Cacti/rra/myserver_smtp_msgbytesreceiv_404.rrd":SMTP_MsgBytesSent:AVERAGE \
LINE1:a#00CF00:"MBox Msgs Delivered" \
GPRINTLAST:"Current\:%5.1lf" \
GPRINTAVERAGE:"Average\:%5.1lf" \
GPRINTMAX:"Maximum\:%5.1lf" \
COMMENT:"(Total 0)\n" \
LINE1:b#002A97:"MBox Msgs Submitted" \
GPRINTLAST:"Current\:%5.1lf" \
GPRINTAVERAGE:"Average\:%5.1lf" \
GPRINTMAX:"Maximum\:%5.1lf" \
COMMENT:"(Total 0)\n" \
LINE1:c#00A0C1:"MBox Msgs Sent" \
GPRINT:c:LAST:" Current\:%5.1lf" \
GPRINT:c:AVERAGE:"Average\:%5.1lf" \
GPRINT:c:MAX:"Maximum\:%5.1lf" \
COMMENT:"(Total 0)\n" \
LINE1:d#FFFF00:"SMTP Msgs Delivered" \
GPRINT:d:LAST:"Current\:%5.1lf" \
GPRINT:d:AVERAGE:"Average\:%5.1lf" \
GPRINT:d:MAX:"Maximum\:%5.1lf" \
COMMENT:"(Total 0)\n" \
LINE1:e#FF5F00:"SMTP Msgs Received" \
GPRINT:e:LAST:" Current\:%5.1lf" \
GPRINT:e:AVERAGE:"Average\:%5.1lf" \
GPRINT:e:MAX:"Maximum\:%5.1lf" \
COMMENT:"(Total 0," \
COMMENT:"0 bytes)\n" \
LINE1:g#F51D30:"SMTP Msgs Sent" \
GPRINT:g:LAST:" Current\:%5.1lf" \
GPRINT:g:AVERAGE:"Average\:%5.1lf" \
GPRINT:g:MAX:"Maximum\:%5.1lf" \
COMMENT:"(Total 0," \
COMMENT:"0 bytes)\n" \
COMMENT:"Total 0\n"
RRDTool Says:
Notice: Undefined index: MB_MsgsDelivered in D:\Web\Cacti\lib\graph_variables.php on line 464
Notice: Undefined index: MB_MsgsSubmitted in D:\Web\Cacti\lib\graph_variables.php on line 464
Notice: Undefined index: SMTP_MsgsDelivered in D:\Web\Cacti\lib\graph_variables.php on line 464
Notice: Undefined index: SMTP_MsgBytesReceiv in D:\Web\Cacti\lib\graph_variables.php on line 464
OK
The problem is due to the COMMENT line :
The problem is the "|" character!!!Item # 5 COMMENT: (Total |sum:0:current:0:auto|)<HR> COMMENT AVERAGE
Item # 10 COMMENT: (Total |sum:0:current:0:auto|)<HR> COMMENT AVERAGE
Item # 15 COMMENT: (Total |sum:0:current:0:auto|)<HR> COMMENT AVERAGE
Item # 20 COMMENT: (Total |sum:0:current:0:auto|)<HR> COMMENT AVERAGE
Item # 25 COMMENT: (Total |sum:0:current:0:auto|, COMMENT AVERAGE
Item # 26 COMMENT: |sum:auto:current:1:auto|)<HR>
Only "(SMTP_MsgsSent): SMTP Msgs Sent and (MB_MsgsSent): MBox Msgs Sent" work!!!
When I remove "|" in the "MB_MsgsDelivered,MB_MsgsSubmitted,SMTP_MsgsDelivered and SMTP_MsgBytesReceiv" the graph appear like in the screenshot.
Do you know how can I resolve this problem??
Thanks a lot for your help.
Best regards.
- Attachments
-
- graph.JPG (71.08 KiB) Viewed 8587 times
-
- Posts: 9
- Joined: Sun Jul 13, 2008 10:28 am
Hi,
I have solved my problem
I think the problem was due to long name to the output query!!!
I have changed the long name in the script :
from
SMTP_MsgsDelivered
to
SMTP_MsgsDeliv
And make a new graph template, new data input method and new data template.
After this modification, my problem was resolved
Thanks for this template
PS : Sorry for my poor english
I have solved my problem
I think the problem was due to long name to the output query!!!
I have changed the long name in the script :
from
SMTP_MsgsDelivered
to
SMTP_MsgsDeliv
And make a new graph template, new data input method and new data template.
After this modification, my problem was resolved
Thanks for this template
PS : Sorry for my poor english
Yup, got exactly the same issue. The only graph that works is the Windows Memory. I can see the scripts are pulling data from both the cacti logs and manually running the scripts and rra's are also being created. But graphs return "0" values.DWAyotte wrote:I am not having the best of luck with this. I have tried all of the things listed on these 7 pages and I can't seem to get my graphs to show any day.
I can run the perl scripts and get data returned, I see the rrd files created, but my graphs are all empty.
Where should I go from here?
Thanks in advance.
-Pete
Who is online
Users browsing this forum: No registered users and 5 guests