Windows 2003 Domain Controller NTDS Stats

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

Moderators: Developers, Moderators

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

Post by apperrault »

once again, you rock!! That fixed the problem.

thanks again

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 »

Glad it worked.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
nigeltufnel123
Posts: 1
Joined: Tue May 22, 2007 8:52 am

How do I download these ???

Post by nigeltufnel123 »

How do I download these ???....

....nevermind.......figured it out...had to resize my browser window....doy....
joel
Posts: 4
Joined: Tue Feb 17, 2004 12:24 pm

Post by joel »

I've got a stupid problem

06/29/2007 11:35:37 AM - CMDPHP: Poller[0] Host[8] DS[46] CMD: c:/perl/bin/perl5.8.8.exe c:/Inetpub/wwwroot/cacti/scripts/w32_ntds_stats.pl get DSDirectoryReadsPersec,DSDirectorySearchesPersec,DSDirectoryWritesPersec,LDAPSearchesPersec,ABBrowsesPersec, output: U
06/29/2007 11:35:37 AM - CMDPHP: Poller[0] Host[8] DS[46] WARNING: Result from CMD not valid. Partial Result: Unable to talk to WM

But, if I run that exact command from the command prompt, it works fine.

Any ideas?

Joel
joel
Posts: 4
Joined: Tue Feb 17, 2004 12:24 pm

Post by joel »

I see now its not adding in the <hostname> as it should. The question is, why?

Joel
Mistake
Posts: 15
Joined: Fri Aug 03, 2007 5:27 am

Post by Mistake »

but dont whit linux?
the script return this error:
Can't locate Win32/OLE.pm
nils
Posts: 3
Joined: Tue Nov 20, 2007 8:52 pm

Unable to talk to WMI

Post by nils »

:o I am confused.
The cacti log:
11/21/2007 10:15:06 PM - CMDPHP: Poller[0] Host[9] DS[26] WARNING: Result from CMD not valid. Partial Result: Unable to talk to WM
but I can get sucess result through command:
c:/perl/bin/perl.exe C:/Inetpub/wwwroot/cacti/scripts/w32_ntds_stat
s.pl 192.168.64.69 index

any ideas?
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

Nils,
Is Cacti running as the same user account that you are testing as? Have you tried resetting the WMI adapter on the system?

try running this at a command prompt on the system you are having problems with

Code: Select all

wmiadap /f
and then restart the WMI services.

Does that help at all? I have found that the account that cacti runs under needs additional rights to query WMI. I have made the cacti account a member of the admins group on the servers that we are querying with WMI.

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]
diveboy
Posts: 13
Joined: Thu Nov 09, 2006 8:12 pm

Re: Unable to talk to WMI

Post by diveboy »

nils wrote::o I am confused.
The cacti log:
11/21/2007 10:15:06 PM - CMDPHP: Poller[0] Host[9] DS[26] WARNING: Result from CMD not valid. Partial Result: Unable to talk to WM
but I can get sucess result through command:
c:/perl/bin/perl.exe C:/Inetpub/wwwroot/cacti/scripts/w32_ntds_stat
s.pl 192.168.64.69 index

any ideas?
Nils,

go to the Data Input Method, W32 - Get NTDS Stats

in the input string, change all your "/' to "" should fix the problem.
nils
Posts: 3
Joined: Tue Nov 20, 2007 8:52 pm

Post by nils »

thanks any reply.
app, you are right. The cacti user is not the same user as testing user.
I changed the account that cacti using, it work now!
And the admin rights is also needed.
treimers
Cacti User
Posts: 57
Joined: Thu Mar 17, 2005 9:53 pm

check_nt and NTDS

Post by treimers »

btw--

Some of you who have Nagios installed may want to do this to ntds.pl


#$CheckNTPath='/var/www/html/scripts';

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

You could just copy check_nt into the place where Cacti expects it to be.
But I decided to try running it from where Nagios had it.

Now I'm working on this problem:

