mod11_sc

advertisement
Message Source
Configuration:
Monitoring Values
Section Overview
• Monitor Configuration GUI
• Monitor Types
– Program
– MIB Object
– External
• Monitor Conditions
– Thresholds
– Duration
– Reset
•
•
•
•
•
Message Generation Policy
Monitoring Command Interface
Object Monitoring
Distribution of Monitors to Managed Nodes
Threshold Monitor Examples
2
Message Source Configuration:
Monitoring Values
[vpo_mgr_src_monitor]
Monitor Configuration GUI
3
Message Source Configuration:
Monitoring Values
[vpo_mgr_src_monitor]
Monitor Types
• Program
– Script/program distributed and scheduled by VPO
• MIB Object
– Object ID of a MIB instance to be checked
• External
– Script/program scheduled externally
4
Message Source Configuration:
Monitoring Values
[vpo_mgr_src_monitor]
Monitor Conditions
This area layout is unique to
Threshold Monitor
Conditions
5
Message Source Configuration:
Monitoring Values
[vpo_mgr_src_monitor]
Message Generation Policy
Threshold
Reset
time [min]
Message Generation with RESET
3 min
3 min
3 min
3 min
3 min
3 min
3 min
Message Generation
without RESET
3 min
Continuous
Message Generation
6
Message Source Configuration:
Monitoring Values
[vpo_mgr_src_monitor]
Program/MIB Monitoring with
Duration Specification
External Monitoring (opcmon)
Internal Monitoring (Scripts)
Threshold
Threshold
Reset
Reset
1 2 3 4 5 6
time [min]
1 2 3 4 5 6
3 min
time [min]
3 min
7
Message Source Configuration:
Monitoring Values
[vpo_mgr_src_monitor]
Monitoring Command Interface
Command Syntax to submit monitored values:
opcmon <parameterlist>
Parameter
Value
Required
monitor_name= name of monitor to deliver value to
object=
component which caused/detected
or was affected by the problem
-option <var>= additional parameter of any kind
supplying a value; may be given
multiple times
8
yes
no
no
Message Source Configuration:
Monitoring Values
[vpo_mgr_src_monitor]
Customer Specific Scripts
#!/usr/bin/sh
# set path to prevent trojan horses
PATH=/usr/bin:/opt/OV/bin/OpC
# determine the number of running processes
value=`ps -e|grep -v grep|wc -l`
# forward the value to the VPO monitor agent
opcmon ExampleMonTmpl=$value
exit $?
# return status to the monitor agent
9
Message Source Configuration:
Monitoring Values
[vpo_mgr_src_monitor]
Object Monitoring
• Identification of data value
– Monitor name
– Object
• Multiple monitor conditions
– Pattern match for object
– Threshold check for data
value
– Duration check
• Set attributes
– Severity, Node, Application,
Message Group, Object,
Message Text
• Example:
– Control usage of multiple
disks with one monitor
multi_disk_util
/usr
/opt
/var
10
Message Source Configuration:
Monitoring Values
[vpo_mgr_src_monitor]
Distributing Threshold Monitors
VPO will
identify which
nodes require
the update
Select Templates
and Monitors
11
Message Source Configuration:
Monitoring Values
[vpo_mgr_src_monitor]
Example 1 - Monitor & Conditions
Monitor Template disk_util with 3 Conditions
Reset
90
90
85
85
70
60
Cond
Thresh
1
2
3
65
70
55
65
60
opcmon disk_util=93
55
1
2
3
4
5
time [min]
Condition 1 matches
Monitor Program performs
disk checks and calls
opcmon
Only one message (the most severe)
is generated, but immediately
12
Message Source Configuration:
Monitoring Values
[vpo_mgr_src_monitor]
Example 2 - MIB Object
MIB Object
cut and pasted
into template
200
180
Monitor Template num_procs with 3 Conditions
Cond
Thresh
Reset
1
200
180
140
2
150
120
120
3
140
110
150
Condition 1
threshold exceeded
110
5
13
10
15
20
25 time [min]
Message Source Configuration:
Monitoring Values
[vpo_mgr_src_monitor]
Example 3 - External Program
Monitor Template with 3 Conditions:
Cond
Thresh
1
90
85
2
70
60
3
65
Reset
55
90
Duration
85
3 mins
70
4 mins
65
60
55
1
2
3
4
5
6
time [min]
Condition 3 Timer:
opcmon disk_util=67
Condition 2 Timer:
Only one message from Condition 3
is generated after timer has terminated
External Program called by cron every minute:
* * * * * /home/velma/disk_check.sh
14
Message Source Configuration:
Monitoring Values
[vpo_mgr_src_monitor]
Example 4 - opcmon using -object
Condition
1
2
3
4
5
6
7
8
9
Object Pattern
^/$
^/$
^/$
^/var$
^/var$
^/var$
^/disk1$
^/disk1$
^/disk1$
Threshold
90
80
75
95
85
75
95
85
75
opcmon disk_util=91 -object /
matches condition
??
opcmon disk_util=77 -object /disk1 matches condition ??
opcmon disk_util=75 -object /var
matches condition ??
opcmon disk_util=91 -object /usr
matches condition ??
15
Message Source Configuration:
Monitoring Values
[vpo_mgr_src_monitor]
Example 5 - opcmon -object -option
opcmon disk_util=91 -object /
-option device=/dev/dsk/c0t6d0
16
Message Source Configuration:
Monitoring Values
[vpo_mgr_src_monitor]
Download