Mark,
Thanks for the idea. I wrote the below Event Condition and Procedure, instead
of a big if else statement as for us the alarm severity for process monitoring
is same. Doing this I just have to update my event condition with the process
name for which I need dynamic titles.
The only drawback to the below code is - the process name in varbind 3 has
SINGLE QUOTES around it and when you generate report from SRM the report
contains BACKSLASH in front of the QUOTES.
I am asking support the reason behind having single quotes in the process name.
0x23900006 R CA.EventCondition, "regexp({v 3}, {S \"wireshark\"}) || regexp({v
3}, {S \"notepad\"})" , "0x23900076 -:-", \
"( { v 20 } == { I 0 } )" , "0x23900014 -:-", \
"default" , "0x23900015 -:-"
0x23900076 E 10 P "CreateEventWithVariables ( \
{ C CURRENT_MODEL }, { H 0x23900077 }, \
SetEventVariable ( \
GetEventVariableList(), { H 0x00012b4c } , \
Append ( ToUpper ( GetEventVariable ( { U 3} ) ) , { S \" PROCESS IS RUNNING
LESS INSTANCES\"} ) ) \
)"
0x23900077 E 10 A 2,0x23900076,3
Saurabh Bohra
O: 860-766-0842 | M: 860-385-3597 | e-mail: [email protected]
From: Mark Serencha [mailto:[email protected]]
Sent: Monday, April 22, 2013 3:05 PM
To: spectrum
Subject: RE: [spectrum] Process monitor and Alarm Title
The only way that I am aware of that you can do this (and I did do this with
one customer)
is to create child events with an Event Condition, that are keyed from the
process name in the event body,
and then assign new alarms with unique titles for these events.
Think of a big if-then-else tree.
This also allows you to adjust alarm severities (the default is either critical
(down) or normal (up)).
And you have to adjust both the "set" and the "clear" out-of-box events to deal
with your new alarm hex codes.
It's tedious, yes, but it does function as you desire.
HTH,
--Mark S
From: Bohra, Saurabh [mailto:[email protected]]
Sent: Monday, April 22, 2013 2:50 PM
To: spectrum
Subject: [spectrum] Process monitor and Alarm Title
All,
When we do process monitoring using RFC 2790, two of the required fields are
Process Count (Less and Greater) Than.
We are monitoring several process on one server and when an alarm is generated
the alarm title is generic. Even the event message which gets generated does
not contain the process name.
By default the Alarm is set to be generated on Device Model.
Is there a way to update alarm title to have the name of the process going down.
We have a requirement to generate a CABI report to show the individual process
which went down a server.
Thanks,
Saurabh Bohra
Sr. Network Mgmt Systems Analyst
ESPN Inc.
O: 860-766-0842 | M: 860-385-3597 | e-mail:
[email protected]<mailto:[email protected]>
* --To unsubscribe from spectrum, send email to
[email protected]<mailto:[email protected]> with the body: unsubscribe spectrum
[email protected]<mailto:[email protected]>
* --To unsubscribe from spectrum, send email to
[email protected]<mailto:[email protected]> with the body: unsubscribe spectrum
[email protected]<mailto:[email protected]>
---
To unsubscribe from spectrum, send email to [email protected] with the body:
unsubscribe spectrum [email protected]