Windows 2003 Domain Controller NTDS Stats

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

Moderators: Moderators, Developers

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

Windows 2003 Domain Controller NTDS Stats

#1 Post by kevin_taco » Wed Jun 07, 2006 3:42 pm

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 56772 times
cacti_data_template_w32_ntds_stats.xml
(7.58 KiB) Downloaded 3143 times
cacti_graph_template_w32_ntds_stats.xml
(21.94 KiB) Downloaded 3708 times
w32_ntds_stats.pl.txt
(5.27 KiB) Downloaded 4907 times

ddonohue
Cacti User
Posts: 77
Joined: Mon Jul 10, 2006 10:36 am
Contact:

Re: Windows 2003 Domain Controller NTDS Stats

#2 Post by ddonohue » Mon Aug 14, 2006 11:12 am

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

#3 Post by kevin_taco » Mon Aug 14, 2006 1:15 pm

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

#4 Post by laffen » Thu Aug 17, 2006 10:59 am

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.

#5 Post by skuzbucket » Mon Aug 21, 2006 11:11 am

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

#6 Post by kevrok » Wed Sep 06, 2006 9:33 pm

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

#7 Post by kevin_taco » Thu Sep 07, 2006 2:56 pm

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: 163
Joined: Tue May 03, 2005 4:29 pm
Location: MD, US
Contact:

#8 Post by Diggit2001 » Mon Oct 09, 2006 7:43 am

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 2260 times

FreRange
Posts: 23
Joined: Wed Mar 30, 2005 2:13 pm
Location: Irvine, CA

WMI Interface needs...

#9 Post by FreRange » Mon Nov 06, 2006 8:53 pm

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: 711
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Re: WMI Interface needs...

#10 Post by streaker69 » Mon Nov 06, 2006 10:21 pm

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...

#11 Post by FreRange » Tue Nov 07, 2006 12:22 pm

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...

#12 Post by FreRange » Tue Nov 07, 2006 3:08 pm

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: 372
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

#13 Post by apperrault » Fri Apr 27, 2007 1:54 pm

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: 372
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

#14 Post by apperrault » Thu May 03, 2007 11:47 am

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: 1874
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

#15 Post by mcutting » Fri May 04, 2007 1:38 am

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