Exchange 2007 from Linux

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

Moderators: Developers, Moderators

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

Post by baxford »

I installed the x64 version of NSClient++ on my Exchange server. I need to put check_nt on my Windows cacti box, right? Where do I get check_nt?
[b]Cacti Version - 0.8.7b[/b]
Plugin Architecture - 2.1
Poller Type - spine-0.8.7c-beta3-win32
Server Info - Windows Server 2003 x86
Web Server - IIS6.0
PHP - 5.2.6
MySQL - 5.0.67-community-nt
RRDTool - 1.2.26
SNMP - 5.4.2
Plugins:
Thresholds (thold - v0.3.9)
Global Plugin Settings (settings - v0.5)
Realtime for Cacti (realtime - v0.32)
Network Discovery (discovery - v0.8.4)
Network Tools (tools - v0.3)
Update Checker (update - v0.4)
Cacti-ReportIt (reportit - v0.6.1)
Real-time statistics (zond - v0.34)
Device Tracking (mactrack - v1.1)
RRD File Cleaner (RRD Cleaner - v0.34)
Host Info (hostinfo - v0.2)
exklusve
Posts: 9
Joined: Wed Mar 11, 2009 1:42 pm

Post by exklusve »

Hello!
Thanks very much for the great scripts.

I've been beating up on this for a good portion of the day.

I'm able to get (v_bytes_allocated): Virtual Bytes Allocated to show up on the graph, but the rest of the data is still at 'nan'.

I'm not seeing any errors in the cacti log, even with it in debug mode. I'm able to pull all 4 needed results manually by executing the perl script, and i see the same results in the cacti log.

For some reason it is only displaying virutal bytes allocated.

Any ideas?

Thanks!
nlopezs
Posts: 2
Joined: Sun May 03, 2009 2:51 pm

Post by nlopezs »

Hi guys!

I also have some missing data from the message graph. I am not getting data from SMTP Msgs Submitted, SMTP msgs sent or any of the totals

I ran the script from the terminal sucessfully.

IS_MsgsSent:680
IS_MsgsDelivered:2075
IS_MsgsSubmitted:602
SMTP_MsgsReceived:1555
SMTP_MsgsSent:563
SMTP_MsgsSubmitted:2586



Any ideas?
Attachments
Exchange 2007 SP 1
Exchange 2007 SP 1
exchange.png (50.73 KiB) Viewed 9794 times
nlopezs
Posts: 2
Joined: Sun May 03, 2009 2:51 pm

Post by nlopezs »

Hi guys!

I figured out the problem with some of the missing data.

the exchange2007_message.pl script has an incorrect varible
$SMTPMessagesReceived is chomp with chomp $SMTPMessagesSubmitted;

just rename the chomp statement the follows the $SMTPMessagesReceived to $SMTPMessagesReceived; and things should start showing correcly.

The other scrip that has an error is the exchange2007_spamfilter.pl the variable $skiped has only one "p"; however, the graph is expecting two "pp"

just rename $skiped to $skipped. Do not forget to rename the variable inside the print statement, too.

good luck!
bendsley
Posts: 9
Joined: Tue Aug 30, 2005 4:05 pm

Post by bendsley »

I just wanted to cover a couple of things with people that might be reading this thread and not have to take as much time setting this up as some others have.

First, NSClient++ will work as it has a 64-bit version for Exchange 2007 and also the ability to listen from the original nsclient program. The original NSclient doesn't look like it's been developed on since 2003/2004.

In the NSClient++ folder, you must edit the NSC.ini file and then run the NSClient++ program.

One thing I having issues with at the moment is if I manually run one of these scripts, say the memory script for example, I am receiving the error, campari:/usr/lib/nagios/plugins# /usr/lib/nagios/plugins/check_nt -H bombay -p 1248 -v COUNTER -l "\\MSExchangeIS(_Total)\\Exchmem: Current Virtual Bytes Allocated"
could not fetch information from server


I do have SNMP, WMI for SNMP, etc installed on the Exchange 2007 machine. I've look through the search function on this board with no results that answer the problem I'm having
hapklaar
Posts: 38
Joined: Tue May 31, 2005 10:06 am

Post by hapklaar »

bendsley wrote: One thing I having issues with at the moment is if I manually run one of these scripts, say the memory script for example, I am receiving the error, campari:/usr/lib/nagios/plugins# /usr/lib/nagios/plugins/check_nt -H bombay -p 1248 -v COUNTER -l "\\MSExchangeIS(_Total)\\Exchmem: Current Virtual Bytes Allocated"
could not fetch information from server


I do have SNMP, WMI for SNMP, etc installed on the Exchange 2007 machine. I've look through the search function on this board with no results that answer the problem I'm having
Looks like nsclient is not listening on port 1248 on your server. Port 12489 is the default, so either change the port in nsc.ini to 1248 or change the port in the scripts to 12489
hapklaar
Posts: 38
Joined: Tue May 31, 2005 10:06 am

check_nt

Post by hapklaar »

