Icinga 2:display_name中的变量?

时间:2017-03-01 13:42:40

标签: icinga icinga2

是否可以在Icinga2配置中将变量传递给display_name,例如服务:

apply Service for (disk_name => config in host.vars.disks) to Host {
  import "generic-service"
  vars = vars + config
  display_name = "disk" //TODO: pass hdd name?
  check_command = "disk"
}

1 个答案:

答案 0 :(得分:2)

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

<div class="container">
  <div class="row">
    <div class="col-sm-4">
     <div class="panel panel-primary" onclick="location.href='game.aspx?id=2'" style="cursor: pointer;">     
      <div class="panel-heading">BLACK FRIDAY DEAL</div>
       </div>
      <div class="row">
        <div class="col-sm-6">
              
            <div class="panel-body"><img src="Images/150x80_4.jpg" class="img-responsive" style="width:100%;" alt="Image"></div>     
         
        </div>
        <div class="col-sm-6">            
            <div class="panel-body"><img src="Images/150x80_4.jpg" class="img-responsive" style="width:100%" alt="Image"></div>            
        </div>
        <div class="col-sm-12">     
            <div class="panel-footer">Buy 50 mobiles and get a gift card</div>

          </div>
        </div>
      </div>
       

      <div class="col-sm-4">
     <div class="panel panel-primary" onclick="location.href='game.aspx?id=2'" style="cursor: pointer;">     
      <div class="panel-heading">BLACK FRIDAY DEAL</div>
       </div>
      <div class="row">
        <div class="col-sm-6">
              
            <div class="panel-body"><img src="Images/150x80_4.jpg" class="img-responsive" style="width:100%" alt="Image"></div>     
         
        </div>
        <div class="col-sm-6">            
            <div class="panel-body"><img src="Images/150x80_4.jpg" class="img-responsive" style="width:100%" alt="Image"></div>            
        </div>
        <div class="col-sm-12">     
            <div class="panel-footer">Buy 50 mobiles and get a gift card</div>

          </div>
        </div>
      </div>
      <div class="col-sm-4">
     <div class="panel panel-primary" onclick="location.href='game.aspx?id=2'" style="cursor: pointer;">     
      <div class="panel-heading">BLACK FRIDAY DEAL</div>
       </div>
      <div class="row">
        <div class="col-sm-6">
              
            <div class="panel-body"><img src="Images/150x80_4.jpg" class="img-responsive" style="width:100%" alt="Image"></div>     
         
        </div>
        <div class="col-sm-6">            
            <div class="panel-body"><img src="Images/150x80_4.jpg" class="img-responsive" style="width:100%" alt="Image"></div>            
        </div>
        <div class="col-sm-12">     
            <div class="panel-footer">Buy 50 mobiles and get a gift card</div>

          </div>
        </div>
      </div>
  </div>

  <br />
  <br />
    <div class="row">
    <div class="col-sm-4">
     <div class="panel panel-primary" onclick="location.href='game.aspx?id=2'" style="cursor: pointer;">     
      <div class="panel-heading">BLACK FRIDAY DEAL</div>
       </div>
      <div class="row">
        <div class="col-sm-6">
              
            <div class="panel-body"><img src="Images/150x80_4.jpg" class="img-responsive" style="width:100%" alt="Image"></div>     
         
        </div>
        <div class="col-sm-6">            
            <div class="panel-body"><img src="Images/150x80_4.jpg" class="img-responsive" style="width:100%" alt="Image"></div>            
        </div>
        <div class="col-sm-12">     
            <div class="panel-footer">Buy 50 mobiles and get a gift card</div>

          </div>
        </div>
      </div>
       

      <div class="col-sm-4">
     <div class="panel panel-primary" onclick="location.href='game.aspx?id=2'" style="cursor: pointer;">     
      <div class="panel-heading">BLACK FRIDAY DEAL</div>
       </div>
      <div class="row">
        <div class="col-sm-6">
              
            <div class="panel-body"><img src="Images/150x80_4.jpg" class="img-responsive" style="width:100%" alt="Image"></div>     
         
        </div>
        <div class="col-sm-6">            
            <div class="panel-body"><img src="Images/150x80_4.jpg" class="img-responsive" style="width:100%" alt="Image"></div>            
        </div>
        <div class="col-sm-12">     
            <div class="panel-footer">Buy 50 mobiles and get a gift card</div>

          </div>
        </div>
      </div>
      <div class="col-sm-4">
     <div class="panel panel-primary" onclick="location.href='game.aspx?id=2'" style="cursor: pointer;">     
      <div class="panel-heading">BLACK FRIDAY DEAL</div>
       </div>

      <div class="row">
        <div class="col-sm-6">
              
            <div class="panel-body"><img src="Images/150x80_4.jpg" class="img-responsive" style="width:100%" alt="Image"></div>     
         
        </div>
        <div class="col-sm-6">            
            <div class="panel-body"><img src="Images/150x80_4.jpg" class="img-responsive" style="width:100%" alt="Image"></div>            
        </div>
        <div class="col-sm-12">     
            <div class="panel-footer">Buy 50 mobiles and get a gift card</div>

          </div>
        </div>
      </div>
  </div>
</div>