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.
Windows 2003 Domain Controller NTDS Stats
Moderators: Developers, Moderators
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" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"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
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" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"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
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.
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 (50.81 KiB) Viewed 4086 times
-
- 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
Who is online
Users browsing this forum: No registered users and 1 guest