﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Ipswitch Forums / Ipswitch Products / WhatsUp Gold  / Logical Disk Counters--What's wrong? / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Ipswitch Forums</description><link>http://forums.ipswitch.com/</link><webMaster>forums@ipswitch.com</webMaster><lastBuildDate>Sat, 11 Oct 2008 02:38:21 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>nice script, works nicely for me on all of our servers. Did have a few issues when i realised we had 2x devices with the same IP for some reason, but deleting the bogy fixed it!&lt;br&gt;&lt;br&gt;1 question though, how can i make the script alert me at 25% and then again at 10% free space?&lt;br&gt;&lt;br&gt;Cheers</description><pubDate>Tue, 07 Oct 2008 20:35:08 GMT</pubDate><dc:creator>an-D</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>Error: Source:'ADODB.Recordset'&lt;br&gt;Line:77 Char:2&lt;br&gt;Error:0 'Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.'&lt;br&gt;-v&lt;br&gt;(null)&lt;br&gt;&lt;br&gt;We got the same error on selected server. Any ideas? It must be a database problem, because the "Disk Utilization Performance Monitor" get results from the server. I deleted the server and added it again to whats up. But that didnt change my problem. The Script cant add the Disk_Space_Results attribute and ignores the Disk_Space_Thresholds attribute. Perhaps we can delete all database stuff referenced to the broken devices. I dont know how...</description><pubDate>Wed, 10 Sep 2008 16:46:04 GMT</pubDate><dc:creator>oby</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>[quote][b]jchong (8/28/2008)[/b][hr]Thanks for the great script - I'm using it on all my Microsoft Windows based severs.&lt;br&gt;&lt;br&gt;Does anybody know if this can be used with linux based servers?  I have disk utilization setup for the linux servers and created the following attributes for the server:&lt;br&gt;&lt;br&gt;Disk_Space_Thresholds&lt;br&gt;/var=15%;/home=10%;/usr=15%&lt;br&gt;&lt;br&gt;I get the following error when testing:&lt;br&gt;&lt;br&gt;Error: Source:'Microsoft OLE DB Provider for ODBC Drivers'&lt;br&gt;Line:76  Char:2&lt;br&gt;Error:0  '[Microsoft][ODBC SQL Server Driver][SQL Server]Divide by zero error encountered.'&lt;br&gt;-v&lt;br&gt;(null)&lt;br&gt;[/quote]&lt;br&gt;&lt;br&gt;&lt;br&gt;Some unix devices (Exampe: /sys, /var/lib/nfs/rpc_pipefs, /proc/sys/fs/binfmt_misc) are listed as having 0 space available which caused problems with the SQL query.&lt;br&gt;&lt;br&gt;The following changes to the code fixes this problem (line 75 - see [b]bold text[/b]):&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;sSql = "SELECT SDI.sDescription, SD.dPollTime, D.sDisplayName, (1 - SD.nUsed_Avg / SD.nSize) * 100 AS perc, (SD.nSize - SD.nUsed_Avg) / 1073741824 AS giga, (SD.nSize - SD.nUsed_Avg) / 1048576 AS mega FROM Device AS D INNER  JOIN PivotStatisticalMonitorTypeToDevice AS PSM ON PSM.nDeviceID = D.nDeviceID INNER  JOIN StatisticalDiskIdentification AS SDI ON SDI.nPivotStatisticalMonitorTypeToDeviceID = PSM.nPivotStatisticalMonitorTypeToDeviceID INNER  JOIN StatisticalDisk AS SD ON SD.nStatisticalDiskIdentificationID = SDI.nStatisticalDiskIdentificationID [b]AND SD.nSize &gt; 0[/b] WHERE D.nDeviceID = '" &amp; nDeviceID &amp; "' AND SD.dPollTime = (SELECT top 1 SD.dPollTime FROM Device AS D INNER  JOIN PivotStatisticalMonitorTypeToDevice AS PSM ON PSM.nDeviceID = D.nDeviceID INNER  JOIN StatisticalDiskIdentification AS SDI ON SDI.nPivotStatisticalMonitorTypeToDeviceID = PSM.nPivotStatisticalMonitorTypeToDeviceID INNER  JOIN StatisticalDisk AS SD ON SD.nStatisticalDiskIdentificationID = SDI.nStatisticalDiskIdentificationID [b]AND SD.nSize &gt; 0[/b] WHERE D.nDeviceID = '" &amp; nDeviceID &amp; "' ORDER BY SD.dPollTime DESC) ORDER BY SDI.sDescription"&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;This causes the query to ignore devices which have 0 size.  After making this change, I'm able to use this script with my linux servers as well.</description><pubDate>Tue, 02 Sep 2008 16:45:40 GMT</pubDate><dc:creator>jchong</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>Thanks for the great script - I'm using it on all my Microsoft Windows based severs.&lt;br&gt;&lt;br&gt;Does anybody know if this can be used with linux based servers?  I have disk utilization setup for the linux servers and created the following attributes for the server:&lt;br&gt;&lt;br&gt;Disk_Space_Thresholds&lt;br&gt;/var=15%;/home=10%;/usr=15%&lt;br&gt;&lt;br&gt;I get the following error when testing:&lt;br&gt;&lt;br&gt;Error: Source:'Microsoft OLE DB Provider for ODBC Drivers'&lt;br&gt;Line:76  Char:2&lt;br&gt;Error:0  '[Microsoft][ODBC SQL Server Driver][SQL Server]Divide by zero error encountered.'&lt;br&gt;-v&lt;br&gt;(null)&lt;br&gt;</description><pubDate>Thu, 28 Aug 2008 10:18:41 GMT</pubDate><dc:creator>jchong</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>[quote][b]nickcarbone (5/21/2008)[/b][hr]&lt;BR&gt;&lt;BR&gt;After applying the script i get the following error message when testing it against a server.&lt;BR&gt;&lt;BR&gt;Error: Source:'ADODB.Recordset'&lt;BR&gt;Line:77 Char:2&lt;BR&gt;Error:0 'Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.'&lt;BR&gt;-v&lt;BR&gt;(null)&lt;BR&gt;&lt;BR&gt;Any ideas?[/quote]&lt;/P&gt;&lt;P&gt;OK, I am getting this exact error on select servers but not others. It's driving me crazy.</description><pubDate>Tue, 26 Aug 2008 15:30:24 GMT</pubDate><dc:creator>Tommyboy</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>Hey, I wanted to thank everyone who made this script.&lt;/P&gt;&lt;P&gt;I have one interesting issue though; it's not working for some servers. I look in attributes of the working and non working servers and noticed something interesing. On the servers where the script works, I will see a 'Disk_Space_results' attribute with the appropriate results, but it is missing on the non-working servers. Any idea why?</description><pubDate>Thu, 21 Aug 2008 12:17:46 GMT</pubDate><dc:creator>Tommyboy</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>The disk monitor script does work in WUG12.  I just recently upgraded and have been using it for a week.&lt;br&gt;&lt;br&gt;Pat</description><pubDate>Wed, 30 Jul 2008 15:25:14 GMT</pubDate><dc:creator>pscad00</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>not sure why, but I can't delete this post.  Question retracted I found my mistake. </description><pubDate>Mon, 23 Jun 2008 14:57:30 GMT</pubDate><dc:creator>bbrinkman</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>[quote][b]MB - NS (2/8/2008)[/b][hr]&lt;br&gt;There are some scripts around which use directly the values retrieved by the Disk Utilization perf monitors.&lt;br&gt;&lt;br&gt;The one I wrote also allows you to specify the thresholds using the device attributes (enclosed in this post). This way you avoid having multiple monitors depending on the letters and thresholds you need. Please note that you need to have 'disk Utilization' enabled and working on the device.[/quote]&lt;br&gt;&lt;br&gt;This script is WONDERFUL, and saved my ***.  :)&lt;br&gt;&lt;br&gt;</description><pubDate>Tue, 03 Jun 2008 10:55:46 GMT</pubDate><dc:creator>Elipsis</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>[quote][b]nickcarbone (5/28/2008)[/b][hr]I am getting the same error message on each server i try.[/quote]&lt;br&gt;&lt;br&gt;Then I really don't know. Do you have access to a SQL Enterprise Manager ?&lt;br&gt;&lt;br&gt;If yes, then try to run the SQL query directly using this tool, to see what you get.&lt;br&gt;&lt;br&gt;&lt;br&gt;[quote]Hi MB-NS, thanks for the script, it works on all the Win2k/2k3 servers except one Win2k server.&lt;br&gt;&lt;br&gt;I'm getting this error during the Active Script Monitor Test:&lt;br&gt;&lt;br&gt;Error: Source:'Microsoft OLE DB Provider for ODBC Drivers'&lt;br&gt;Line:76  Char:2&lt;br&gt;Error:0  '[Microsoft][ODBC SQL Server Driver][SQL Server]Divide by zero error encountered.'&lt;br&gt;-v&lt;br&gt;(null)&lt;br&gt;&lt;br&gt;FYI:I'm running WUG Ver. 11&lt;br&gt;&lt;br&gt;Disk utilization perfmon is enabled but I can't get any results in the reports.&lt;br&gt;&lt;br&gt;So does this error mean there are some kind of problem with the WMI?&lt;br&gt;&lt;br&gt;Thanks in advance,&lt;br&gt;&lt;br&gt;Tony[/quote]&lt;br&gt;It does not use WMI at all, but only SNMP.&lt;br&gt;Please check that :&lt;br&gt;1- SNMP credentials are set on the device.&lt;br&gt;2- the SNMP is installed, running and configured with the correct community (these settings are on the service settings, in the services.msc snapin), and also that the WUG IP is allowed (same place).</description><pubDate>Fri, 30 May 2008 07:30:43 GMT</pubDate><dc:creator>MB - NS</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>Hi MB-NS, thanks for the script, it works on all the Win2k/2k3 servers except one Win2k server.&lt;/P&gt;&lt;P&gt;I'm getting this error during the Active Script Monitor Test:&lt;/P&gt;&lt;P&gt;Error: Source:'Microsoft OLE DB Provider for ODBC Drivers'&lt;BR&gt;Line:76  Char:2&lt;BR&gt;Error:0  '[Microsoft][ODBC SQL Server Driver][SQL Server]Divide by zero error encountered.'&lt;BR&gt;-v&lt;BR&gt;(null)&lt;BR&gt;&lt;/P&gt;&lt;P&gt;FYI:I'm running WUG Ver. 11&lt;/P&gt;&lt;P&gt;Disk utilization perfmon is enabled but I can't get any results in the reports.&lt;/P&gt;&lt;P&gt;So does this error mean there are some kind of problem with the WMI?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Tony</description><pubDate>Thu, 29 May 2008 15:32:18 GMT</pubDate><dc:creator>skyrix</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>I am getting the same error message on each server i try.</description><pubDate>Wed, 28 May 2008 14:00:53 GMT</pubDate><dc:creator>nickcarbone</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>Do you have several devices with the same IP address, by any chance ?&lt;br&gt;&lt;br&gt;Does the script work on some devices, or none at all ?</description><pubDate>Wed, 28 May 2008 04:36:24 GMT</pubDate><dc:creator>MB - NS</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br&gt;' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br&gt;' This script is a merge of 2 scripts. Credits go to :&lt;br&gt;' - XXXXX's , which use the performance monitors values to test the disk space, and most code for this script.&lt;br&gt;' - YYYYYY's, which retrieve the thresholds from a specified attribute&lt;br&gt;' I added the feature that, if the given attribute is not set, you can use a default value for all disks.&lt;br&gt;' Also, specifying a threshold of 0 disables the check on that disk.  You must always specify the unit (%, G or M), even when disabling the check.&lt;br&gt;' Format for the thresholds are something like this : 'C:\=10%;D:\=5G;E:\=650M;G:\=0%'&lt;br&gt;' THE DRIVE NAME IN THE ATTRIBUTE MUST BE THE SAME AS THE ONE RETURNED BY THE DISK PERF MONITOR. (e.g. for Windows : C:\, D:\, and so on...)&lt;br&gt;' You can see see the name of each drive by using the Test button and scanning the result.&lt;br&gt;' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br&gt;' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br&gt;&lt;br&gt;' Name of the attribute which will contain the specific thresholds&lt;br&gt;THRESHOLDS_ATTRIBUTE = "Disk_Space_Thresholds"&lt;br&gt;&lt;br&gt;' Name of the attribute which will contain the result of the check. Automatically created.&lt;br&gt;RESULT_ATTRIBUTE = "Disk_Space_Results"&lt;br&gt;&lt;br&gt;' If the threshold attribute is not found, should the monitor report as DOWN ?&lt;br&gt;' If set to False, it will use the default value for all disks.&lt;br&gt;DOWN_NO_ATTRIBUTE = true&lt;br&gt;&lt;br&gt;' If there are no recent performance entries for at least one device, should the monitor report as DOWN ?  - NOT IMPLEMENTED&lt;br&gt;DOWN_ON_AGED_VALUES = true&lt;br&gt;&lt;br&gt;' MAX_AGE value specify the maximum age for entries, in seconds - NOT IMPLEMENTED&lt;br&gt;MAX_ENTRIES_AGE = 3600&lt;br&gt;&lt;br&gt;' Default value to be used, in percentage. We monitor the FREE SPACE, which must not go below the threshold.&lt;br&gt;' 1- when the attribute doesn't specify the threshold for a given disk&lt;br&gt;' 2- for all disks if there is no attribute AND DOWN_NO_ATTRIBUTE = True&lt;br&gt;' If set to 0, not specified disks will not be checked.&lt;br&gt;DEFAULT_THRESHOLD = 10&lt;br&gt;&lt;br&gt;' Unit of default threshold - THIS IS NOT A DEFAULT UNIT FOR SPECIFIED THRESHOLDS&lt;br&gt;' "%" = percentage&lt;br&gt;' "G" = gigabyte&lt;br&gt;' "M" = megabyte&lt;br&gt;DEFAULT_THRESHOLD_UNIT = "%"&lt;br&gt;&lt;br&gt;' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br&gt;&lt;br&gt;&lt;br&gt;' Set the result code of the check (0=Success, 1=Error)&lt;br&gt;Context.SetResult 0, "No error"&lt;br&gt;bAlarm = false&lt;br&gt;&lt;br&gt;' Retrieve DB object&lt;br&gt;&lt;br&gt;Set oDb = Context.GetDB&lt;br&gt;&lt;br&gt;If IsNull(oDb) Then&lt;br&gt;Context.SetResult 1, "Could not create DB object"&lt;br&gt;Else&lt;br&gt;&lt;br&gt;' Fetch deviceID&lt;br&gt;nDeviceID = Context.GetProperty ("DeviceID")&lt;br&gt;&lt;br&gt;' Get the attribute which contains the specific value.&lt;br&gt;sqlGetDS = "select sValue from DeviceAttribute where (nDeviceID = " &amp; nDeviceID &amp; ") and (sName = '" &amp; THRESHOLDS_ATTRIBUTE &amp; "')"&lt;br&gt;Set oRs1 = oDb.Execute(sqlGetDS)&lt;br&gt;&lt;br&gt;' We report a DOWN if no attribute and script is configured as such.&lt;br&gt;If DOWN_NO_ATTRIBUTE and oRs1.EOF Then&lt;br&gt;Context.SetResult 1, "This monitor needs a attribute named " &amp; THRESHOLDS_ATTRIBUTE &amp; " to work."&lt;br&gt;Else&lt;br&gt;drvMonitors = null&lt;br&gt;If Not oRs1.EOF Then&lt;br&gt;oRs1.moveFirst&lt;br&gt;drvMonitors = split(oRs1("sValue"),";")&lt;br&gt;End If&lt;br&gt;&lt;br&gt;' SQL request. We ask SQL to compute the value we want itself : it return the remaining percentage, megabytes and gigabytes on each disk.&lt;br&gt;sSql = "SELECT     SDI.sDescription, SD.dPollTime, D.sDisplayName, (1 - SD.nUsed_Avg / SD.nSize) * 100 AS perc, (SD.nSize - SD.nUsed_Avg) / 1073741824 AS giga, (SD.nSize - SD.nUsed_Avg) / 1048576 AS mega FROM Device AS D INNER  JOIN PivotStatisticalMonitorTypeToDevice AS PSM ON PSM.nDeviceID = D.nDeviceID INNER  JOIN StatisticalDiskIdentification AS SDI ON SDI.nPivotStatisticalMonitorTypeToDeviceID = PSM.nPivotStatisticalMonitorTypeToDeviceID INNER  JOIN StatisticalDisk AS SD ON SD.nStatisticalDiskIdentificationID = SDI.nStatisticalDiskIdentificationID WHERE D.nDeviceID = '" &amp; nDeviceID &amp; "' AND SD.dPollTime = (SELECT top 1 SD.dPollTime FROM Device AS D INNER  JOIN PivotStatisticalMonitorTypeToDevice AS PSM ON PSM.nDeviceID = D.nDeviceID INNER  JOIN StatisticalDiskIdentification AS SDI ON SDI.nPivotStatisticalMonitorTypeToDeviceID = PSM.nPivotStatisticalMonitorTypeToDeviceID INNER  JOIN StatisticalDisk AS SD ON SD.nStatisticalDiskIdentificationID = SDI.nStatisticalDiskIdentificationID WHERE D.nDeviceID = '" &amp; nDeviceID &amp; "' ORDER BY SD.dPollTime DESC) ORDER BY SDI.sDescription"&lt;br&gt;&lt;br&gt;Set oRs2 = oDb.Execute(sSql)&lt;br&gt;oRs2.moveFirst&lt;br&gt;&lt;br&gt;While Not oRs2.EOF&lt;br&gt;&lt;br&gt;' First we check if the last polled value is a recent one, if that check is enabled&lt;br&gt;' TODO&lt;br&gt;&lt;br&gt;displayName = oRs2("sDisplayName")&lt;br&gt;description = ucase(oRs2("sDescription"))&lt;br&gt;&lt;br&gt;'Default value&lt;br&gt;drvMonitorLimit = DEFAULT_THRESHOLD&lt;br&gt;drvMonitorUnit = DEFAULT_THRESHOLD_UNIT&lt;br&gt;&lt;br&gt;' We retrieve the threshold from the attribute, if it exists.&lt;br&gt;If Not IsNull(drvMonitors) Then&lt;br&gt;For each drvMonitor in drvMonitors&lt;br&gt;'Is it a matching threshold ?&lt;br&gt;tokens = split(drvMonitor, "=")&lt;br&gt;If tokens(0) = description Then&lt;br&gt;' We then retrieve the threshold value AND the unit. The unit MUST be specified.&lt;br&gt;' Correct format is "100M", "10%", "4G" for example.&lt;br&gt;drvMonitorUnit = ucase(Right(tokens(1),1))&lt;br&gt;drvMonitorLimit = int(Left(tokens(1),len(tokens(1))-1))&lt;br&gt;Exit For&lt;br&gt;End If&lt;br&gt;Next&lt;br&gt;End If&lt;br&gt;&lt;br&gt;Select Case drvMonitorUnit&lt;br&gt;Case "%"&lt;br&gt;value = int(oRs2("10"))&lt;br&gt;Case "G"&lt;br&gt;value = int(oRs2("giga"))&lt;br&gt;Case "M"&lt;br&gt;value = int(oRs2("mega"))&lt;br&gt;Case Else&lt;br&gt;' Invalid unit, we will report a Down.&lt;br&gt;value = -1&lt;br&gt;End Select&lt;br&gt;&lt;br&gt;' If unit is invalid, it' a down.&lt;br&gt;If value = -1 Then&lt;br&gt;bAlarm = true&lt;br&gt;oChecksResult = oChecksResult &amp; "Disk " &amp; description &amp; " : threshold unit is invalid (" &amp; drvMonitorUnit &amp; "). You MUST specify %, G or M as a threshold unit (example : C=10%;D=5G;E=650M)" &amp; vbCrLf&lt;br&gt;Else&lt;br&gt;' If unit is valid, but threshold is zero, we don't check.&lt;br&gt;If drvMonitorLimit = 0 Then&lt;br&gt;oChecksResult = oChecksResult &amp; "Disk " &amp; description &amp; " : " &amp; Round(value) &amp; drvMonitorUnit &amp; _&lt;br&gt;" remaining space - not checked because threshold is zero." &amp; vbCrLf&lt;br&gt;Else&lt;br&gt;' Else we check.&lt;br&gt;If value &lt; drvMonitorLimit Then&lt;br&gt;bAlarm = true&lt;br&gt;oChecksResult = oChecksResult &amp; "Disk " &amp; description &amp; " : " &amp; Round(value) &amp; drvMonitorUnit &amp; _&lt;br&gt;" remaining space is below threshold (" &amp; drvMonitorLimit &amp; drvMonitorUnit &amp; ") - DOWN !!" &amp; vbCrLf&lt;br&gt;Else&lt;br&gt;oChecksResult = oChecksResult &amp; "Disk " &amp; description &amp; " : " &amp; Round(value) &amp; drvMonitorUnit &amp; _&lt;br&gt;" remaining space is above threshold (" &amp; drvMonitorLimit &amp; drvMonitorUnit &amp; ") - UP" &amp; vbCrLf&lt;br&gt;End If&lt;br&gt;End If&lt;br&gt;End If&lt;br&gt;oRs2.moveNext&lt;br&gt;Wend&lt;br&gt;&lt;br&gt;' Store the result in an attribute. Allows to access details even on a Device-configured action by using the  %Device.Attribute.* variable.&lt;br&gt;&lt;br&gt;' Formatting it to a SQL compatible format.&lt;br&gt;if (Right(oChecksResult,1) = vbCrLf) Then&lt;br&gt;oChecksResultSQL = Replace(Left(oChecksResult,len(oChecksResult)-1), vbCrLf, "' + CHAR(10) + N'")&lt;br&gt;Else&lt;br&gt;oChecksResultSQL = Replace(oChecksResult, vbCrLf, "' + CHAR(10) + N'")&lt;br&gt;End If&lt;br&gt;&lt;br&gt;' Checking if  the attribute already exists. If not we create one, if yes we simply update it.&lt;br&gt;sqlCheck = "SELECT nDeviceAttributeID FROM DeviceAttribute WHERE (nDeviceID = " &amp; nDeviceID &amp; ") AND (sName = N'" &amp; RESULT_ATTRIBUTE &amp; "')"&lt;br&gt;Set oRs1 = oDb.Execute(sqlCheck)&lt;br&gt;&lt;br&gt;' Storing it in DB as needed.&lt;br&gt;If oRs1.EOF Then&lt;br&gt;sqlStoreResult = "INSERT INTO DeviceAttribute (nDeviceID, sName, sValue) VALUES (" &amp; _&lt;br&gt;nDeviceID &amp; ", N'" &amp; RESULT_ATTRIBUTE &amp; "', N'" &amp; oChecksResultSQL &amp; "')"&lt;br&gt;Else&lt;br&gt;sqlStoreResult = "UPDATE DeviceAttribute SET sValue = N'" &amp; oChecksResultSQL &amp; _&lt;br&gt;"' WHERE (nDeviceID = " &amp; nDeviceID &amp; ") AND (sName = N'" &amp; RESULT_ATTRIBUTE &amp; "')"&lt;br&gt;End If&lt;br&gt;oDb.Execute(sqlStoreResult)&lt;br&gt;&lt;br&gt;&lt;br&gt;' Set the result of the monitor.&lt;br&gt;If bAlarm Then&lt;br&gt;oChecksResult = oChecksResult &amp; vbCrLf &amp; "Monitor is DOWN"&lt;br&gt;Context.SetResult 1, oChecksResult&lt;br&gt;Else&lt;br&gt;oChecksResult = oChecksResult &amp; vbCrLf &amp; "Monitor is UP"&lt;br&gt;Context.SetResult 0, oChecksResult&lt;br&gt;End If&lt;br&gt;End If&lt;br&gt;End If&lt;br&gt;&lt;br&gt;' Cleanup code&lt;br&gt;Set oDb = Nothing&lt;br&gt;Set oRs2 = Nothing&lt;br&gt;Set oRs1 = Nothing&lt;br&gt;</description><pubDate>Tue, 27 May 2008 12:29:21 GMT</pubDate><dc:creator>nickcarbone</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>Could you post the script you're using ?</description><pubDate>Fri, 23 May 2008 04:34:41 GMT</pubDate><dc:creator>MB - NS</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>Yes, the Disk Utilization performance monitor is enabled and I can see data in the report. Also, we are running version 11.</description><pubDate>Thu, 22 May 2008 13:20:19 GMT</pubDate><dc:creator>nickcarbone</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>It means there is no samples in the DB.&lt;br&gt;Did you enable Disk Utilization performance monitor ? If yes, do you have data in the report ?&lt;br&gt;Also, this script has been tested only on WUG11, not on WUG12. It might not work on WUG12.</description><pubDate>Thu, 22 May 2008 04:32:58 GMT</pubDate><dc:creator>MB - NS</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>[quote][b]MB - NS (2/8/2008)[/b][hr][quote][b]BobInDaNoc (2/8/2008)[/b][hr]I've considered setting up SNMP based monitors for the WMI ones that are failing, however it didn't seem as straightforward. The particular WMI monitor that I'm using, %free disk space, per volume, returns a % value that I can easily set a range for. I notice in SNMP mib, there's Bytes total, and bytes available, which would actually require a calculation be made, right, via a script? I didn't see, directly a way to check the free space % via snmp. If you've worked this particular issue out with a script, please share... I do like SNMP, certainly a more direct route into the data, without hardly much of an authentication system....&lt;br&gt;&lt;br&gt;Bob[/quote]&lt;br&gt;There are some scripts around which use directly the values retrieved by the Disk Utilization perf monitors.&lt;br&gt;&lt;br&gt;The one I wrote also allows you to specify the thresholds using the device attributes (enclosed in this post). This way you avoid having multiple monitors depending on the letters and thresholds you need. Please note that you need to have 'disk Utilization' enabled and working on the device.[/quote]&lt;br&gt;&lt;br&gt;After applying the script i get the following error message when testing it against a server.&lt;br&gt;&lt;br&gt;Error: Source:'ADODB.Recordset'&lt;br&gt;Line:77 Char:2&lt;br&gt;Error:0 'Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.'&lt;br&gt;-v&lt;br&gt;(null)&lt;br&gt;&lt;br&gt;Any ideas?</description><pubDate>Wed, 21 May 2008 20:19:05 GMT</pubDate><dc:creator>nickcarbone</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>Somebody Help me in another topic ( really thanks to him ) fo memory utilization, i adapt the script for Cpu Utilisation.&lt;br&gt;&lt;br&gt;The script turn the monitor down if the value of physical Memory is higher than 90% ( or another value ) during 3 hours ( you can easily change this value too ) . &lt;br&gt;So it can avoid the device to get down if memory is used during few minutes.&lt;br&gt;It work similary for CPU, if you have many cores, it take the average of utilization of all cores &lt;br&gt;&lt;br&gt;For The cpu&lt;br&gt;&lt;sub&gt;&lt;br&gt;// Set the result code of the check (0=Success, 1=Error)&lt;br&gt;Context.SetResult( 0, "No error");&lt;br&gt;&lt;br&gt;// WUP Database connect&lt;br&gt;var oDb = Context.GetDB;&lt;br&gt;&lt;br&gt;if (null == oDb) {&lt;br&gt;result = false;&lt;br&gt;err += "WUP DB inaccessible! ";&lt;br&gt;} else {&lt;br&gt;Context.LogMessage("DB OK");&lt;br&gt;&lt;br&gt;// Get DeviceID&lt;br&gt;var deviceID = Context.GetProperty("DeviceID");&lt;br&gt;&lt;br&gt;// Get the Percentage (3H average to maximum) for check&lt;br&gt;var sSql = "SELECT nProcessorLoad_Avg AS Perc FROM StatisticalCPU SM JOIN StatisticalCPUIdentification SMI ON SM.nStatisticalCPUIdentificationID = SMI.nStatisticalCPUIdentificationID JOIN PivotStatisticalMonitorTypeToDevice SMT ON SMI.nPivotStatisticalMonitorTypeToDeviceID = SMT.nPivotStatisticalMonitorTypeToDeviceID WHERE dPollTime &gt; DATEADD(hh,-3,GETDATE()) AND nDeviceID = '"+deviceID+"'";&lt;br&gt;var rs = oDb.Execute(sSql);&lt;br&gt;var perc = rs("Perc")+0;&lt;br&gt;var perc = perc/100&lt;br&gt;&lt;br&gt;Context.LogMessage("Perc: "+perc);&lt;br&gt;&lt;br&gt;rs.Close();&lt;br&gt;oDb.Close();&lt;br&gt;}&lt;br&gt;&lt;br&gt;// Set result Code&lt;br&gt;if (perc &gt; 0.8) {&lt;br&gt;Context.SetResult( 1, "The average utilisation during the last 3 hours was greater than 90%");&lt;br&gt;} else {&lt;br&gt;Context.SetResult( 0, "Utilisation Ok");&lt;br&gt;&lt;/sub&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;For the Memory (only physical )&lt;br&gt;&lt;br&gt;// Set the result code of the check (0=Success, 1=Error)&lt;br&gt;Context.SetResult( 0, "No error");&lt;br&gt;&lt;br&gt;// WUP Database connect&lt;br&gt;var oDb = Context.GetDB;&lt;br&gt;&lt;br&gt;if (null == oDb) {&lt;br&gt;result = false;&lt;br&gt;err += "WUP DB inaccessible! ";&lt;br&gt;} else {&lt;br&gt;Context.LogMessage("DB OK");&lt;br&gt;&lt;br&gt;// Get DeviceID&lt;br&gt;var deviceID = Context.GetProperty("DeviceID");&lt;br&gt;&lt;br&gt;// Get the Percentage (3H average to maximum) for check&lt;br&gt;var sSql = "SELECT Round(AVG(nUsed_Max),0) / nSize AS Perc FROM StatisticalMemory SM JOIN StatisticalMemoryIdentification SMI ON SM.nStatisticalMemoryIdentificationID = SMI.nStatisticalMemoryIdentificationID JOIN PivotStatisticalMonitorTypeToDevice SMT ON SMI.nPivotStatisticalMonitorTypeToDeviceID = SMT.nPivotStatisticalMonitorTypeToDeviceID WHERE dPollTime &gt; DATEADD(hh,-3,GETDATE()) AND sType = 'RAM' AND nDeviceID = '"+deviceID+"' GROUP BY nSize";&lt;br&gt;var rs = oDb.Execute(sSql);&lt;br&gt;var perc = rs("Perc")+0;&lt;br&gt;&lt;br&gt;Context.LogMessage("Perc: "+perc);&lt;br&gt;&lt;br&gt;rs.Close();&lt;br&gt;oDb.Close();&lt;br&gt;}&lt;br&gt;&lt;br&gt;// Set result Code&lt;br&gt;if (perc &gt; 0.7) {&lt;br&gt;Context.SetResult( 1, "The average utilisation during the last 3 hours was greater than 90%");&lt;br&gt;} else {&lt;br&gt;Context.SetResult( 0, "Utilisation Ok");&lt;br&gt;}&lt;br&gt;&lt;br&gt;Hope it can be useful to someone</description><pubDate>Tue, 13 May 2008 03:38:25 GMT</pubDate><dc:creator>kar98ghost</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>[quote][b]MB - NS (5/12/2008)[/b][hr][quote][b]kar98ghost (5/5/2008)[/b][hr]&lt;br&gt;Context.LogMessage( " Hello ");&lt;br&gt;&lt;br&gt;Where could i see the information send??? I start the nmeventviewer ( in Ipswitch/what's up gold/eventviewer.exe ) and i connect to ip where what's up is running ( it's my local computer )&lt;br&gt;[/quote]&lt;br&gt;&lt;br&gt;AFAIK, you can only see it in the Test ox, but you may be able to see it in the WUG Event viewer, if debug is turned on.&lt;br&gt;&lt;br&gt;For your first question about how to include the text in a email :&lt;br&gt;1- either you use an Active Monitor at the monitor level, and you can use the variable %ActiveMonitor.Payload (you should see the string provided in the Context.SetResult method in your script).&lt;br&gt;2- OR you insert the result in a device attribute, as I do in my disk script, and use the %device.attribute.&lt;whatever&gt; variable. The advantage being that you can apply the action at the device-level.&lt;br&gt;&lt;br&gt;BTW, the script output you posted seems like a custom memory script. Did you adapt the disk script in order to check for memory ? If yes, is it possible you share it on this forum ? I think it might interest some people.&lt;br&gt;[/quote]&lt;br&gt;&lt;br&gt;I have a script for checking the physical memory using WMI as a Custom Performance Monitor, but the property CredWindows:Password does not work properly.  I have to hard-code it into the script.  I'm hoping WUP 12 fixes that issue.</description><pubDate>Mon, 12 May 2008 10:58:40 GMT</pubDate><dc:creator>rhugh</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>[quote][b]kar98ghost (5/5/2008)[/b][hr]&lt;br&gt;Context.LogMessage( " Hello ");&lt;br&gt;&lt;br&gt;Where could i see the information send??? I start the nmeventviewer ( in Ipswitch/what's up gold/eventviewer.exe ) and i connect to ip where what's up is running ( it's my local computer )&lt;br&gt;[/quote]&lt;br&gt;&lt;br&gt;AFAIK, you can only see it in the Test ox, but you may be able to see it in the WUG Event viewer, if debug is turned on.&lt;br&gt;&lt;br&gt;For your first question about how to include the text in a email :&lt;br&gt;1- either you use an Active Monitor at the monitor level, and you can use the variable %ActiveMonitor.Payload (you should see the string provided in the Context.SetResult method in your script).&lt;br&gt;2- OR you insert the result in a device attribute, as I do in my disk script, and use the %device.attribute.&lt;whatever&gt; variable. The advantage being that you can apply the action at the device-level.&lt;br&gt;&lt;br&gt;BTW, the script output you posted seems like a custom memory script. Did you adapt the disk script in order to check for memory ? If yes, is it possible you share it on this forum ? I think it might interest some people.&lt;br&gt;</description><pubDate>Mon, 12 May 2008 04:50:44 GMT</pubDate><dc:creator>MB - NS</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>[quote][b]kar98ghost (5/5/2008)[/b][hr]Hi all&lt;br&gt;&lt;br&gt;&lt;br&gt;I try to get the informartion i describe on the last post with the event viewer.&lt;br&gt;To do this, i use this command type :&lt;br&gt;&lt;br&gt;&lt;br&gt;Context.LogMessage( " Hello ");&lt;br&gt;&lt;br&gt;Where could i see the information send??? I start the nmeventviewer ( in Ipswitch/what's up gold/eventviewer.exe ) and i connect to ip where what's up is running ( it's my local computer )&lt;br&gt;&lt;br&gt;I see information in the event viewer, but nothing about the test i want, and information i get is about  state change or id change.&lt;br&gt;&lt;br&gt;Someone could help me???&lt;br&gt;&lt;br&gt;thanks[/quote]&lt;br&gt;&lt;br&gt;Did you remember to turn on the debug mode?  You can do that by right-clicking in the event viewer, then going down to the "Debug On" line and left-clicking on it.</description><pubDate>Mon, 05 May 2008 09:39:29 GMT</pubDate><dc:creator>rhugh</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>Hi all&lt;br&gt;&lt;br&gt;&lt;br&gt;I try to get the informartion i describe on the last post with the event viewer.&lt;br&gt;To do this, i use this command type :&lt;br&gt;&lt;br&gt;&lt;br&gt;Context.LogMessage( " Hello ");&lt;br&gt;&lt;br&gt;Where could i see the information send??? I start the nmeventviewer ( in Ipswitch/what's up gold/eventviewer.exe ) and i connect to ip where what's up is running ( it's my local computer )&lt;br&gt;&lt;br&gt;I see information in the event viewer, but nothing about the test i want, and information i get is about  state change or id change.&lt;br&gt;&lt;br&gt;Someone could help me???&lt;br&gt;&lt;br&gt;thanks</description><pubDate>Mon, 05 May 2008 04:41:52 GMT</pubDate><dc:creator>kar98ghost</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>My script Works Well, and i've another question I ever ask on the forum about another subject :&lt;br&gt;&lt;br&gt;I set the value of maximum memory used to 10%, so the monitor is down. When i use the test function, it tell me this :&lt;br&gt;&lt;br&gt;"Failure: Memory Physical Memory is 82 % full | Memory Virtual Memory is 29 % full | "&lt;br&gt;&lt;br&gt;It's really an interressant information, is there any way to get it for example on a mail, orin a report Log and no just in this test function???&lt;br&gt;&lt;br&gt;When i set the value ton 90%, it return me : Ok&lt;br&gt;&lt;br&gt;thanks for your help</description><pubDate>Wed, 30 Apr 2008 04:54:46 GMT</pubDate><dc:creator>kar98ghost</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>ooh thanks&lt;br&gt;I tried to open the database with sql server and many other way ..... i just have to gon on the website... thanks a lot</description><pubDate>Wed, 30 Apr 2008 04:32:42 GMT</pubDate><dc:creator>kar98ghost</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>[quote][b]KvChaos (3/19/2008)[/b][hr]Maybe a bit out of point, but is there a smiliar script for Processor counter as well?&lt;br&gt;&lt;br&gt;And good job for this Logical Disk COunter script. It works great.. finally.:D[/quote]&lt;br&gt;&lt;br&gt;No, there is not (or at least, I didn't wrote one, and I don't know of another one).&lt;br&gt;&lt;br&gt;[quote]Hi&lt;br&gt;&lt;br&gt;I don't know where you found the sql value to make the script????&lt;br&gt;&lt;br&gt;I want to do the same for the memory usage and CPU, but i don't know where you got the name of variable.&lt;br&gt;&lt;br&gt;Thanks for your script[/quote]&lt;br&gt;&lt;br&gt;I used the DB schema, available there :&lt;br&gt;[url]http://www.ipswitch.com/support/whatsup/index.asp[/url]</description><pubDate>Wed, 30 Apr 2008 04:27:43 GMT</pubDate><dc:creator>MB - NS</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>Hi&lt;br&gt;&lt;br&gt;I don't know where you found the sql value to make the script????&lt;br&gt;&lt;br&gt;I want to do the same for the memory usage and CPU, but i don't know where you got the name of variable.&lt;br&gt;&lt;br&gt;Thanks for your script</description><pubDate>Wed, 30 Apr 2008 03:38:33 GMT</pubDate><dc:creator>kar98ghost</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>Maybe a bit out of point, but is there a smiliar script for Processor counter as well?&lt;/P&gt;&lt;P&gt;And good job for this Logical Disk COunter script. It works great.. finally.:D</description><pubDate>Wed, 19 Mar 2008 22:27:37 GMT</pubDate><dc:creator>KvChaos</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>[quote][b]KvChaos (3/18/2008)[/b][hr]&lt;br&gt;However, I have some error setting the value for the attribute.&lt;br&gt;For example, when I put C=20% the test results still give me the default threshold which is 10%.&lt;br&gt;Did I put in a wrong format or something?&lt;br&gt;&lt;br&gt;EDIT:I got amuch worstresult when trying to activate this script on a server with multiple drives. Nowwhen I test it, the script keep prompting for a Disk_Space_Thresholds, even after I added in the attribute.[/quote]&lt;br&gt;&lt;br&gt;For the letter you need to put the exact drive name, as it is reported by the snmp agent (you can see it in the Disk Utilization report).&lt;br&gt;&lt;br&gt;For Windows drive it's "C:\", "D:\", and so on.&lt;br&gt;&lt;br&gt;So the attribute should look like this :&lt;br&gt;C:\=20%&lt;br&gt;&lt;br&gt;I updated the comments in the script, as it's not easy to figure out.&lt;br&gt;&lt;br&gt;As for your issue with another server, I'm not sure.&lt;br&gt;Make sure you spelled the attribute name correctly, and check that you don't have 2 devices with the same IP address (if that's the case, WUG mixes up the device ID, which is used in the script to retrieve the attribute).</description><pubDate>Tue, 18 Mar 2008 04:42:04 GMT</pubDate><dc:creator>MB - NS</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>I see..&lt;P&gt;However, I have some error setting the value for the attribute.&lt;BR&gt;For example, when I put C=20% the test results still give me the default threshold which is 10%.&lt;BR&gt;Did I put in a wrong format or something?&lt;P&gt; &lt;P&gt;EDIT: I got a much worst result when trying to activate this script on a server with multiple drives. Now when I test it, the script keep prompting for a Disk_Space_Thresholds, even after I added in the attribute.</description><pubDate>Tue, 18 Mar 2008 01:20:02 GMT</pubDate><dc:creator>KvChaos</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>Configure the attribute in the device properties.</description><pubDate>Thu, 13 Mar 2008 05:11:01 GMT</pubDate><dc:creator>MB - NS</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>So how can I go about creating a Disk_Space_Threshold on a device?</description><pubDate>Thu, 13 Mar 2008 01:02:38 GMT</pubDate><dc:creator>KvChaos</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>[quote][b]jfreswick (3/11/2008)[/b]&lt;br&gt;What device attributes are enclosed in this post, I am attempting to set this up and am unable to find the SNMP Reference Variables to use...  am I wrong in my assumption that this is an Active Script PerfMon?&lt;br&gt;&lt;br&gt;Thanks[/quote]&lt;br&gt;&lt;br&gt;It's an ActiveMonitor.&lt;br&gt;What is enclosed in the post is the [i]script[/i].&lt;br&gt;&lt;br&gt;[quote][b]KvChaos (3/11/2008)[/b][hr]I tried testing the script,&lt;br&gt;but it keeps saying need "Disk_Space_Threshold" for it to work.&lt;br&gt;&lt;br&gt;I have enabled Disk Utilization, and also added in the drvMonitors=null in the first line of the script.&lt;br&gt;Still it doesn't work. How so??[/quote]&lt;br&gt;&lt;br&gt;I updated the script in the post yesterday so people don't have to add the line.&lt;br&gt;And yes, it needs you to create the "Disk_Space_Threshold" [i]device attribute[/i] on the device.&lt;br&gt;&lt;br&gt;I set it this way by default so that people have to intentionally set the thresholds (they can still leave the attribute blank if they want to keep the default values, but it will be knowingly).&lt;br&gt;&lt;br&gt;You can also set it so that it doesn't need the attribute, by setting the below value at the beginning of the script.&lt;br&gt;&lt;br&gt;[quote]' If the threshold attribute is not found, should the monitor report as DOWN ?&lt;br&gt;' If set to False, it will use the default value for all disks.&lt;br&gt;DOWN_NO_ATTRIBUTE = true[/quote]&lt;br&gt;&lt;br&gt;The script is commented (I believe quite clearly), so that one can use and tune it easily. Please read the comments in the script before posting there !</description><pubDate>Wed, 12 Mar 2008 06:30:55 GMT</pubDate><dc:creator>MB - NS</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>I tried testing the script,&lt;BR&gt;but it keeps saying need "Disk_Space_Threshold" for it to work.&lt;/P&gt;&lt;P&gt;I have enabled Disk Utilization, and also added in the drvMonitors=null in the first line of the script.&lt;BR&gt;Still it doesn't work. How so??</description><pubDate>Tue, 11 Mar 2008 23:01:47 GMT</pubDate><dc:creator>KvChaos</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>[quote]There are some scripts around which use directly the values retrieved by the Disk Utilization perf monitors.&lt;br&gt;&lt;br&gt;The one I wrote also allows you to specify the thresholds using the device attributes (enclosed in this post). This way you avoid having multiple monitors depending on the letters and thresholds you need. Please note that you need to have 'disk Utilization' enabled and working on the device.[/quote]&lt;br&gt;&lt;br&gt;What device attributes are enclosed in this post, I am attempting to set this up and am unable to find the SNMP Reference Variables to use...  am I wrong in my assumption that this is an Active Script PerfMon?&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Tue, 11 Mar 2008 17:48:22 GMT</pubDate><dc:creator>jfreswick</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>Ok, thanks for the information ! I'll update it.&lt;br&gt;Strange I didn't ran into it during my tests though...</description><pubDate>Mon, 10 Mar 2008 10:11:10 GMT</pubDate><dc:creator>MB - NS</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;Great script - works like a charm.&lt;br&gt;Except, seems it doesn't work properly when the Disk_Space_Thresholds is not explicitly defined. In that case it gives a runtime error that the object (drvMonitors) is not part of a collection...&lt;br&gt;&lt;br&gt;Defining it ("drvMonitors=null" before line 66) solves that ;)&lt;br&gt;&lt;br&gt;&lt;br&gt;KR,&lt;br&gt;Arjan</description><pubDate>Sun, 09 Mar 2008 10:58:40 GMT</pubDate><dc:creator>arjan</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>[quote][b]BobInDaNoc (2/8/2008)[/b][hr]I've considered setting up SNMP based monitors for the WMI ones that are failing, however it didn't seem as straightforward. The particular WMI monitor that I'm using, %free disk space, per volume, returns a % value that I can easily set a range for. I notice in SNMP mib, there's Bytes total, and bytes available, which would actually require a calculation be made, right, via a script? I didn't see, directly a way to check the free space % via snmp. If you've worked this particular issue out with a script, please share... I do like SNMP, certainly a more direct route into the data, without hardly much of an authentication system....&lt;br&gt;&lt;br&gt;Bob[/quote]&lt;br&gt;There are some scripts around which use directly the values retrieved by the Disk Utilization perf monitors.&lt;br&gt;&lt;br&gt;The one I wrote also allows you to specify the thresholds using the device attributes (enclosed in this post). This way you avoid having multiple monitors depending on the letters and thresholds you need. Please note that you need to have 'disk Utilization' enabled and working on the device.</description><pubDate>Fri, 08 Feb 2008 09:37:49 GMT</pubDate><dc:creator>MB - NS</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>Leo!!!!!&lt;/P&gt;&lt;P&gt;WMIADAP /F made the logical disk counters available on at least one of the servers in question!!! Man, thanks a million!  I'm going to run throught the other boxes to see if it fixes them up as well.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Bob</description><pubDate>Fri, 08 Feb 2008 09:06:31 GMT</pubDate><dc:creator>BobInDaNoc</dc:creator></item><item><title>RE: Logical Disk Counters--What's wrong?</title><link>http://forums.ipswitch.com/Topic40728-14-1.aspx</link><description>I will try the WMIADAP command to see if that helps.  The diskperf isn't an issue, these are always 2k3 servers, which have logical counters available on demand.  Just in case, though, yep, I ran diskperf -Y and diskperf -YV, and rebooted.  No luck, although I wasn't expecting diskperf -y to actually work :)&lt;/P&gt;&lt;P&gt;I'll check that wmiadap right away, fingers crossed...&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;Bob</description><pubDate>Fri, 08 Feb 2008 09:00:58 GMT</pubDate><dc:creator>BobInDaNoc</dc:creator></item></channel></rss>