Exemplo n.º 1
0
 def __init__(self, *args):
     ImageScraperSource.__init__(self, 'tier0', [
         lemonimg("status",
                  "info", ['t0exp_load_average'],
                  "cache/",
                  entity="c2cms/t0export",
                  time=0,
                  offset=0),
         lemonimg("status",
                  "info",
                  ['t0exp_cpu_utilization', 't0exp_net_utilization'],
                  "/lemon-status/images/",
                  entity="c2cms/t0export",
                  time=0,
                  offset=0),
         lemonimg("status",
                  "info", ['t1transfer_load_average'],
                  "cache/",
                  entity="c2cms/t1transfer",
                  time=0,
                  offset=0),
         lemonimg(
             "status",
             "info",
             ['t1transfer_cpu_utilization', 't1transfer_net_utilization'],
             "/lemon-status/images/",
             entity="c2cms/t1transfer",
             time=0,
             offset=0),
         lemonimg("web",
                  "info", ['cmst0_load_average'],
                  "cache/",
                  entity="lxbatch/cmst0"),
         lemonimg("web",
                  "info",
                  ['cmst0_cpu_utilization', 'cmst0_net_utilization'],
                  "/lemon-web/images/",
                  entity="lxbatch/cmst0"),
         lemonimg("web",
                  "info", ['cmsproc_load_average'],
                  "cache/",
                  entity="lxbatch/cmsproc"),
         lemonimg("web",
                  "info",
                  ['cmsproc_cpu_utilization', 'cmsproc_net_utilization'],
                  "/lemon-web/images/",
                  entity="lxbatch/cmsproc"),
         lrfimg(['tier0_jobs'],
                "/lrf-lsf/images/",
                queue="cmst0",
                detailed=0,
                auto_update=0,
                time=0),
         slsimg(['tier0export_space'],
                "graph.php",
                id="CASTORCMS_T0EXPORT",
                more="nv:Total Space TB",
                period="day")
     ])
Exemplo n.º 2
0
 def __init__(self, *args):
   ImageScraperSource.__init__(self, 'tier0', [
     lemonimg("status", "info", ['t0exp_load_average'], "cache/", entity="c2cms/t0export", time=0, offset=0),
     lemonimg("status", "info", ['t0exp_cpu_utilization', 't0exp_net_utilization'], "/lemon-status/images/", entity="c2cms/t0export", time=0, offset=0),
     lemonimg("status", "info", ['t1transfer_load_average'], "cache/", entity="c2cms/t1transfer", time=0, offset=0),
     lemonimg("status", "info", ['t1transfer_cpu_utilization', 't1transfer_net_utilization'], "/lemon-status/images/", entity="c2cms/t1transfer", time=0, offset=0),
     lemonimg("web", "info", ['cmst0_load_average'], "cache/", entity="lxbatch/cmst0"),
     lemonimg("web", "info", ['cmst0_cpu_utilization', 'cmst0_net_utilization'], "/lemon-web/images/", entity="lxbatch/cmst0"),
     lemonimg("web", "info", ['cmsproc_load_average'], "cache/", entity="lxbatch/cmsproc"),
     lemonimg("web", "info", ['cmsproc_cpu_utilization', 'cmsproc_net_utilization'], "/lemon-web/images/", entity="lxbatch/cmsproc"),
     lrfimg(['tier0_jobs'], "/lrf-lsf/images/", queue="cmst0", detailed=0, auto_update=0, time=0),
     slsimg(['tier0export_space'], "graph.php", id="CASTORCMS_T0EXPORT", more="nv:Total Space TB", period="day") ])
Exemplo n.º 3
0
Arquivo: CAF.py Projeto: rovere/dqmgui
 def __init__(self, server, dir, *args):
     ImageScraperSource.__init__(
         self,
         "caf-plot",
         [
             lemonimg(
                 "web",
                 "info",
                 ["lxbatch-cmscaf-cpu", "lxbatch-cmscaf-net"],
                 "/lemon-web/images/",
                 entity="lxbatch/cmscaf",
                 time=0,
                 offset=0,
             ),
             lemonimg(
                 "web",
                 "info",
                 ["lxbatch-cmsexpress-cpu", "lxbatch-cmsexpress-net"],
                 "/lemon-web/images/",
                 entity="lxbatch/cmsexpress",
                 time=0,
                 offset=0,
             ),
             lemonimg(
                 "web",
                 "info",
                 ["lxbatch-cmsinter-cpu", "lxbatch-cmsinter-net"],
                 "/lemon-web/images/",
                 entity="lxbatch/cmsinter",
                 time=0,
                 offset=0,
             ),
             lemonimg(
                 "web",
                 "metric_distribution",
                 ["lxbatch-cmscaf-loadavg"],
                 "cache/",
                 entity="lxbatch/cmscaf",
                 metric="LoadAvg",
                 field="LoadAvg",
             ),
             lemonimg(
                 "web",
                 "metric_distribution",
                 ["lxbatch-cmsexpress-loadavg"],
                 "cache/",
                 entity="lxbatch/cmsexpress",
                 metric="LoadAvg",
                 field="LoadAvg",
             ),
             lemonimg(
                 "web",
                 "metric_distribution",
                 ["lxbatch-cmsinter-loadavg"],
                 "cache/",
                 entity="lxbatch/cmsinter",
                 metric="LoadAvg",
                 field="LoadAvg",
             ),
             lemonimg(
                 "status",
                 "info",
                 ["c2cms-cmscaf-cpu", "c2cms-cmscaf-net"],
                 "/lemon-status/images/",
                 entity="c2cms/cmscaf",
                 time="0.0.5",
                 offset=0,
             ),
             lemonimg(
                 "status",
                 "info",
                 ["c2cms-cmscafuser-cpu", "c2cms-cmscafuser-net"],
                 "/lemon-status/images/",
                 entity="c2cms/cmscafuser",
                 time="0.0.5",
                 offset=0,
             ),
             lemonimg(
                 "status",
                 "metric_distribution",
                 ["c2cms-cmscaf-loadavg"],
                 "cache/",
                 entity="c2cms/cmscaf",
                 metric="LoadAvg",
                 field="LoadAvg",
             ),
             lemonimg(
                 "status",
                 "metric_distribution",
                 ["c2cms-cmscafuser-loadavg"],
                 "cache/",
                 entity="c2cms/cmscafuser",
                 metric="LoadAvg",
                 field="LoadAvg",
             ),
             slsimg(["avail"], "graph.php", id="CASTORCMS_CMSCAF", more="availability", period="day"),
             slsimg(
                 ["disk-free"], "graph.php", id="CASTORCMS_CMSCAF", more="nv:Percentage Free Space", period="week"
             ),
             slsimg(
                 ["diskuser-free"],
                 "graph.php",
                 id="CASTORCMS_CMSCAFUSER",
                 more="nv:Percentage Free Space",
                 period="week",
             ),
             lrfimg(["job-queue-caf1nh"], "rrd_RUN_d.gif", queue="cmscaf1nh"),
             lrfimg(["job-queue-caf1nd"], "rrd_RUN_d.gif", queue="cmscaf1nd"),
             lrfimg(["job-queue-caf1nw"], "rrd_RUN_d.gif", queue="cmscaf1nw"),
             lrfimg(["job-queue-cmsexpress"], "rrd_RUN_d.gif", queue="cmsexpress"),
         ],
     )
Exemplo n.º 4
0
 def __init__(self, server, dir, *args):
     ImageScraperSource.__init__(self, 'caf-plot', [
         lemonimg("web",
                  "info", ["lxbatch-cmscaf-cpu", "lxbatch-cmscaf-net"],
                  "/lemon-web/images/",
                  entity="lxbatch/cmscaf",
                  time=0,
                  offset=0),
         lemonimg("web",
                  "info",
                  ["lxbatch-cmsexpress-cpu", "lxbatch-cmsexpress-net"],
                  "/lemon-web/images/",
                  entity="lxbatch/cmsexpress",
                  time=0,
                  offset=0),
         lemonimg("web",
                  "info", ["lxbatch-cmsinter-cpu", "lxbatch-cmsinter-net"],
                  "/lemon-web/images/",
                  entity="lxbatch/cmsinter",
                  time=0,
                  offset=0),
         lemonimg("web",
                  "metric_distribution", ["lxbatch-cmscaf-loadavg"],
                  "cache/",
                  entity="lxbatch/cmscaf",
                  metric="LoadAvg",
                  field="LoadAvg"),
         lemonimg("web",
                  "metric_distribution", ["lxbatch-cmsexpress-loadavg"],
                  "cache/",
                  entity="lxbatch/cmsexpress",
                  metric="LoadAvg",
                  field="LoadAvg"),
         lemonimg("web",
                  "metric_distribution", ["lxbatch-cmsinter-loadavg"],
                  "cache/",
                  entity="lxbatch/cmsinter",
                  metric="LoadAvg",
                  field="LoadAvg"),
         lemonimg("status",
                  "info", ["c2cms-cmscaf-cpu", "c2cms-cmscaf-net"],
                  "/lemon-status/images/",
                  entity="c2cms/cmscaf",
                  time="0.0.5",
                  offset=0),
         lemonimg("status",
                  "info", ["c2cms-cmscafuser-cpu", "c2cms-cmscafuser-net"],
                  "/lemon-status/images/",
                  entity="c2cms/cmscafuser",
                  time="0.0.5",
                  offset=0),
         lemonimg("status",
                  "metric_distribution", ["c2cms-cmscaf-loadavg"],
                  "cache/",
                  entity="c2cms/cmscaf",
                  metric="LoadAvg",
                  field="LoadAvg"),
         lemonimg("status",
                  "metric_distribution", ["c2cms-cmscafuser-loadavg"],
                  "cache/",
                  entity="c2cms/cmscafuser",
                  metric="LoadAvg",
                  field="LoadAvg"),
         slsimg(["avail"],
                "graph.php",
                id="CASTORCMS_CMSCAF",
                more="availability",
                period="day"),
         slsimg(["disk-free"],
                "graph.php",
                id="CASTORCMS_CMSCAF",
                more="nv:Percentage Free Space",
                period="week"),
         slsimg(["diskuser-free"],
                "graph.php",
                id="CASTORCMS_CMSCAFUSER",
                more="nv:Percentage Free Space",
                period="week"),
         lrfimg(["job-queue-caf1nh"], "rrd_RUN_d.gif", queue="cmscaf1nh"),
         lrfimg(["job-queue-caf1nd"], "rrd_RUN_d.gif", queue="cmscaf1nd"),
         lrfimg(["job-queue-caf1nw"], "rrd_RUN_d.gif", queue="cmscaf1nw"),
         lrfimg(
             ["job-queue-cmsexpress"], "rrd_RUN_d.gif", queue="cmsexpress")
     ])