| This note decribes an interface between DCM and DECMCC.
That is, if you're running DCM anywhere on your network, and you're
running DECMCC anywhere on your network, this procedure will allow you
to cause any DCM alarms (e.g., disks nearing capacity, processes
not running, printer queues stalled) to be forwarded to a DECMCC
data collector, and the node causing the alarm can be made to change
color.
It's incredibly simple...
On DECMCC, set up a data collector entity called DCM-Collector as
described in the MCC documentation and in note 1894.23 (and followup notes).
Remember to use the Notification module to create a "Notify request"
Domain: (domain_where_the_DCM_Collector_is_defined)
Entity_List: Collector DCM-Collector
Events: Any Event
In DCM, set up an action routine for each alarm which you want to
be forwarded to DECMCC. (The action routine can run either as a
batch or subprocess). Note: You may already be using an action routine
to send mail or whatever...
Make sure the file MCC_EVC_SEND.EXE is set up in the default directory
of the username from which the action routine is run (for example,
SYS$MANAGER). (The sources and instructions for creating this executable
program are also found in the documentation and elsewhere in this
conference).
The action routine should include the following lines. That's all there
is to it!
$ send :== $sys$login:MCC_EVC_SEND.EXE
$ entity == "node4 ." + f$string(p4)
$ severity = "major"
$ send your-mcc-node dcm-collector "''entity'" "''p3'" "''p1'" 'severity'
(Replace the symbol your-mcc-node with the name of the node where
MCC is running. Note that you can change the severity to one of
"warning", "minor", "major", or "critical" by doing an IF on P3 which
contains the Event code. For example, the "disk nearing capacity" code
is DMC_C_DNF so I could include the line:
if P3 .eqs. "DCM_C_DNF" then severity = "critical"
Have fun,
Sid
P.S. If anyone wants an icon I made to represent the DCM data collector
send me mail.
|
| RE: .4
Sid,
First of all, I'm interested by the "icon" you've made to represent
the "DCM data collector".
I'm part of the "DCM for U*X" (DCMX) development team. We want to include
such an action routine (+ a how_to_set_it_and_DECMCC_up doc) in the future
DCMX kit.
I'm pretty new in DECmcc and I'm extremely interested in the Ultrix
version of the note 2449.4....
Is there anybody out there that could post such a "set up" description
+ the associated [c]shell script?
Thanks in advance.
CJB
|