Exchange 2003 scripts from Windows Cacti

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
sadamu0614
Posts: 4
Joined: Mon Nov 19, 2007 10:46 pm

Post by sadamu0614 »

Of course it has !
Starting per Cron every 5 Minutes !
Running as Domain-Admin !

Is there a way to enable more debugging for DataInputMethods ?!
So I am able to see, whats returned by the script started from scheduler ?

Regards
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

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
sadamu0614
Posts: 4
Joined: Mon Nov 19, 2007 10:46 pm

Post by sadamu0614 »

Okay, great tip !

Is working now !

Was still using cactid !
Now using spine and copied all files to cygwin-bin !

thx
jzondor
Posts: 7
Joined: Wed May 10, 2006 5:16 pm

Post by jzondor »

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 548 times
windows_exchangedb.pl
(814 Bytes) Downloaded 677 times
jzondor
Posts: 7
Joined: Wed May 10, 2006 5:16 pm

Post by jzondor »

Woops... forgot to change the data template -> data source type to a counter...

This also eliminates the need to divide by 100000. :roll:
Attachments
cacti_graph_template_windows_-_exchange_database(2).xml
(18.65 KiB) Downloaded 799 times
najini
Posts: 5
Joined: Fri Apr 18, 2008 9:43 am
Location: French

Problem

Post by najini »

Problem with Database and Latency template, I haven't a Value in this graphs. The others graphs works properly.I don't know please help me.

thank you.
monitoringuk
Posts: 5
Joined: Tue May 13, 2008 8:14 am

Post by monitoringuk »

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.
mentasm
Posts: 16
Joined: Mon Jul 02, 2007 10:34 pm

Post by mentasm »

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?
Attachments
exch msg.JPG
exch msg.JPG (47.84 KiB) Viewed 9066 times
widde
Posts: 2
Joined: Thu May 29, 2008 10:00 am
Location: Germany
Contact:

Post by widde »

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.
Don't give up that quick. How about this link?

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 :roll: So lets see. I will post my findings.
astralusche
Posts: 8
Joined: Fri Jun 06, 2008 3:02 am
Location: Rostock / Germany

Post by astralusche »

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
Attachments
untitled.png
untitled.png (32.58 KiB) Viewed 8926 times
maximillianx
Posts: 1
Joined: Fri Jun 20, 2008 1:18 pm
Location: Rockford, IL

Post by maximillianx »

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?
Hi there, I've set up Cacti for the very first time (although it appears I may have actually done it mostly right!)...

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.
gueutzilla
Posts: 9
Joined: Sun Jul 13, 2008 10:28 am

Post by gueutzilla »

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
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
I have edit the data input with my correct path.

Here my data sources :
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 \
Here my graph management debug :
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" \
GPRINT:a:LAST:"Current\:%5.1lf" \
GPRINT:a:AVERAGE:"Average\:%5.1lf" \
GPRINT:a:MAX:"Maximum\:%5.1lf" \
COMMENT:"(Total 0)\n" \
LINE1:b#002A97:"MBox Msgs Submitted" \
GPRINT:b:LAST:"Current\:%5.1lf" \
GPRINT:b:AVERAGE:"Average\:%5.1lf" \
GPRINT:b:MAX:"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
I have find the problem in the template but I can't find how to resolved it!!! :cry:

The problem is due to the COMMENT line :
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>
The problem is the "|" character!!! :o

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
graph.JPG (71.08 KiB) Viewed 8495 times
gueutzilla
Posts: 9
Joined: Sun Jul 13, 2008 10:28 am

Post by gueutzilla »

Hi,

I have solved my problem :lol:

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 :P

Thanks for this template :wink:

PS : Sorry for my poor english :oops:
DWAyotte
Posts: 32
Joined: Wed Mar 28, 2007 1:37 pm

Post by DWAyotte »

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?
cghost98
Posts: 2
Joined: Sat Dec 05, 2009 12:25 am

Post by cghost98 »

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?
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.

Thanks in advance.

-Pete
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests