HOW TO Monitor Exchange 2003 via NSClient++ on FreeBSD

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

Moderators: Developers, Moderators

Post Reply
joejoe
Posts: 5
Joined: Thu Jul 30, 2009 7:29 am

HOW TO Monitor Exchange 2003 via NSClient++ on FreeBSD

Post by joejoe »

I would like to monitor Exchange 2003 information, diskio (each disk), CPULOG (each CPU), mailbox store and other performance information

EX: http://forums.cacti.net/viewtopic.php?t=30438

But, I can not find wmic on freebsd, who could provide relevant Scripts and Templates use NSClient++
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
joejoe
Posts: 5
Joined: Thu Jul 30, 2009 7:29 am

Post by joejoe »

I already use the script, but the script can't monitoring system performance EX: CPULOAD, Disk Reads.

User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

joejoe wrote:I already use the script, but the script can't monitoring system performance EX: CPULOAD, Disk Reads.

Those scripts are fairly easy to modify, just open up the performance counters on the machine, find the ones you want and modify the script and make a new graph template.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
joejoe
Posts: 5
Joined: Thu Jul 30, 2009 7:29 am

Post by joejoe »

But I can not find parameters of check_nt
EX: I would COUNTER Disk Writes Bytes\sec I use

Code: Select all

`$CheckNTPath/check_nt -H $ARGV[0] -p 1248 -v COUNTER -l "\\PhysicalDisk(Total_)\\Disk Writes Bytes\sec"`
But always shows 0

Where can I find the parameters ?
streaker69 wrote: Those scripts are fairly easy to modify, just open up the performance counters on the machine, find the ones you want and modify the script and make a new graph template.
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

joejoe wrote:But I can not find parameters of check_nt
EX: I would COUNTER Disk Writes Bytes\sec I use

Code: Select all

`$CheckNTPath/check_nt -H $ARGV[0] -p 1248 -v COUNTER -l "\\PhysicalDisk(Total_)\\Disk Writes Bytes\sec"`
But always shows 0

Where can I find the parameters ?
That's because you have your counters wrong. Under The Peformance monitor in Windows, once you add it to your graph, you have to right click on it in the bottom to get the actual counter.

this works:

Code: Select all

#!/usr/bin/perl

# Replace '/usr/local/nagios/libexec/check_nt' with the localtion where your check_nt binary is located

$CheckNTPath='/usr/local/nagios/libexec';

$diskio = `$CheckNTPath/check_nt -H $ARGV[0] -p 1248 -v COUNTER -l "\\PhysicalDisk(_Total)\\Disk Writes/sec"`;
chomp $diskio;

print "diskio:" . $diskio ."\n";
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
joejoe
Posts: 5
Joined: Thu Jul 30, 2009 7:29 am

Post by joejoe »

Where is the-l parameters of a more detailed explanation?
streaker69 wrote:That's because you have your counters wrong. Under The Peformance monitor in Windows, once you add it to your graph, you have to right click on it in the bottom to get the actual counter.

this works:

Code: Select all

#!/usr/bin/perl

# Replace '/usr/local/nagios/libexec/check_nt' with the localtion where your check_nt binary is located

$CheckNTPath='/usr/local/nagios/libexec';

$diskio = `$CheckNTPath/check_nt -H $ARGV[0] -p 1248 -v COUNTER -l "\\PhysicalDisk(_Total)\\Disk Writes/sec"`;
chomp $diskio;

print "diskio:" . $diskio ."\n";
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

joejoe wrote:Where is the-l parameters of a more detailed explanation?
Honestly, I don't recall. I remember reading about it years ago when I first started with nsclient and check_nt, but I don't remember. I just know it has to be there.

Just follow my example there and the other examples from other threads and you should be able to figure it out.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests