| | | Time Traveler
       
Group: Forum Members Last Login: 10/6/2008 10:25:48 AM Posts: 534, Visits: 1,880 |
| Ok, thanks for the information ! I'll update it.
Strange I didn't ran into it during my tests though... |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 3/12/2008 11:23:38 AM Posts: 1, Visits: 6 |
| There are some scripts around which use directly the values retrieved by the Disk Utilization perf monitors.
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.
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?
Thanks
-={Bamskel}=- |
| | | | 
Junior Member
       
Group: Forum Members Last Login: 10/6/2008 6:29:30 AM Posts: 10, Visits: 37 |
| I tried testing the script, but it keeps saying need "Disk_Space_Threshold" for it to work.I have enabled Disk Utilization, and also added in the drvMonitors=null in the first line of the script. Still it doesn't work. How so?? |
| | | | Time Traveler
       
Group: Forum Members Last Login: 10/6/2008 10:25:48 AM Posts: 534, Visits: 1,880 |
| jfreswick (3/11/2008)
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?
Thanks
It's an ActiveMonitor.
What is enclosed in the post is the script.
KvChaos (3/11/2008) I tried testing the script,
but it keeps saying need "Disk_Space_Threshold" for it to work.
I have enabled Disk Utilization, and also added in the drvMonitors=null in the first line of the script.
Still it doesn't work. How so??
I updated the script in the post yesterday so people don't have to add the line.
And yes, it needs you to create the "Disk_Space_Threshold" device attribute on the device.
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).
You can also set it so that it doesn't need the attribute, by setting the below value at the beginning of the script.
' If the threshold attribute is not found, should the monitor report as DOWN ?
' If set to False, it will use the default value for all disks.
DOWN_NO_ATTRIBUTE = true
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 ! |
| | | | 
Junior Member
       
Group: Forum Members Last Login: 10/6/2008 6:29:30 AM Posts: 10, Visits: 37 |
| | So how can I go about creating a Disk_Space_Threshold on a device? |
| | | | Time Traveler
       
Group: Forum Members Last Login: 10/6/2008 10:25:48 AM Posts: 534, Visits: 1,880 |
| | Configure the attribute in the device properties. |
| | | | 
Junior Member
       
Group: Forum Members Last Login: 10/6/2008 6:29:30 AM Posts: 10, Visits: 37 |
| | I see.. However, I have some error setting the value for the attribute. For example, when I put C=20% the test results still give me the default threshold which is 10%. Did I put in a wrong format or something? 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. |
| | | | Time Traveler
       
Group: Forum Members Last Login: 10/6/2008 10:25:48 AM Posts: 534, Visits: 1,880 |
| KvChaos (3/18/2008)
However, I have some error setting the value for the attribute.
For example, when I put C=20% the test results still give me the default threshold which is 10%.
Did I put in a wrong format or something?
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.
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).
For Windows drive it's "C:\", "D:\", and so on.
So the attribute should look like this :
C:\=20%
I updated the comments in the script, as it's not easy to figure out.
As for your issue with another server, I'm not sure.
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). |
| | | | 
Junior Member
       
Group: Forum Members Last Login: 10/6/2008 6:29:30 AM Posts: 10, Visits: 37 |
| | Maybe a bit out of point, but is there a smiliar script for Processor counter as well? And good job for this Logical Disk COunter script. It works great.. finally. |
| |
|
|