Exchange Perl Scripts via WMI

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

Moderators: Developers, Moderators

DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Exchange Perl Scripts via WMI

Post by DevilSun »

First off, thanks to Sidewinder...this is my first time working with Perl and Cacti, so his scripts got me off to a great start.
Attachments
w32_exch_query_mailboxstats.pl.txt
SendQueueSize,ReceiveQueueSize,MessagesSentPermin,MessagesSubmittedPermin,MessagesDeliveredPermin,etc
(5.78 KiB) Downloaded 2859 times
w32_exch_query_isstats.pl.txt
ActiveUserCount,UserCount,etc
(5.58 KiB) Downloaded 3561 times
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

Here are some for the "Intelligent Message Filter" (aka IMF) which does spam filtering using MSs SmartScreen technology :roll:
Attachments
cacti_data_template_exchange_imf_statistics.xml
Data Template
(15.13 KiB) Downloaded 2011 times
cacti_graph_template_exchange_intelligent_message_filter_statistics.xml
Graph Template
(41.12 KiB) Downloaded 1799 times
w32_exch_query_ucf.pl.txt
Perl Script
(3.92 KiB) Downloaded 1902 times
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

Here is a script for the filtering (connection, sender, recipient) in Exchange 2003.
Attachments
cacti_data_template_exchange_filtering_statistics.xml
Data template
(15.25 KiB) Downloaded 1755 times
cacti_graph_template_exchange_filtering_statistics.xml
Graph template
(46.08 KiB) Downloaded 1729 times
w32_exch_query_filtering.pl.txt
perl script
(3.89 KiB) Downloaded 1859 times
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

Here are some graph screenshots...
Attachments
Mailbox Stats Graph
Mailbox Stats Graph
mb_graph.gif (7.85 KiB) Viewed 40551 times
Information Store Stats Graph
Information Store Stats Graph
is_graph.gif (6.41 KiB) Viewed 40549 times
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

Here are some more screenshots of graphs
Attachments
Exchange Filtering Graph
Exchange Filtering Graph
filtering_graph.gif (11.24 KiB) Viewed 40548 times
Intelligent Message Filtering (IMF) Graph
Intelligent Message Filtering (IMF) Graph
imf_graph.gif (10.73 KiB) Viewed 40548 times
Swen

Post by Swen »

Holy ! This looks awesome. Thanks for sharing.
guest

linux

Post by guest »

Hi!
this scripts works in linux ?

Regards
Jtb
Posts: 30
Joined: Thu Aug 19, 2004 8:13 am
Location: Germany
Contact:

Post by Jtb »

Hi,

could you please post the XML for "Mailbox Stats Graph"?

thx!
Jens
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

Sorry JTB, noticed I missed that and another file or two...
Attachments
cacti_graph_template_exchange_connections.xml
Information Store - Connections Graph Template
(10.97 KiB) Downloaded 2164 times
cacti_graph_template_exchange_delivery_statistics.xml
Mailbox - SMTP Performance Graph
(21.83 KiB) Downloaded 2181 times
Jtb
Posts: 30
Joined: Thu Aug 19, 2004 8:13 am
Location: Germany
Contact:

Post by Jtb »

thank you!

one question: why do you ignore the hostname in the data template?
Jens
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

It's not that I ignore it, I uhh don't know how to use it correctly in the template to pass it along and haven't researched how to do it yet...wanna give a pointer or two? :)
oxy
Posts: 18
Joined: Wed Sep 01, 2004 3:58 am

Post by oxy »

hi

I think that Win32::OLE doesn't work under linux distribution.

Can u confirm it ?
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

Yes, that is a windows specific moniker. I believe using NSclient or something like that you can query WMI data from *nix distros...do a little searching because I know a few people here are doing it successfully.
Jtb
Posts: 30
Joined: Thu Aug 19, 2004 8:13 am
Location: Germany
Contact:

Post by Jtb »

DevilSun wrote:It's not that I ignore it, I uhh don't know how to use it correctly in the template to pass it along and haven't researched how to do it yet...wanna give a pointer or two? :)
just type hostname as special type code in our input field (like you done it) AND:
- leave the custom data field empty
- uncheck the checkbox ("Use Per-Data Source Value (Ignore this Value)")

btw: I got a nice exchange-graph: MAPI RPC Requests and RPC Averaged Latency.. I will publish the template as soon as the hrule-bug (see http://www.raxnet.net/board/viewtopic.php?t=4693) is fixed and after I checked why I get just low values for MAPI RPC Requets.
Attachments
Exchange RPC: MAPI RPC Requests and RPC Averaged Latency (vbs/wmi)
Exchange RPC: MAPI RPC Requests and RPC Averaged Latency (vbs/wmi)
exchange-rpc.GIF (8.96 KiB) Viewed 40205 times
Jens
DevilSun
Cacti User
Posts: 166
Joined: Fri Jul 16, 2004 1:59 pm
Location: Oregon

Post by DevilSun »

Nice, and thanks. I had that hostname stuff setup on a few things, just never continueed doing it.

As far as your RPC stuff, I swear I was monitoring the RPC requests as well, and IMO the counter was way off...it rarely ever reported anything and of course since we use all Outlook clients and quite a few of them, 0 or micro results are not correct.

The RPC latency is pretty nice though.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest