Hi , change Red_code_value= 7 . hope this will help u out . Thanks ,
Midhun Nair On Mon, May 5, 2014 at 8:07 PM, Omar Izetbegovic < [email protected]> wrote: > Here it is. > > 0x10034 E 50 R CA.EventCondition, "(regexp({a 0x12adb}, {S \"Ping devices > - Minor\"}))" , "0xfff00225 -:-","(regexp({a 0x12adb}, {S \"Ping devices - > Critical\"}))" , "0xfff00224 -:-","default" , "0xfff00226 -:-" > > 0xfff00224 E 0 A 3,0x10009,N > > 0xfff00225 E 0 A 1,0x10009,N > > 0xfff00226 E 50 A 6,0x00010007,N > > > > 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/> > ___________________ > > [image: S1] > > > > *From:* Calvin Lane [mailto:[email protected]] > *Sent:* Monday, May 05, 2014 3:21 PM > *To:* Omar Izetbegovic; 'spectrum' > > *Subject:* RE: [spectrum] 'Device Down' alarm > > > > Thanks Omar, > > > > That sounds great. I had looked at 0x10034 initially, but I thought > value_when_red had to be greater than 0 to generate an alarm. I’d like to > build the same thing you’ve done. Can you possibly share the code? > > > > cl > > *From:* Omar Izetbegovic > [mailto:[email protected]<[email protected]>] > > *Sent:* Monday, May 05, 2014 8:27 AM > *To:* Calvin Lane; spectrum > *Subject:* RE: [spectrum] 'Device Down' alarm > > > > 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/> > ___________________ > > [image: S1] > > > > *From:* Calvin Lane [mailto:[email protected] <[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] with > the body: unsubscribe spectrum [email protected] > > > > > Napomena: 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. > > > > > Napomena: 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] > > --- To unsubscribe from spectrum, send email to [email protected] with the body: unsubscribe spectrum [email protected]
