Changes between Version 10 and Version 11 of OMDeventhandlers

Show
Ignore:
Timestamp:
11/14/11 15:15:32 (8 years ago)
Author:
jonmills (IP: 152.54.3.30)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OMDeventhandlers

    v10 v11  
    1919 * SVN source: 
    2020  * [https://code.renci.org/gf/project/networkedclouds/scmsvn/?action=browse&path=%2Fnagios%2Ftrunk%2Feventhandlers%2Fscripts%2Fcmk_reinventory.sh&view=markup cmk_reinventory.sh] 
     21 
     22== Adding VMs == 
     23 
     24 * ${OMD_ROOT}/local/bin/add_vm.sh 
     25 * SVN source: 
     26  * [https://code.renci.org/gf/project/networkedclouds/scmsvn/?action=browse&path=%2Fnagios%2Ftrunk%2Feventhandlers%2Fscripts%2Fadd_vm.sh&view=markup add_vm.sh] 
     27 
     28 * For this action, I chose to have this script get called by the cmk_reinventory.sh eventhandler directly.  I originally wanted it to be an eventhandler itself, but there were several problems with that design -- most acutely, the realization that a new service changing from an unchecked state to an OK state does not trigger a Nagios event. 
     29 
     30 * This script relies on the cmk_reinventory.sh script in conjunction with the 'qemu' check_mk check (which itself relies upon the '/usr/lib/check_mk_agent/plugins/mk_qemu' plugin to be installed on eucalyptus worker nodes). Taking advantage of the fact that each hosts autochecks are listed in ${OMD_ROOT}/var/check_mk/autochecks, we can parse that info for the names of KVM virtual machines, and add them to Check_MK (testing, of course, to ensure they don't already exist). 
    2131 
    2232