Exchange 2007 from Linux

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

Moderators: Developers, Moderators

Sjoerd
Posts: 44
Joined: Wed May 28, 2008 5:20 am

Exchange 2007 from Linux

Post by Sjoerd »

Couldn’t find any templates for exchange 2007, so I build some myself, based on other templates found in this forum (Thnx DAP & DevilSun)

These templates uses the nagios client, so this version works on linux. It’s build on CactiEZ. Maybe you should change the location to your check_nt binary in the script.
Also, don’t forget to install the NSClient
Attachments
Memory.JPG
Memory.JPG (46.28 KiB) Viewed 36278 times
Messages.JPG
Messages.JPG (57.32 KiB) Viewed 36277 times
SMTP.JPG
SMTP.JPG (42.29 KiB) Viewed 36277 times
SpamConfidenceLevel.JPG
SpamConfidenceLevel.JPG (75.67 KiB) Viewed 36277 times
Users.JPG
Users.JPG (45.01 KiB) Viewed 36277 times
Last edited by Sjoerd on Mon Jun 09, 2008 4:02 am, edited 1 time in total.
Sjoerd
Posts: 44
Joined: Wed May 28, 2008 5:20 am

Post by Sjoerd »

Check the localtion where your check_nt binary is located, and change it in the script

Here are the scripts. Put these in your <cacti dir>\scripts folder.

Rename to *.pl extension (ie, remove the .txt extension)
Attachments
exchange2007_memory.pl.txt
(870 Bytes) Downloaded 1880 times
exchange2007_messages.pl.txt
(1.55 KiB) Downloaded 2569 times
exchange2007_SMTP_traffic.pl.txt
(528 Bytes) Downloaded 1896 times
exchange2007_spamconfidencelevel.pl.txt
(2.07 KiB) Downloaded 1672 times
exchange2007_users.pl.txt
(710 Bytes) Downloaded 2329 times
Last edited by Sjoerd on Wed Nov 11, 2009 7:03 am, edited 2 times in total.
Sjoerd
Posts: 44
Joined: Wed May 28, 2008 5:20 am

Post by Sjoerd »

The data templates....
Attachments
cacti_data_template_exchange_2007_-_memory.xml
(6.73 KiB) Downloaded 1529 times
cacti_data_template_exchange_2007_-_messages.xml
(8.77 KiB) Downloaded 1808 times
cacti_data_template_exchange_2007_-_smtp_traffic.xml
(4.78 KiB) Downloaded 1627 times
cacti_data_template_exchange_2007_-_spam_confidence_level.xml
(12.5 KiB) Downloaded 1536 times
cacti_data_template_exchange_2007_-_users.xml
(5.72 KiB) Downloaded 2165 times
Sjoerd
Posts: 44
Joined: Wed May 28, 2008 5:20 am

Post by Sjoerd »

And the graph templates....
Attachments
cacti_graph_template_exchange_2007_-_memory.xml
(19.62 KiB) Downloaded 1523 times
cacti_graph_template_exchange_2007_-_messages.xml
(29.71 KiB) Downloaded 1584 times
cacti_graph_template_exchange_2007_-_smtp_traffic.xml
(13.03 KiB) Downloaded 1595 times
cacti_graph_template_exchange_2007_-_spam_confidence_level.xml
(45.78 KiB) Downloaded 1506 times
cacti_graph_template_exchange_2007_-_users.xml
(15.62 KiB) Downloaded 1792 times
Sjoerd
Posts: 44
Joined: Wed May 28, 2008 5:20 am

Post by Sjoerd »

And an other graph....
Attachments
cacti_graph_template_exchange_2007_-_spam_filter.xml
(29.51 KiB) Downloaded 1255 times
cacti_data_template_exchange_2007_-_spam_filter.xml
(8.67 KiB) Downloaded 1191 times
exchange2007_spamfilter.pl.txt
(1.37 KiB) Downloaded 1051 times
SpamFilter.JPG
SpamFilter.JPG (57.81 KiB) Viewed 36279 times
Last edited by Sjoerd on Wed Nov 11, 2009 7:03 am, edited 2 times in total.
anomaly
Posts: 1
Joined: Wed Jul 09, 2008 9:02 am

Post by anomaly »

Thank you very much for these!!!
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

would it be possible for someone to port these to a Windows cacti system? We recently upgraded to Exchange 2007, and i miss my Exchange graphs.

thanks in Advance.

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
DanW
Posts: 3
Joined: Thu Feb 28, 2008 9:48 am

Post by DanW »

anyone got these working?


i can't get them working at all ..

also i'm using nsclient++



Dan
beandip
Posts: 9
Joined: Thu Nov 17, 2005 2:14 pm

