Windows 2003 Domain Controller NTDS Stats

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

Moderators: Developers, Moderators

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
baxford
Posts: 14
Joined: Thu Nov 20, 2008 10:30 am

Post by baxford »

my data input method, input string includes the full path to perl as follows:

c:/perl/bin/perl.exe c:/inetpub/wwwroot/cacti/scripts/w32_ntds_stats.pl <hostname> get DSDirectoryReadsPersec,DSDirectorySearchesPersec,DSDirectoryWritesPersec,LDAPSearchesPersec,ABBrowsesPersec
joel
Posts: 4
Joined: Tue Feb 17, 2004 12:24 pm

Post by joel »

I have a weird issue with this script

12/08/2008 06:14:09 AM - CMDPHP: Poller[0] Host[15] DS[93] CMD: c:/perl/bin/perl.exe C:/Inetpub/wwwroot/scripts/w32_ntds_stats.pl dc1.domain.com get DSDirectoryReadsPersec,DSDirectorySearchesPersec,DSDirectoryWritesPersec,LDAPSearchesPersec,ABBrowsesPersec, output: DSDirectoryReadsPersec:189895 DSDirectorySearchesPersec:311594 DSDirectoryWritesPersec:14435 LDAPSearchesPersec:311211 ABBrowsesPersec:0

Works fine, both via poller, and CLI, however, the graph never displays. I just get a broken image. The RDD command looks like

c:/Cacti/rrdtool.exe graph - \
--imgformat=PNG \
--start=1228648913 \
--end=1228735313 \
--title="Domain Controller 01 - NTDS Stats" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2008/12/07 06\:21\:53 To 2008/12/08 06\:21\:53\c" \
COMMENT:" \n" \
--vertical-label="" \
--slope-mode \
--font TITLE:10:C:\Windows\Fonts\Arial.ttf \
--font AXIS:6:C:\Windows\Fonts\Arial.ttf \
--font LEGEND:8:C:\Windows\Fonts\Arial.ttf \
--font UNIT:6:C:\Windows\Fonts\Arial.ttf \
DEF:a="C\:/Inetpub/wwwroot/rra/domain_controller_01_dsdirectoryreads_73.rrd":DSDirectorySearches:LAST \
DEF:b="C\:/Inetpub/wwwroot/rra/domain_controller_01_dsdirectoryreads_73.rrd":DSDirectorySearches:AVERAGE \
DEF:c="C\:/Inetpub/wwwroot/rra/domain_controller_01_dsdirectoryreads_73.rrd":DSDirectoryReads:LAST \
DEF:d="C\:/Inetpub/wwwroot/rra/domain_controller_01_dsdirectoryreads_73.rrd":DSDirectoryReads:AVERAGE \
DEF:e="C\:/Inetpub/wwwroot/rra/domain_controller_01_dsdirectoryreads_73.rrd":DSDirectoryWrites:LAST \
DEF:f="C\:/Inetpub/wwwroot/rra/domain_controller_01_dsdirectoryreads_73.rrd":DSDirectoryWrites:AVERAGE \
DEF:g="C\:/Inetpub/wwwroot/rra/domain_controller_01_dsdirectoryreads_73.rrd":ABBrowsesPersec:LAST \
DEF:h="C\:/Inetpub/wwwroot/rra/domain_controller_01_dsdirectoryreads_73.rrd":ABBrowsesPersec:AVERAGE \
DEF:i="C\:/Inetpub/wwwroot/rra/domain_controller_01_dsdirectoryreads_73.rrd":LDAPSearchesPersec:LAST \
DEF:j="C\:/Inetpub/wwwroot/rra/domain_controller_01_dsdirectoryreads_73.rrd":LDAPSearchesPersec:AVERAGE \
CDEF:cdefh=d,8,* \
AREA:a#4668E4FF:"DSDirectory Searches" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
AREA:c#F9FD5FFF:"DSDirectory Reads" \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:d:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefh:MAX:"Maximun\:%8.2lf %s\n" \
LINE3:e#EE5019FF:"DS Directory Writes" \
GPRINT:e:LAST:" Current\:%8.2lf %s" \
GPRINT:f:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:f:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:g#8F9286FF:"ABBrowses Persec" \
GPRINT:g:LAST:" Current\:%8.2lf %s" \
GPRINT:h:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:h:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:i#00FF00FF:"LDAPSearches Persec" \
GPRINT:i:LAST:" Current\:%8.2lf %s" \
GPRINT:j:AVERAGE:"Average%8.2lf %s" \
GPRINT:j:MAX:"Maximum\:%8.2lf %s\n"

Any ideas?

Joel
User avatar
claymen
Cacti User
Posts: 259
Joined: Mon Aug 18, 2008 4:30 am
Location: Australia
Contact:

Post by claymen »

I have been working on something similar using my own wmi.php script and wmic. Example graphs are below and I have attached the templates required.

You can grab the script from http://svn.parkingdenied.com/CactiWMI/

I'm working on one to graph LDAP details separately and anything else that looks like it could be useful to graph.
Attachments
readwrite.gif
readwrite.gif (50.81 KiB) Viewed 4086 times
auth.gif
auth.gif (55.24 KiB) Viewed 4086 times
cacti_graph_template_windows_-_ntds_-_auths_wmi.xml
(18.74 KiB) Downloaded 480 times
cacti_graph_template_windows_-_ntds_-_ds_wmi.xml
(21.22 KiB) Downloaded 547 times
cskp12
Posts: 21
Joined: Thu Jun 18, 2009 8:52 pm

Post by cskp12 »

please talked to me
how this template support windows 2008 sp2 edition ntds?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest