Changes between Version 5 and Version 6 of OMDconfiguration

Show
Ignore:
Timestamp:
10/04/11 11:12:31 (8 years ago)
Author:
jonmills (IP: 152.54.8.104)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OMDconfiguration

    v5 v6  
    3434Used for writing traditional active checks into your Nagios configuration.  Check_MK calls these "legacy checks", as if they're antiquated and less useful.  But sometimes you just need to bang on a port, you know?  To define an active check in Check_MK, you basically are writing raw Nagios config inside of special 'extra_nagios_conf' tags.  [http://mathias-kettner.de/checkmk_legacy_checks.html Use of legacy checks with Check_MK is documented here]. 
    3535 
     36For our purposes, with respect to Eucalyptus, active checks are ideal to test the running status of our Cloud Controller and our Node Controllers.  For example: 
     37 
     38{{{ 
     39extra_nagios_conf += r""" 
     40define command { 
     41    command_name    check-http 
     42    command_line    $USER1$/check_http -I $HOSTADDRESS$ -p $ARG1$ -u $ARG2$ -r $ARG3$ 
     43} 
     44""" 
     45legacy_checks += [ 
     46  ( ( "check-http!8774!/axis2/services!'<h3><u>EucalyptusCC</u></h3>'", "Cloud Controller", True), [ "cloud" ], ALL_HOSTS ), 
     47  ( ( "check-http!8775!/axis2/services!'<h2>Deployed Services</h2><h3><u>EucalyptusNC</u></h3>'", "Node Controller", True), [ "nodes" ], ALL_HOSTS ), 
     48] 
     49}}} 
     50 
     51For this to make any sense, you need to have an understanding of what check_http is, and how it works.  It's part of any basic Nagios install.  In particular, it's part of the nagios-plugins package.  On a RHEL system, by default, it would get installed in /usr/lib/nagios/plugins, but since it's part of OMD in our case, it lives at $OMD_ROOT/lib/nagios/plugins/check_http.  It's helpful to locate the plugin itself, and run it once from the command line without any parameters.  Then you can see what is going on in those 'legacy_checks' declarations. 
     52 
    3653== checks.mk == 
    3754