Jim,

Below is what I have so far from an earlier discussion with my Tier2 
support folks.. I haven't found a clean way of interacting directly with 
the database, but given that SEC is a log processor, it makes sense to 
keep the configuration channel in the log stream. I plan on 
recirculating the logged event at some point back to the NMS, but as an 
event type that is not processed again.

I see that John Rouillard offered suggestions as well, and they seem to 
coincide with my thinking. I think the difficult part for me will not be 
SEC config, but rather the interaction with the change control system in 
terms of entering change control information and extracting it from the 
tables programatically or via SQL.

Thanks,
- Tim

NMS Change Control process outline

1. Need Oracle or MySql table to communicate changes

ChangeControlTable
In sql parlance:
Create TABLE “ChangeControlTable”
(
“Start” DATE,
“Stop” DATE,
“Duration” NUMBER(10,0),
“HostPortOrPeer” VARCHAR2(30),
“Ticket” VARCHAR(8),
“Complete” BIT
)

2. Need process to extract change items from change control table

Select Start,Stop,Duration,Host,Ticket,Complete
 From ChangeControlTable
Where (Start - now < 5 minute) and (Start > 0)

3. Need process to write an event to a monitored syslog log stream.
logger –p local1.notice “$Host change control window $Duration ticket 
$Ticket”

4. Need process to extract completed change items from change control table

Select Host,Ticket
 From ChangeControlTable
Where (Stop – now > 0) and (Complete = 1)

5. Need process to write the completed event to a monitored syslog stream
logger –p local1.notice “$Host change $Ticket complete”

6. Need Event Correlator rules to read change control events to create 
or delete contexts.


# Create a context quiet:<host> with a lifetime of <duration> seconds. 
The context
# will be automatically harvested by the correlator. In addition, log 
the action taken.
type=Single
ptype=regexp
pattern=(\S+) change control window (\d+) ticket (\S+)
desc=set change control window
context= !quiet:$1
action=create quiet:$1 $2 ; \
logonly %s

# Delete a context quiet:<host> where change is complete
type=Single
ptype=regexp
pattern=(\S+) change complete ticket (\S+)
desc=set change control window
action=create quiet:$1 $2

7. Need to modify any of the existing ticket methods to account for the 
new context labeled ‘quiet’.

type=PairWithWindow
ptype=RegExp
pattern=Node Unreachable: (\S+)
desc=Node Unreachable:down message
context= !quiet:$1 && !reboot:$1
action=create "reboot:$1" 1200 ; logonly ticket requested %s ;\
spawn SCTicket \
-category "DATA SERVICE" \
-subcategory "data switch" \
-problemtype "connectivity" \
-producttype "none" \
-severity major \
-title "%s" \
-text "The host $1 is not responding to polls. Please investigate."
ptype2=RegExp
pattern2=Node Reachable: (\S+)
desc2=Node Reachable:Up message
action2=delete reboot:$1 ; logonly “Node $1 Reachable – possible bounce”
window=300



-- 
Tim Peiffer
Network Support Engineer
Office of Information Technology
University of Minnesota/NorthernLights GigaPOP 

+1 612 626-7884 (desk)


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to