Monitoring Exchange 2003 from Linux Cacti

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

Moderators: Developers, Moderators

Post Reply
zeroy
Posts: 25
Joined: Wed Jan 25, 2006 8:27 am

Post by zeroy »

Some pics of my graphs...
Attachments
Connections
Connections
1.jpg (52.58 KiB) Viewed 16793 times
Delivery Filters
Delivery Filters
2.jpg (58.41 KiB) Viewed 16793 times
IMF filter
IMF filter
3.jpg (94.69 KiB) Viewed 16793 times
RPC requests
RPC requests
4.jpg (51.16 KiB) Viewed 16793 times
¬¬ZeRoY¬¬
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

Yup - getting the Disk space and Interface graphs

Ah... That'd be why then...

Is this easy to do? Does it require reboot of the Win2k box?

Argon0
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

Lovely Graphs BTW - not got IMF installed, but other graphs would be very useful.

Argon0
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
cleaner
Posts: 36
Joined: Mon Feb 28, 2005 10:12 am

Post by cleaner »

Getting some weird stuff from the scripts. The users script works fine but all the others out put this:


02/02/2006 03:00:29 PM - CACTID: Poller[0] Host[27] DS[853] SCRIPT: perl /usr/local/apache2/htdocs/cacti/scripts/exchange_imf_script.pl sssexch01, output: U
02/02/2006 03:00:29 PM - CACTID: Poller[0] Host[27] DS[853] WARNING: Result from SCRIPT not valid. Partial Result: TotalMessagesAssign...


2/02/2006 03:00:29 PM - CACTID: Poller[0] Host[27] DEBUG: The POPEN returned the following File Descriptor 10
02/02/2006 03:00:29 PM - CACTID: Poller[0] Host[27] DS[852] SCRIPT: perl /usr/local/apache2/htdocs/cacti/scripts/exchange_filters_script.pl sssexch01, output: U
02/02/2006 03:00:29 PM - CACTID: Poller[0] Host[27] DS[852] WARNING: Result from SCRIPT not valid. Partial Result: BlockListDNSQueries...


02/02/2006 03:00:18 PM - CACTID: Poller[0] Host[27] DEBUG: The POPEN returned the following File Descriptor 10
02/02/2006 03:00:18 PM - CACTID: Poller[0] Host[27] DS[851] SCRIPT: perl /usr/local/apache2/htdocs/cacti/scripts/exchange_emails_script.pl sssexch01 get SendQueueSize,ReceiveQueueSize,MessagesSentPermin,MessagesSubmittedPermin,MessagesDeliveredPermin, output: U
02/02/2006 03:00:18 PM - CACTID: Poller[0] Host[27] DS[851] WARNING: Result from SCRIPT not valid. Partial Result: MessagesSubmittedPe...
User avatar
vedd99
Posts: 32
Joined: Wed Jan 11, 2006 4:51 pm
Contact:

connections graph

Post by vedd99 »

any idea why the connections graph would only display active connections? when I run the script manually from the command line everything seems to be working fine, it just doesn't make it to the graph.

gentoo scripts # perl exchange_users_script.pl 10.x.x.x
UserCount:168 ActiveUserCount:107 ActiveConn:338
User avatar
vedd99
Posts: 32
Joined: Wed Jan 11, 2006 4:51 pm
Contact:

Re: connections graph

Post by vedd99 »

vedd99 wrote:any idea why the connections graph would only display active connections? when I run the script manually from the command line everything seems to be working fine, it just doesn't make it to the graph.

gentoo scripts # perl exchange_users_script.pl 10.x.x.x
UserCount:168 ActiveUserCount:107 ActiveConn:338
actually my graphs show lower values that what the perl script reports as well, very strange (see screenshot).
Attachments
exchange-connections.JPG
exchange-connections.JPG (28.79 KiB) Viewed 16693 times
Rene Doove
Posts: 4
Joined: Tue May 04, 2004 7:57 am

