Lori,

Instead of using custom services for this, what we would do is run a script
via cron that does the disk check. If the space utilized is over the
threshold (94% for you), then we send a trap to WhatsUp Gold and make it a
Type 2 trap (LinkDown). You need a command line snmp trap utility that can
specify the type of trap and a custom STRING to send.

Under NT we're using a program called 'trapgen' to do this. I have not yet
searched out a similar unix tool, but I'm sure one exists. The syntax via
trapgen looks something like this (-d is the IP of the WhatsUp server, -g 2
specifies LinkDown):

trapgen -d 10.10.10.1 -g 2 -s 0 -v 1.3.6.1.4.1.0 STRING "/vol01 at 94%"

In WhatsUp I would have a map for the servers with disk space I want to
monitor, and set Alerts/Notifications on each so that the traps go out to
our email/paging setup.

The email/page would look like this by default, but you can play around with
the variables to change the output:

Server My_NFS_Server TRAP linkDown at 15:46:10
Address: 10.10.10.10
Info 1: 
Info 2: 
Date: 07/12/2001
Status: Not checked ( 0)
Svcs: 
Notes: 
Trap(linkDown) enterprises.0="/vol01 at 94%"


We've modified our notifications to look like this now, as the condensed
output is nicer on the alphanumeric pager:

---
Timestamp: 07/12/2001 16:09:57

Received from: 10.10.10.10 
Trap(linkDown) enterprises.0="/vol01 at 94%"
---

This setup works fine under WhatsUp Gold v5.x - we have not yet upgraded to
6.x. It would probably be even better to specify a Type 6 trap, but then I
believe you would need an appropriate MIB as all the Type 6 traps I tested
would be received by the trap server, but never trigger a notification (even
though I had set it to notify for all traps, or type 2,3,6 traps).


Regards,

Colin Stuckless 
[EMAIL PROTECTED]
Unix/G&G Support Specialist



-----Original Message-----
From: lori.litzenberg [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 6:14 PM
To: WhatsUp Gold Discussion List (E-mail)
Subject: [WhatsUp Forum] Can I include details in an alert?


Hello,

I have a TCP/IP custom service setup that runs a script on our Unix servers.
This script will mark the server as down
if any of the logical disks are using more than 94% of the space.  I have an
alert setup that will send an email when the service is down.  Is there a
way that the email can include the output of the script (i.e. the details
of which logical drive is above 94%)?

Being able to get this info is very important as it will help us determine
the severity of the problem and how quickly we need to act.

Thank you,
Lori Litzenberg
[EMAIL PROTECTED]



Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/


                         ********************

This email communication is intended as a private communication for the sole
use of the primary addressee and those individuals listed for copies in the
original message. The information contained in this email is private and
confidential and If you are not an intended recipient you are hereby
notified that copying, forwarding or other dissemination or distribution of
this communication by any means is prohibited.  If you are not specifically
authorized to receive this email and if you believe that you received it in
error please notify the original sender immediately.  We honour similar
requests relating to the privacy of email communications.

Cette communication par courrier �lectronique est une communication priv�e �
l'usage exclusif du destinataire principal ainsi que des personnes dont les
noms figurent en copie.  Les renseignements contenus dans ce courriel sont
confidentiels et si vous n'�tes pas le destinataire pr�vu, vous �tes avis�,
par les pr�sentes que toute reproduction, transfert ou autre forme de
diffusion de cette communication par quelque moyen que ce soit est
interdite.  Si vous n'�tes pas sp�cifiquement autoris� � recevoir ce
courriel ou si vous croyez l'avoir re�u par erreur, veuillez en aviser
l'exp�diteur original imm�diatement.  Nous respectons les demandes
similaires qui touchent la confidentialit� des communications par courrier
�lectronique.

Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/

Reply via email to