Post by beandip »

DanW wrote:anyone got these working?

i can't get them working at all ..

also i'm using nsclient++
Got them working. Don't forget to edit the .pl files for the path to your check_nt. There is also a typo in exchange2007_messages.pl file (incorrect single quote).

A BIG THANKS to Sjoerd for sharing your work.
papada
Posts: 1
Joined: Thu Aug 07, 2008 6:32 am

Exchange Templates for Exchange 2007

Post by papada »

God bless you man. Thanks a lot. Can´t wait for more scripts for Exchange 2007.

Two questions ... The Spam filters must be placed até the Edge Transport or the Hub Transport role of the exchange ? The memory template must be placed where ? Mine is showing only 0s.

#I´m using NSClient++, is there any problem ?

Thanks and advance and congratulations for the really good work.
beandip
Posts: 9
Joined: Thu Nov 17, 2005 2:14 pm

Re: Exchange Templates for Exchange 2007

Post by beandip »

papada wrote:God bless you man. Thanks a lot. Can´t wait for more scripts for Exchange 2007.

Two questions ... The Spam filters must be placed até the Edge Transport or the Hub Transport role of the exchange ? The memory template must be placed where ? Mine is showing only 0s.
Don't know on the spam part as we use a third party product.

My memory graph is reading 0 too. I have not been able to figure out why. When I manually run the perl script I get results back and everything looks correct.

Sjoerd are you still around? Any ideas?
kharford
Cacti User
Posts: 50
Joined: Thu Jul 07, 2005 11:53 am
Location: Mass, USA

Post by kharford »

Hi All,
Running 0.8.7b on CentOS 5.1

Having issues with all these templates, no data being displayed in graphs. Just nan's, any ideas??

I can run the scripts on the command line with no issues on data collection.

/usr/bin/perl /var/www/html/cacti-0.8.7b/scripts/exchange2007_messages.pl xxx.xxx.xxx.xxx IS_MsgsSent:8116 IS_MsgsDelivered:54613 IS_MsgsSubmitted:8816 SMTP_MsgsReceived:0
SMTP_MsgsSent:0 SMTP_MsgsSubmitted:0

/usr/bin/perl /var/www/html/cacti-0.8.7b/scripts/exchange2007_memory.pl xxx.xxx.xxx.xxx mba:77645672 cba:65965576 mvba:66912256 cvba:60489728



09/18/2008 11:42:04 AM - SPINE: Poller[0] Host[790] DS[24227] SCRIPT: /usr/bin/perl /var/www/html/cacti-0.8.7b/scripts/exchange2007_memory.pl , output: U
09/18/2008 11:42:04 AM - SPINE: Poller[0] Host[790] DS[24227] WARNING: Result from SCRIPT not valid. Partial Result: ...
09/18/2008 11:42:04 AM - SPINE: Poller[0] Host[790] DEBUG: The POPEN returned the following File Descriptor 6
09/18/2008 11:42:04 AM - SPINE: Poller[0] Host[790] DS[24226] SCRIPT: /usr/bin/perl /var/www/html/cacti-0.8.7b/scripts/exchange2007_messages.pl , output: U
09/18/2008 11:42:04 AM - SPINE: Poller[0] Host[790] DS[24226] WARNING: Result from SCRIPT not valid. Partial Result: ...
09/18/2008 11:42:04 AM - SPINE: Poller[0] Host[790] DEBUG: The POPEN returned the following File Descriptor 6


Any help would be much appreciated.

Thanks

Ken
baxford
Posts: 14
Joined: Thu Nov 20, 2008 10:30 am

Post by baxford »

Anyone get these to work on Windows?
petegala
Posts: 2
Joined: Fri Nov 28, 2008 3:19 pm

Post by petegala »

These work great - thank you for sharing them!

A few notes:
  • *Works fine with Exchange 2007 on Windows Server 2008, just don't forget to open the proper firewall port for NSClient++
    *Use the x64 version of NSClient++ (the i386 version will not install on Server 2008 anyway)
    *Check data ports - they need to be the same in the scripts, NSClient and the Windows Advanced Firewall
    *For the memory graph: Each variable in the Data Template needs to have its Maximum Value upped to something like 100 million. With 8gb of server memory, the default was waaay too low.
    *The SMTP_traffic data input method needed a little adjusting for case sensitivity, but that may have been my bad typing when creating the script.
Last edited by petegala on Fri Nov 28, 2008 5:04 pm, edited 1 time in total.
petegala
Posts: 2
Joined: Fri Nov 28, 2008 3:19 pm

Post by petegala »

* deleted redundant post *
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests