| | | Forum Member
       
Group: Forum Members Last Login: 12/8/2008 8:02:21 PM Posts: 31, Visits: 157 |
| Hello
I have performed some research on this forum using the words "disk space script" or "disk SNMP" but I could not find what I am looking for...
I am looking for a script that will silently send an alert email if a threshold on a disk is reached, however, I don't want the device to appear as DOWN since it is not a critical information for us.
Unfortunately, I could only find scripts which are built for "active monitors", meaning that the device will be seen as "down" in the root directory...
Is it possible to send an email using SNMP only or a passive monitor if a disk reach 90% of utilization?
Thanks ! |
| | | | 
Forum Guru
       
Group: Forum Members Last Login: 12/19/2008 4:54:57 PM Posts: 51, Visits: 204 |
| You could edit the script to return an "up" even if its down but also fire off some silly email procedure stored somewhere outside of WUG.
-... |
| | | | Forum Member
       
Group: Forum Members Last Login: 12/8/2008 8:02:21 PM Posts: 31, Visits: 157 |
| Thanks for your reply...
I am not very good at VB but I think I can figure out how to trigger a "UP" instead of a "DOWN"... however, if the device is always UP, how can it trigger an email... unless it will send the email notification all the time.
I was thinking of a SNMP passive monitoring but I dont know how to do it... |
| | | | 
Forum Guru
       
Group: Forum Members Last Login: 12/19/2008 4:54:57 PM Posts: 51, Visits: 204 |
| Well, at the bottom of the VBscript you'd do something like this:
If (threshold is ok)
Setcontext monitor up
If (Threshold not ok)
Setcontext monitor up
Fire an email action by making some other external call.
-... |
| | | | Forum Member
       
Group: Forum Members Last Login: 12/8/2008 8:02:21 PM Posts: 31, Visits: 157 |
| Thanks again for your help.
Unfortunately, if everything stays up, I can not trigger an email, WUG does not detect a state change 
I have just tried it... |
| | | | Forum Member
       
Group: Forum Members Last Login: 12/12/2008 5:31:08 AM Posts: 25, Visits: 30 |
| | you could passively monitor it using performance monitor alerts by monitoring threshold Logical Disk\%Free Space and WUG Event Log passive monitoring |
| | | | Forum Member
       
Group: Forum Members Last Login: 12/8/2008 8:02:21 PM Posts: 31, Visits: 157 |
| Thanks for those clues !
I almost got it, I have set up a passive monitor with SNMP for disk space used OID: 1.3.6.1.2.1.25.2.3.1.6
Unfortunately, then I don't know what to put for the Expression to match on the Payload.
Last step, please can anyone give me some clues? |
| | | | Forum Member
       
Group: Forum Members Last Login: 12/8/2008 8:02:21 PM Posts: 31, Visits: 157 |
| hello
any help on that comparison script?
Thanks in advance. |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 12/16/2008 12:59:53 AM Posts: 1, Visits: 6 |
| | The easier way I have found to monitor Disk space is to use a WMI (LogicalDisk \ Free Megabytes) in an Active monitor. |
| |
|
|