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
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
sadamu0614



Joined: 19 Nov 2007
Posts: 0

PostPosted: Mon Nov 19, 2007 7:08 am    Post subject: Reply with quote

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
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 978

PostPosted: Mon Nov 19, 2007 7:12 am    Post subject: Reply with quote

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



Joined: 19 Nov 2007
Posts: 0

PostPosted: Mon Nov 19, 2007 8:30 am    Post subject: Reply with quote

Okay, great tip !

Is working now !

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

thx
Back to top
jzondor



Joined: 10 May 2006
Posts: 7

PostPosted: Wed Feb 20, 2008 11:19 am    Post subject: Reply with quote

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.


windows_exchangedb.pl
 Description:

Download
 Filename:  windows_exchangedb.pl
 Filesize:  814 Bytes
 Downloaded:  192 Time(s)


cacti_graph_template_windows_-_exchange_database.xml
 Description:

Download
 Filename:  cacti_graph_template_windows_-_exchange_database.xml
 Filesize:  19.79 KB
 Downloaded:  141 Time(s)

Back to top
jzondor



Joined: 10 May 2006
Posts: 7

PostPosted: Fri Feb 22, 2008 10:54 am    Post subject: Reply with quote

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

This also eliminates the need to divide by 100000.



cacti_graph_template_windows_-_exchange_database(2).xml
 Description:

Download
 Filename:  cacti_graph_template_windows_-_exchange_database(2).xml
 Filesize:  18.65 KB
 Downloaded:  186 Time(s)

Back to top
najini



Joined: 18 Apr 2008
Posts: 3

PostPosted: Fri Apr 18, 2008 9:55 am    Post subject: Problem Reply with quote

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



Joined: 13 May 2008
Posts: 1

PostPosted: Tue May 13, 2008 8:19 am    Post subject: Reply with quote

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



Joined: 02 Jul 2007
Posts: 16

PostPosted: Tue Jun 10, 2008 9:43 pm    Post subject: Reply with quote

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?



exch msg.JPG
 Description:
 Filesize:  47.84 KB
 Viewed:  1597 Time(s)

exch msg.JPG


Back to top
widde



Joined: 29 May 2008
Posts: 1

PostPosted: Thu Jun 12, 2008 7:27 am    Post subject: Reply with quote

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 So lets see. I will post my findings.
Back to top
astralusche



Joined: 06 Jun 2008
Posts: 8
Location: Rostock / Germany

PostPosted: Mon Jun 16, 2008 6:55 am    Post subject: Reply with quote

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



untitled.png
 Description:
 Filesize:  32.58 KB
 Viewed:  1457 Time(s)

untitled.png


Back to top
maximillianx



Joined: 20 Jun 2008
Posts: 1
Location: Rockford, IL

PostPosted: Fri Jun 20, 2008 1:20 pm    Post subject: Reply with quote

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



Joined: 13 Jul 2008
Posts: 9

PostPosted: Sun Jul 13, 2008 11:14 am    Post subject: Reply with quote

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
Quote:
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 :
Quote:
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 :
Quote:
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!!!

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

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.



graph.JPG
 Description:
 Filesize:  71.08 KB
 Viewed:  1026 Time(s)

graph.JPG


Back to top
gueutzilla



Joined: 13 Jul 2008
Posts: 9

PostPosted: Tue Jul 15, 2008 4:40 am    Post subject: Reply with quote

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
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
Page 7 of 7

 



Powered by phpBB © 2001, 2005 phpBB Group