[root@netmon scripts]# /usr/bin/perl /usr/share/cacti/scripts/ntds.pl <myserverhostname> get DSDirectoryReadsPersec,DSDirectorySearchesPersec,DSDirectoryWritesPersec,LDAPSearchesPersec,ABBrowsesPersec
ABBrowsesPersec:Connection refused
could not fetch information from server LDAPSearchesPersec:Connection refused
could not fetch information from server DSDirectoryWritesPersec:Connection refused
could not fetch information from server DSDirectorySearchesPersec:Connection refused
could not fetch information from server DSDirectoryReadsPersec:Connection refused
could not fetch information from server
[root@netmon scripts]#


Some sort of rights issue.
jacobsmc
Posts: 1
Joined: Tue Aug 19, 2008 3:52 pm

Post by jacobsmc »

This script is exactly what I am looking for, but we can't get it running.

I hoping someone can help me here, I am runnnig Cacti on Ubuntu, everything so far has been working perfectly. We are trying to get NTDS stats from our servers but we see the following from the poller logs

Code: Select all

08/19/2008 09:56:37 PM - SPINE: Poller[0] Host[29] DS[279] SCRIPT: perl /usr/local/cacti-0.8.7b/scripts/w32_ntds_stats.pl SERVERNAME get DSDirectoryReadsPersec,DSDirectorySearchesPersec,DSDirectoryWritesPersec,LDAPSearchesPersec,ABBrowsesPersec, output: U
If we run the perl script from the command line we get the following output

Code: Select all

root@NAMEcacti:/usr/local/cacti-0.8.7b/scripts# perl w32_ntds_stats.pl SERVER
ABBrowsesPersec:\NTDS\AB Browses/sec = 0.00 LDAPSearchesPersec:\NTDS\LDAP Searches/sec = 0.00 DSDirectoryWritesPersec:\NTDS\DS Directory Writes/sec = 0.00 DSDirectorySearchesPersec:\NTDS\DS Directory Searches/sec = 0.00 DSDirectoryReadsPersec:\NTDS\DS Directory Reads/sec = 0.00
We have checked the permissions on the script and it has same owner and permissions as other scripts using check_nt. So we feel that the script is running OK within catci and that the issue is the output format. Interestingly the performance counters on the server do show non zero values so we would expect some non zero values once in a while.

Having not used counters within check_nt before the output format looks unusual, but I have no point of reference to know if Cacti is ok with this data output.

Should I trim the output down to return only the 0.00 values, or will Cacti also have a problem with values containing a point '.'?

Look forward to any help anyone can provide.



OS - Ubuntu 8.04
Cacti Version - 0.8.7b
check_nt - NC_NET 4.4.0
User avatar
claymen
Cacti User
Posts: 259
Joined: Mon Aug 18, 2008 4:30 am
Location: Australia
Contact:

Post by claymen »

I've looked over this and another thread but cant see what has been done to process the raw data..

What have you guys done to sanitize the raw data being given back by PerfRawData_NTDS_NTDS?

From what I understand the raw performance data needs to be "cooked" so to speak else you won't actually get the values you want. For example if I went just off the raw data it claims we have been doing over 3.3 million directory searches per second which is highly unlikely (It would mean every machine in the company is doing over 8000+ searches/second).

Generally we use the PerfFormattedData to get the results preprocessed but it looks like we don't get any data back when using that on NTDS_NTDS so we will have to process the data ourselves.
baxford
Posts: 14
Joined: Thu Nov 20, 2008 10:30 am

Blank Graphs for NTDS

Post by baxford »

Windows Server 2003
IIS6
Version 0.8.7b
ActivePerl 5.10.0 Build 1004

I get disk space graphs just fine from my domain controllers but no data shows up in the graphs for the NTDS.

I can run the script locally on the box from the command line as:

c:/perl/bin/perl.exe c:/inetpub/wwwroot/cacti/scripts/w32_ntds_stats.pl <hostname> get DSDirectoryReadsPersec,DSDirectorySearchesPersec,DSDirectoryWritesPersec,LDAPSearchesPersec,ABBrowsesPersec

with <hostname> removed and the DNS name of the domain controller and it returns results such as:
DSDirectoryReadsPersec:26715588 DSDirectorySearchesPersec:8624607 DSDirectoryWritesPersec:118081 LDAPSearchesPersec:10976022 ABBrowsesPersec:163766
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

If you check the data query, it probably isn't using the full path to perl. I am using this same graph, and had to do this to get it to work.

Hope this helps.
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 3 guests