Scripts for email alerts regarding Disk % utilisation

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Scripts for email alerts regarding Disk % utilisationExpand / Collapse
Author
Message
Posted 12/1/2008 2:50:35 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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 !
Post #49104
Posted 12/2/2008 4:26:01 PM


Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum 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.

-...
Post #49143
Posted 12/2/2008 4:28:43 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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...
Post #49144
Posted 12/2/2008 5:23:22 PM


Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum 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.



-...
Post #49145
Posted 12/3/2008 3:57:30 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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...
Post #49194
Posted 12/4/2008 4:45:09 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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
Post #49206
Posted 12/5/2008 2:46:19 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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?
Post #49270
Posted 12/8/2008 3:35:52 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum 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.
Post #49320
Posted 12/15/2008 7:23:48 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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.
Post #49529
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Dave, Mark Singh, kevin r gillis, Jason Benton, Brandon Felger, Ben Henderson, Tripp Allen, Will Sansbury, Jason Williams