Post by Rene Doove »

I have the same problems as vedd99: script runs fine
but graph is not always showing total number of users.

anyone got an idea?
Attachments
graph_image.php.png
graph_image.php.png (5.58 KiB) Viewed 16689 times
zeroy
Posts: 25
Joined: Wed Jan 25, 2006 8:27 am

Post by zeroy »

Its actually the same for me, not always...Could be a graph Template issue, there were designed for Cacti running on Windows box, not sure how to fix it :(
¬¬ZeRoY¬¬
User avatar
vedd99
Posts: 32
Joined: Wed Jan 11, 2006 4:51 pm
Contact:

Post by vedd99 »

Rene Doove wrote:I have the same problems as vedd99: script runs fine
but graph is not always showing total number of users.

anyone got an idea?
I have read on another thread that you can change the Data Template value from 100 to 0 to fix your problem.

Go to Console / Data Templates / Exchange - I.S. Stats and select the count_users tab and change the Maximum Value to 0.

I tried this for mine with no luck, but I think I have a different problem with the actual graph template.
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

Hokay, Now I've got check_nt installed, nsclient on the Exchange server (and some others) and can gather some of the data I want (e.g. System Uptime, active connections, etc..)

But not what I really want (message stats).

I understand how check_nt works, AND how the results are turned into graphs (at last) and have created a couple of graphs myself :D ...

I can run the query from a command line correctly, and get expected results, but I'm STILL getting nans on my Exchange Delivery Stats graph...

HAYELP!!!

(actually just had a thought, wonder if the data template is passing the correct variable through, I'll have a tinker and find out if I can get this to work...)
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

AHA!!! I think it may have ben a permissions thing... check_nt in .../nagios/plugins was owned by root, check_nt in /var/www/html/scripts was owned by apache (which is what I think Cacti runs as in CactiEZ...

Changed, lets see what happens now!
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

On the other hand I think I spotted a flaw with this method of data gathering... The counter returned is e.g. deliveries per min, BUT this is a one off query (i.e. its the CURRENT deliveries per min).

Cacti graphs every 5 minutes, so what you are getting is not the average deliveries per min over the 5 minute period BUT the Current Deliveries per minute AT THE POINT IN TIME THE MEASURE IS TAKEN.

What is needed is a similar method to that used when gathering snmp data for bandwidth.

I.E. count no. of messages delivered TOTAL, (call this instance A), 5 minutes later measure again (instance B) then subtract A from B, and divide by 5 to get no. of messages delivered per minute in the last 5.

Some things do lend themselves better to spot checks (e.g. CPU utilisation - but even this would be better done as an average over last 5 minutes - although not sure how you'd get that data)...

Any thoughts? OR have you already taken this into consideration, and I've just missed it?
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

Nope...not JUST a permissions thing....

Looking at the Data Input method, why does it read like this:

Code: Select all

perl <path_cacti>/scripts/exchange_emails_script.pl <hostname> get SendQueueSize,ReceiveQueueSize,MessagesSentPermin,MessagesSubmittedPermin,MessagesDeliveredPermin
i.e. what purpose does the get perform?
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

Ok, well I took this BACK to basics and using the perfmon_data data input method posted over with a LOAD of templates somewhere on here (search for NSClient or follow this link: http://forums.cacti.net/viewtopic.php?t ... highlight=)

Using the same variables plugged into the permon script that the exchange_emails_scipt.pl uses & your graph template - using the new Data sources I get a graph that works!!

Here's the template:
Attachments
cacti_graph_template_exchange_delivery_statistics_v2.xml
(24.66 KiB) Downloaded 1111 times
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
scen
Posts: 5
Joined: Thu Feb 02, 2006 4:03 am

Post by scen »

what is the meaning of Instance Name and Host Name for the Exchange Graphs?

I received only 0

Is the Host Name the same as the Exchange Name?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests