Changes between Version 2 and Version 3 of OMDpost-install-checklist

Show
Ignore:
Timestamp:
10/03/11 17:12:15 (8 years ago)
Author:
jonmills (IP: 152.54.8.104)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OMDpost-install-checklist

    v2 v3  
    8383}}} 
    8484 
     85=== Worker Nodes: /usr/lib/check_mk_agent/plugins/mk_qemu == 
     86 
     87Make sure you've installed 'mk_qemu' on each of your worker nodes (along with the check_mk_agent): 
     88{{{ 
     89if which virsh >/dev/null; then 
     90        echo '<<<qemu>>>' 
     91        virsh list | grep -v 'State' | grep -v '^--' | grep -v '^$' | while read L 
     92        do 
     93                ID=$(echo $L | awk '{print $1}') 
     94                NAME=$(echo $L | awk '{print $2}') 
     95                STATE=$(echo $L | awk '{print $3}') 
     96                MEM=$(virsh dominfo $NAME | grep 'Used memory' | awk '{print $3}') 
     97                let MEM=MEM/1024 
     98                PID=$(ps aux | grep kvm | grep $NAME | awk '{print $2}') 
     99                if [ $PID -gt 0 ]; then 
     100                        DATA=$(top -p $PID -n 1 -b | tail -n 2 | head -n 1 | awk -- '{print $9" "$10}') 
     101                else 
     102                        DATA="" 
     103                fi 
     104                echo $ID" "$NAME" "$STATE" "$MEM" "$DATA 
     105        done 
     106fi 
     107}}} 
     108 
    85109== ~/.euca[/eucarc] ==  
    86110(so omd user can run euca commands)