160 likes | 317 Views
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
E N D
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 Message Source Configuration: Monitoring Values
Monitor Configuration GUI Message Source Configuration: Monitoring Values
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 Message Source Configuration: Monitoring Values
Monitor Conditions This area layout is unique to Threshold Monitor Conditions Message Source Configuration: Monitoring Values
Message Generation Policy Threshold Reset time [min] Message Generation with RESET 3 min 3 min Message Generation without RESET 3 min 3 min 3 min Continuous Message Generation 3 min 3 min 3 min Message Source Configuration: Monitoring Values
1 1 2 2 3 3 4 4 5 5 6 6 time [min] time [min] Program/MIB Monitoring with Duration Specification External Monitoring (opcmon) Internal Monitoring (Scripts) Threshold Threshold Reset Reset 3 min 3 min Message Source Configuration: Monitoring Values
Monitoring Command Interface Command Syntax to submit monitored values: opcmon <parameterlist> Parameter Value Required monitor_name= name of monitor to deliver value to yes object= component which caused/detected noor was affected by the problem -option <var>= additional parameter of any kind nosupplying a value; may be given multiple times Message Source Configuration: Monitoring Values
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 Message Source Configuration: Monitoring Values
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 Object Monitoring multi_disk_util /usr /opt /var Message Source Configuration: Monitoring Values
Distributing Threshold Monitors VPO will identify which nodes require the update Select Templatesand Monitors Message Source Configuration: Monitoring Values
2 1 3 4 5 Example 1 - Monitor & Conditions Monitor Template disk_util with 3 Conditions Cond Thresh Reset 90 85 1 90 85 2 70 60 70 3 65 55 65 60 opcmon disk_util=93 55 time [min] Condition 1 matches Monitor Program performs disk checks and calls opcmon Only one message (the most severe) is generated, but immediately Message Source Configuration: Monitoring Values
10 5 15 20 25 Example 2 - MIB Object MIB Object cut and pastedinto template 200 180 Monitor Template num_procs with 3 Conditions Cond Thresh Reset 150 1 200 180 140 2 150 120 120 Condition 1threshold exceeded 3 140 110 110 time [min] Message Source Configuration: Monitoring Values
2 1 3 4 5 6 Example 3 - External Program Monitor Template with 3 Conditions: Cond Thresh Reset Duration 90 85 - 1 90 85 2 70 60 3 mins 70 4 mins 3 65 55 65 60 55 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 Message Source Configuration: Monitoring Values
Example 4 - opcmon using -object • 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 ?? Message Source Configuration: Monitoring Values
Example 5 - opcmon -object -option • opcmon disk_util=91 -object / -option device=/dev/dsk/c0t6d0 Message Source Configuration: Monitoring Values