Hello,

if you want to use "blahblahblah" as alarm dicriminator, you have to use a 
Event Procedure to extract the string with regEx to a new event variable.
This variable you can use as a discriminator for you alarm.

Then you have to check for the Strings "UP" and "DOWN" with Regex and 
create/clear an alarm.


Regards
--
Christoph Keßler
amasol AG                    [email protected]<mailto:[email protected]>
Campus Neue Balan            Phone:+49 (89) 1894743-24
Claudius-Keller-Straße 3 B   Fax:  +49 (89) 1894743-99
81669 München, Germany       Web:  www.amasol.de<http://www.amasol.de/>

amasol Aktiengesellschaft für Informations- und Kommunikationstechnologie
Aufsichtsrat: Prof. Dr. Stephan Kaiser (Vorsitzender)
Vorstand: Wolfgang Bachmann, Stefan Deml, Thomas Dirsch, Frank Jahn, Johann 
Maurer
Amtsgericht München HRB 128327, Sitz der Gesellschaft München

________________________________
Von: Cutting, Jeremiah [[email protected]]
Gesendet: Freitag, 29. Juli 2011 19:51
An: spectrum
Betreff: [spectrum] help with clearing trap

Running Spectrum 9.1.  I need some help with figuring out how to create a 
clearing event for an alarm.  I have two traps (separate oids) from a device, 
an up and a down trap.  Each trap contains two varbinds, one of which is 
useable to clear the down trap (the other just contains the device IP).  The 
problem is that the string in the varbinds don’t quite match.  So for example:

DOWN trap
Varbind1 = blahblahblah_DOWN

UP trap
Varbind1 = blahblahblah_UP

The blahblahblah always matches, it’s just the addition of _UP and _DOWN that 
is different.  So setting up a simple clear won’t work, and I can’t have the UP 
alarm clear all alarms for the device because of the nature of the alarm.  Any 
suggestions?

Thanks,
Jeremiah

 *   --To unsubscribe from spectrum, send email to 
[email protected]<mailto:[email protected]> with the body: unsubscribe spectrum 
[email protected]

---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to