Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Windows 2003 Domain Controller NTDS Stats
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
kevin_taco



Joined: 11 Feb 2005
Posts: 8

PostPosted: Wed Jun 07, 2006 3:42 pm    Post subject: Windows 2003 Domain Controller NTDS Stats Reply with quote

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.



pic1.PNG
 Description:
 Filesize:  52.98 KB
 Viewed:  21994 Time(s)

pic1.PNG



w32_ntds_stats.pl.txt
 Description:

Download
 Filename:  w32_ntds_stats.pl.txt
 Filesize:  5.27 KB
 Downloaded:  1972 Time(s)


cacti_graph_template_w32_ntds_stats.xml
 Description:

Download
 Filename:  cacti_graph_template_w32_ntds_stats.xml
 Filesize:  21.94 KB
 Downloaded:  1493 Time(s)


cacti_data_template_w32_ntds_stats.xml
 Description:

Download
 Filename:  cacti_data_template_w32_ntds_stats.xml
 Filesize:  7.58 KB
 Downloaded:  1302 Time(s)

Back to top
ddonohue
Cacti User


Joined: 10 Jul 2006
Posts: 75

PostPosted: Mon Aug 14, 2006 11:12 am    Post subject: Re: Windows 2003 Domain Controller NTDS Stats Reply with quote

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
Back to top
kevin_taco



Joined: 11 Feb 2005
Posts: 8

PostPosted: Mon Aug 14, 2006 1:15 pm    Post subject: Re: Windows 2003 Domain Controller NTDS Stats Reply with quote

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
Back to top
laffen
Cacti User


Joined: 13 Jul 2004
Posts: 52
Location: Norway

PostPosted: Thu Aug 17, 2006 10:59 am    Post subject: Re: Windows 2003 Domain Controller NTDS Stats Reply with quote

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?
Back to top
skuzbucket



Joined: 14 Jul 2005
Posts: 16

PostPosted: Mon Aug 21, 2006 11:11 am    Post subject: Error: XML: Hash version does not exist. Reply with quote

Error: XML: Hash version does not exist.

What version of Cacti was this generated in?
Back to top
kevrok



Joined: 06 Sep 2006
Posts: 2

PostPosted: Wed Sep 06, 2006 9:33 pm    Post subject: Reply with quote

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.
Back to top
kevin_taco



Joined: 11 Feb 2005
Posts: 8

PostPosted: Thu Sep 07, 2006 2:56 pm    Post subject: Reply with quote

Version 0.8.6h. I remember I also installed the patches as well. This install was about 4 months ago.
Back to top
Diggit2001
Cacti User


Joined: 03 May 2005
Posts: 78
Location: MD, US

PostPosted: Mon Oct 09, 2006 7:43 am    Post subject: Reply with quote

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

Thanks



ntds_stats.zip
 Description:

Download
 Filename:  ntds_stats.zip
 Filesize:  5.28 KB
 Downloaded:  1025 Time(s)

Back to top
FreRange



Joined: 30 Mar 2005
Posts: 23
Location: Irvine, CA

PostPosted: Mon Nov 06, 2006 8:53 pm    Post subject: WMI Interface needs... Reply with quote

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.
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Mon Nov 06, 2006 10:21 pm    Post subject: Re: WMI Interface needs... Reply with quote

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.
Back to top
FreRange



Joined: 30 Mar 2005
Posts: 23
Location: Irvine, CA

PostPosted: Tue Nov 07, 2006 12:22 pm    Post subject: Re: WMI Interface needs... Reply with quote

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.
Back to top
FreRange



Joined: 30 Mar 2005
Posts: 23
Location: Irvine, CA

PostPosted: Tue Nov 07, 2006 3:08 pm    Post subject: Re: WMI Interface needs... Reply with quote

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.
Back to top
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 352
Location: Emeryville, CA

PostPosted: Fri Apr 27, 2007 1:54 pm    Post subject: Reply with quote

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:
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:
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
Back to top
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 352
Location: Emeryville, CA

PostPosted: Thu May 03, 2007 11:47 am    Post subject: Reply with quote

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:
 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
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 977

PostPosted: Fri May 04, 2007 1:38 am    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 



Powered by phpBB © 2001, 2005 phpBB Group