I've been looking for check_nt for a while today. I finally found it in the nagios-plugin package available for most deb based systems by typing: 'apt-get install nagios-plugins'
Shed
Posts: 5
Joined: Thu Jul 23, 2009 5:02 am
Contact:

Post by Shed »

Hi everybody!

Just wanted to know, if anybody with "all nan's showing" problems could resolve 'em?

I'm using FreeBSD 7.0 with cacti 0.8.7e (upgraded from 0.8.6j). When I run scripts manually I get normal answers:

#perl exchange2007_smtp_traffic.pl server
b_sent:2787970000 b_received:2388480000

But all 6 graphs are empty, just blank fields! in the log I can't see any errors. And I see appropriate files in the rra/ directory. Has anybody solved problem like this?
LinuxGold
Posts: 16
Joined: Tue Jul 21, 2009 8:21 am

Post by LinuxGold »

I am trying to get Exchange Messages to work and found the error in error.log:

Code: Select all

ERROR: parameter '#002A8FFF' does not represent a number in line LINE1:#002A8FFF:IS   Msgs Submitted
hapklaar
Posts: 38
Joined: Tue May 31, 2005 10:06 am

Post by hapklaar »

Shed wrote:Hi everybody!

Just wanted to know, if anybody with "all nan's showing" problems could resolve 'em?

I'm using FreeBSD 7.0 with cacti 0.8.7e (upgraded from 0.8.6j). When I run scripts manually I get normal answers:

#perl exchange2007_smtp_traffic.pl server
b_sent:2787970000 b_received:2388480000

But all 6 graphs are empty, just blank fields! in the log I can't see any errors. And I see appropriate files in the rra/ directory. Has anybody solved problem like this?
Do you see a line in cacti logging like: 07/23/2009 03:40:41 PM - CMDPHP: Poller[0] Host[326] DS[6552] CMD: perl /usr/share/cacti/site/scripts/exchange2007_SMTP_traffic.pl <servername>, output: b_sent:33007300000 b_received:66495100000

when loglevel is on medium? This will indicate the poll is succesfull
Shed
Posts: 5
Joined: Thu Jul 23, 2009 5:02 am
Contact:

Post by Shed »

hapklaar wrote:
Do you see a line in cacti logging like: 07/23/2009 03:40:41 PM - CMDPHP: Poller[0] Host[326] DS[6552] CMD: perl /usr/share/cacti/site/scripts/exchange2007_SMTP_traffic.pl <servername>, output: b_sent:33007300000 b_received:66495100000

when loglevel is on medium? This will indicate the poll is succesfull
I turned the maximum debug logging and yes, I see this:

07/23/2009 05:56:08 PM - CMDPHP: Poller[0] Host[42] DS[707] CMD: perl /usr/local/share/cacti/scripts/exchange2007_smtp_traffic.pl server, output: b_sent:2845290000 b_received:2425210000

It seems to me, that the data is gathered correctly, but smth is with graph drawing... or with data transporting from poller to graphs...
hapklaar
Posts: 38
Joined: Tue May 31, 2005 10:06 am

Post by hapklaar »

Shed wrote:
hapklaar wrote:
Do you see a line in cacti logging like: 07/23/2009 03:40:41 PM - CMDPHP: Poller[0] Host[326] DS[6552] CMD: perl /usr/share/cacti/site/scripts/exchange2007_SMTP_traffic.pl <servername>, output: b_sent:33007300000 b_received:66495100000

when loglevel is on medium? This will indicate the poll is succesfull
I turned the maximum debug logging and yes, I see this:

07/23/2009 05:56:08 PM - CMDPHP: Poller[0] Host[42] DS[707] CMD: perl /usr/local/share/cacti/scripts/exchange2007_smtp_traffic.pl server, output: b_sent:2845290000 b_received:2425210000

It seems to me, that the data is gathered correctly, but smth is with graph drawing... or with data transporting from poller to graphs...
Only thing I can come up with is maybe a maximum value in the data template, which causes cacti to think the gathered values are invalid. But that's normally 0 for the "Exchange 2007 - SMTP Traffic" DT...
Shed
Posts: 5
Joined: Thu Jul 23, 2009 5:02 am
Contact:

Post by Shed »

I noticed in logs such things

07/23/2009 06:10:55 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (709, '', '2009-07-23 18:10:42', 'UsrCount:50 ActiveUsrCount:46 OWAUsr:0')"

You see? rrd_name is empty... may be this is normal for custom scripts, but I didn't notice such thing for other custom scripts..
LinuxGold
Posts: 16
Joined: Tue Jul 21, 2009 8:21 am

Re: Exchange Templates for Exchange 2007

Post by LinuxGold »

How do I resolve this problem:

root@motubuntu01:/usr/share/cacti/site/scripts# /usr/bin/perl /usr/share/cacti/site/scripts/exchange2007_SMTP_traffic.pl server
b_sent:NSClient - ERROR: Could not complete the request check log file for more information. b_received:NSClient - ERROR: Could not complete the request check log file for more information.
LinuxGold
Posts: 16
Joined: Tue Jul 21, 2009 8:21 am

Post by LinuxGold »

I got it all figured out. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests