Hi,

I've had a request which demanded that some pingables create minor alarms and 
some critical alarms when they are unreachable. So I've created 2 alarms 
(Device has stopped responding to polls). Attribute Value_when_red was left as 
0. By default Spectrum creates event 0x10034 when pingable device becomes 
unreachable. So I've edited this event not to create alarm, created Event 
condition rule which said:
If a pingable is in global collection 'ping minor', create minor alarm.
If a pingable is in global collection 'ping critical', create critical alarm.
Else, create event which is in fact copy of default event 0x10034.

And it works.

Hope this can help.

Srdačan pozdrav / Kind regards,
___________________
Omar Izetbegović
Sedam IT d.o.o.
HR - 10 000 Zagreb
Koledovčina 2
Tel: +385 1 2353 738
Fax: +385 1 2353 707
Mob: +385 91 2353 738
www.sedamIT.hr<http://www.sedamit.hr/>
___________________
[S1]

From: Calvin Lane [mailto:[email protected]]
Sent: Monday, May 05, 2014 2:07 PM
To: spectrum
Subject: [spectrum] 'Device Down' alarm

Hello everyone,

I need an alarm that is entitled 'Device Down' for pingables that begin with a 
certain name and have stopped responding.  I've come up with the following 
code, but it has not produced the desired results.  Any suggestions would be 
appreciated.

0x00010d35 E 20 R CA.EventCondition, "({v 0x100000} == {S \"Pingable\"}) && 
(regexp({a 0x1006e}, {S \"^east-lbr\"})) || (regexp({a 0x1006e}, {S 
\"^west-lba\"})) " , "0xfff00007  -:-",\
"default", "0xfff00008 -:-"
0xfff00007 E 20, A 3,0xfff00007
0xfff00008 E 20, A 3,0xfff00008


Thanks,
cl

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

_________________________________________________________________________
Ova poruka sadrzi podatke povjerljive prirode, iskljucivo namijenjene
osobama oznacenima kao primateljima te se pristup od strane bilo koje
druge osobe smatra neovlastenim. Ukoliko niste oznaceni primatelj, svaka
distribucija, kopiranje, umnozavanje ili otkrivanje sadrzaja trecim
osobama je strogo zabranjeno i smatra se protuzakonitim. Ukoliko ste
dobili ovu poruku, a niste oznaceni primatelj, molimo Vas da sto prije
obavijestite posiljatelja poruke i unistite sve postojece kopije. Ova
napomena takodjer potvrdjuje da je ova elektronicka poruka testirana na
postojanje racunalnih virusa.

Disclaimer: 
The information in this email is confidential and it is intended solely
for the addressee. Access to this email by anyone else is unauthorized. If
you are not the intended recipient, any distribution, copying, duplication
or disclosure is prohibited and may be unlawful. If you have received this
email in error, please notify the sender immediately and destroy it, and
all copies of it. This footnote also confirms that this email message has
been swept for the presence of computer viruses.
---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to