Windows 2003 Domain Controller NTDS Stats

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

Moderators: Developers, Moderators

kevin_taco
Posts: 37
Joined: Fri Feb 11, 2005 5:32 pm

Windows 2003 Domain Controller NTDS Stats

Post by kevin_taco »

Cacti is a great piece of software. It's very helpful at work (and at home too!). I recently created an NTDS stats graph and decided to share it on this message board. Hopefully folks will find this useful...

This uses WMI and it's only been run against Windows 2003 boxes.
Attachments
pic1.PNG
pic1.PNG (52.98 KiB) Viewed 59670 times
cacti_data_template_w32_ntds_stats.xml
(7.58 KiB) Downloaded 3296 times
cacti_graph_template_w32_ntds_stats.xml
(21.94 KiB) Downloaded 3869 times
w32_ntds_stats.pl.txt
(5.27 KiB) Downloaded 5026 times
ddonohue
Cacti User
Posts: 77
Joined: Mon Jul 10, 2006 10:36 am
Contact:

Re: Windows 2003 Domain Controller NTDS Stats

Post by ddonohue »

kevin_taco wrote:Cacti is a great piece of software. It's very helpful at work (and at home too!). I recently created an NTDS stats graph and decided to share it on this message board. Hopefully folks will find this useful...

This uses WMI and it's only been run against Windows 2003 boxes.

Is there any way, we could get this to function on linux? using maybe, like check_nt?

Donohue
kevin_taco
Posts: 37
Joined: Fri Feb 11, 2005 5:32 pm

Re: Windows 2003 Domain Controller NTDS Stats

Post by kevin_taco »

ddonohue wrote:
kevin_taco wrote:Cacti is a great piece of software. It's very helpful at work (and at home too!). I recently created an NTDS stats graph and decided to share it on this message board. Hopefully folks will find this useful...

This uses WMI and it's only been run against Windows 2003 boxes.

Is there any way, we could get this to function on linux? using maybe, like check_nt?

Donohue
This info is exposed via the NTDS Performance object in Perfmon so I can't see why not.

-kevin_taco
laffen
Cacti User
Posts: 56
Joined: Tue Jul 13, 2004 2:57 am
Location: Norway

Re: Windows 2003 Domain Controller NTDS Stats

Post by laffen »

kevin_taco wrote:
ddonohue wrote:
kevin_taco wrote:Cacti is a great piece of software. It's very helpful at work (and at home too!). I recently created an NTDS stats graph and decided to share it on this message board. Hopefully folks will find this useful...

This uses WMI and it's only been run against Windows 2003 boxes.

Is there any way, we could get this to function on linux? using maybe, like check_nt?

Donohue
This info is exposed via the NTDS Performance object in Perfmon so I can't see why not.

-kevin_taco
Could you be bothered to give it a go? :)
skuzbucket
Posts: 16
Joined: Thu Jul 14, 2005 8:55 am

Error: XML: Hash version does not exist.

Post by skuzbucket »

Error: XML: Hash version does not exist.

What version of Cacti was this generated in?
kevrok
Posts: 2
Joined: Wed Sep 06, 2006 9:28 pm

Post by kevrok »

it can be done via check_nt. I have it working on freebsd using check_nt and the templates above, just slightly modifed. If it proves to be reliable, i'll post the script.
kevin_taco
Posts: 37
Joined: Fri Feb 11, 2005 5:32 pm

Post by kevin_taco »

Version 0.8.6h. I remember I also installed the patches as well. This install was about 4 months ago.
User avatar
Diggit2001
Cacti User
Posts: 195
Joined: Tue May 03, 2005 4:29 pm
Location: MD, US

Post by Diggit2001 »

I have edited this to work with checknt, if anyone is interested. Please let me know if there are any problems.

Thanks
Attachments
ntds_stats.zip
(5.28 KiB) Downloaded 2390 times
FreRange
Posts: 23
Joined: Wed Mar 30, 2005 2:13 pm
Location: Irvine, CA

WMI Interface needs...

Post by FreRange »

My brain is a bit off today but;

Is there anything other then WMI access to the server that is required for this perl script? I can't seen to get any data from the query...


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

Re: WMI Interface needs...

Post by streaker69 »

FreRange wrote:My brain is a bit off today but;

Is there anything other then WMI access to the server that is required for this perl script? I can't seen to get any data from the query...


Thanks.
You need to have the NSClient running on the Windows servers as well.
FreRange
Posts: 23
Joined: Wed Mar 30, 2005 2:13 pm
Location: Irvine, CA

Re: WMI Interface needs...

Post by FreRange »

streaker69 wrote:
FreRange wrote:My brain is a bit off today but;

Is there anything other then WMI access to the server that is required for this perl script? I can't seen to get any data from the query...


Thanks.
You need to have the NSClient running on the Windows servers as well.
As far as I can see, Diggit2001 scripts require checknt. I'm trying to use kevin_taco's scripts that are just WMI.

I'm trying to stay far away from any 3rd party addon's for windows. I will install then if needed but I would preferr not to.

Cacti 8h
Windows 2003sp1
IIS 6
MySQL 5

I think there might be an issue with my WMI classes on my pri DC's. I've done more testing and the script works on a secondary DC in my domain. I think I have to look into WMI repair. :-(
FreRange
Posts: 23
Joined: Wed Mar 30, 2005 2:13 pm
Location: Irvine, CA

Re: WMI Interface needs...

Post by FreRange »

Yeah I figured it out. Big WMI mess. It's up and running now.

I have another question, what would be a good baseline number for these queries?

150+ servers
700+ Workstations
Exchange 2003
AD 2003

Thanks.
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

Hi All,
I was wondering if i was missing anything. I have imported the templates, and put the script in the scripts folder, but when my poller runs, i get:

Code: Select all

04/27/2007 11:50:03 AM - CMDPHP: Poller[0] Host[5] DS[3773] WARNING: Result from CMD not valid. Partial Result:
When i run the following command

Code: Select all

perl w32_ntds_stats.pl SERVERNAME index 
i get what i think are the correct results, but when it runs with the poller, it is as though it is not getting the switch needed at the end.

Any assistance would be greatly apprecaited.

Thanks much

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]
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

OK, here is an update to the problem that i was having with this script. I was missing the full path to perl in my setup. Once i put that in place, it started working just fine. SORT OF. I know have 3 of my domain controllers that i am unable to get this information for. When i run the script from the command line i get the following message back:

Code: Select all

 Check the computer and class name.
 No information was found on the specified class!
Does anyone have any idea what this means? I have tried restarting WMI on these systems, and nothing seems to help. They are all functional, working domain controllers, so they are responding to these requests, i just can't seem to get this information. I have looked at my firewall logs, and nothing is getting blocked.

Any help would be greatly apprecaited.

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]
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

App,

If you get this message instead of results, this means (normally) that the WMI class does not exist. I got this same error with a couple of DC's I have that are Windows 2000. It works fine on Windows 2003.

If your boxes are W2k3, try running

wmiadap /f

From the command line. Stop and restart the WMI services, and have another go with the script.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest