File: system.tpl

package info (click to toggle)
shinken-mod-webui 1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 14,136 kB
  • ctags: 2,980
  • sloc: python: 3,654; sh: 47; makefile: 19; sql: 3
file content (58 lines) | stat: -rw-r--r-- 3,355 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
%rebase layout globals(), css=['system/css/system.css'], title='System', menu_part='/system'

%from shinken.bin import VERSION
%helper = app.helper

<div class="row">
  <div class="col-lg-12">
    <div class="row-fluid">
      <div class="col-lg-8">
        <h3>Shinken Daemons</h3>
        %types = [ ('scheduler', schedulers), ('poller', pollers), ('broker', brokers), ('reactionner', reactionners), ('receiver', receivers)]
        %for (sat_type, sats) in types:
        <h4><i class="icon-wrench"></i> {{sat_type.capitalize()}}</h4>
        <table class="table table-hover">
          <thead>
            <tr>
              <th>Name</th>
              <th>State</th>
              <th>Alive</th>
              <th>Attemts</th>
              <th>Last Check</th>
              <th>Realm</th>
            </tr>
          </thead>
          <tbody>
          %for s in sats:
            <tr>
              <td style="width: 200px;">{{s.get_name()}}</td>
              <td><img style="width: 16px; height: 16px;" src="{{helper.get_icon_state(s)}}" /></td>
              <td>{{s.alive}}</td>
              <td>{{s.attempt}}/{{s.max_check_attempts}}</td>
              <td title='{{helper.print_date(s.last_check)}}'>{{helper.print_duration(s.last_check, just_duration=True, x_elts=2)}}</td>
              <td>{{s.realm}}</td>
            </tr>
          </tbody>
          %end  
        </table>
        %end
      </div>
      <div class="col-lg-4">
        <div class="well well-sm" style="margin-top: 65px;">
          <!-- <img alt="" src="http://placehold.it/300x200"> -->
          <div class="caption">
            <h3 class="font-blue"><i class="icon-question-sign"></i> Information</h3>
            <p><a href="http://www.shinken-monitoring.org/wiki/official/configuringshinken/configobjects/arbiter" class="" type="button">Arbiter:</a> The arbiter daemon reads the configuration, divides it into parts (N schedulers = N parts), and distributes them to the appropriate Shinken daemons.</p>
            <p><a href="http://www.shinken-monitoring.org/wiki/official/configuringshinken/configobjects/scheduler">Scheduler:</a> The scheduler daemon manages the dispatching of checks and actions to the poller and reactionner daemons respectively.</p>
            <p><a href="http://www.shinken-monitoring.org/wiki/official/configuringshinken/configobjects/poller">Poller:</a> The poller daemon launches check plugins as requested by schedulers. When the check is finished it returns the result to the schedulers.</p>
            <p><a href="http://www.shinken-monitoring.org/wiki/official/configuringshinken/configobjects/reactionner">Reactionner:</a> The reactionner daemon issues notifications and launches event_handlers. </p>
            <p><a href="http://www.shinken-monitoring.org/wiki/official/configuringshinken/configobjects/broker">Broker:</a> The broker daemon exports and manages data from schedulers. The broker uses modules exclusively to get the job done.</p>
            <p>Receiver (<b>optional</b>): The receiver daemon receives passive check data and serves as a distributed command buffer.</p>
            <hr>
            <p><a href="http://www.shinken-monitoring.org/wiki/the_shinken_architecture" class="btn btn-info btn-lg btn-block">Learn more ยป</a></p>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>