Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Sep 26, 2018 12:16 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Windows 2003 Domain Controller NTDS Stats
PostPosted: Wed Jun 07, 2006 3:42 pm 
Offline

Joined: Fri Feb 11, 2005 5:32 pm
Posts: 37
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:
w32_ntds_stats.pl.txt [5.27 KiB]
Downloaded 4862 times
cacti_graph_template_w32_ntds_stats.xml [21.94 KiB]
Downloaded 3667 times
cacti_data_template_w32_ntds_stats.xml [7.58 KiB]
Downloaded 3080 times
pic1.PNG
pic1.PNG [ 52.98 KiB | Viewed 56232 times ]
Top
 Profile  
 
 Post subject: Re: Windows 2003 Domain Controller NTDS Stats
PostPosted: Mon Aug 14, 2006 11:12 am 
Offline
Cacti User

Joined: Mon Jul 10, 2006 10:36 am
Posts: 77
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


Top
 Profile  
 
 Post subject: Re: Windows 2003 Domain Controller NTDS Stats
PostPosted: Mon Aug 14, 2006 1:15 pm 
Offline

Joined: Fri Feb 11, 2005 5:32 pm
Posts: 37
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


Top
 Profile  
 
 Post subject: Re: Windows 2003 Domain Controller NTDS Stats
PostPosted: Thu Aug 17, 2006 10:59 am 
Offline
Cacti User

Joined: Tue Jul 13, 2004 2:57 am
Posts: 56
Location: Norway
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? :)


Top
 Profile  
 
 Post subject: Error: XML: Hash version does not exist.
PostPosted: Mon Aug 21, 2006 11:11 am 
Offline

Joined: Thu Jul 14, 2005 8:55 am
Posts: 16
Error: XML: Hash version does not exist.

What version of Cacti was this generated in?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 06, 2006 9:33 pm 
Offline

Joined: Wed Sep 06, 2006 9:28 pm
Posts: 2
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 07, 2006 2:56 pm 
Offline

Joined: Fri Feb 11, 2005 5:32 pm
Posts: 37
Version 0.8.6h. I remember I also installed the patches as well. This install was about 4 months ago.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 09, 2006 7:43 am 
Offline
Cacti User
User avatar

Joined: Tue May 03, 2005 4:29 pm
Posts: 163
Location: MD, US
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 2246 times
Top
 Profile  
 
 Post subject: WMI Interface needs...
PostPosted: Mon Nov 06, 2006 8:53 pm 
Offline

Joined: Wed Mar 30, 2005 2:13 pm
Posts: 23
Location: Irvine, CA
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.


Top
 Profile  
 
 Post subject: Re: WMI Interface needs...
PostPosted: Mon Nov 06, 2006 10:21 pm 
Offline
Cacti Pro User
User avatar

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


Top
 Profile  
 
 Post subject: Re: WMI Interface needs...
PostPosted: Tue Nov 07, 2006 12:22 pm 
Offline

Joined: Wed Mar 30, 2005 2:13 pm
Posts: 23
Location: Irvine, CA
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. :-(


Top
 Profile  
 
 Post subject: Re: WMI Interface needs...
PostPosted: Tue Nov 07, 2006 3:08 pm 
Offline

Joined: Wed Mar 30, 2005 2:13 pm
Posts: 23
Location: Irvine, CA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 27, 2007 1:54 pm 
Offline
Cacti User

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

_________________
Cacti Version - 0.8.7b
Plugin Architecture - 2.2 Beta
Poller Type - CMD.php
Server Info - Linux 2.6.9-78.0.1.ELsmp
Web Server - Apache/2.0.52 (Red Hat)
PHP - 4.3.9
MySQL - 4.1.22
RRDTool - 1.2.23
SNMP - 5.1.2
Plugins
    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)


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 03, 2007 11:47 am 
Offline
Cacti User

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

_________________
Cacti Version - 0.8.7b
Plugin Architecture - 2.2 Beta
Poller Type - CMD.php
Server Info - Linux 2.6.9-78.0.1.ELsmp
Web Server - Apache/2.0.52 (Red Hat)
PHP - 4.3.9
MySQL - 4.1.22
RRDTool - 1.2.23
SNMP - 5.1.2
Plugins
    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)


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 04, 2007 1:38 am 
Offline
Cacti Guru User

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

_________________
Quote:
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group