Exemplo n.º 1
0
multisite_builtin_views.update({
    "service_graphs": {
        "browser_reload":
        30,
        "column_headers":
        "off",
        "datasource":
        "services",
        "description":
        _("Shows all graphs including timerange selections "
          "of a collection of services."),
        "group_painters": [
            ("sitealias", "sitehosts"),
            ("host_with_state", "host"),
            ("service_description", "service"),
        ],
        "hard_filters": [],
        "hard_filtervars": [],
        "hidden":
        True,
        "hide_filters": ["siteopt", "service", "host"],
        "layout":
        "boxed_graph",
        "mustsearch":
        False,
        "name":
        "service_graphs",
        "num_columns":
        1,
        "owner":
        "",
        "painters": [
            ("service_graphs", None),
        ],
        "public":
        True,
        "show_filters": [],
        "sorters": [],
        "icon":
        "service_graph",
        "title":
        _("Service Graphs"),
        "topic":
        "history",
    },
    "host_graphs": {
        "browser_reload":
        30,
        "column_headers":
        "off",
        "datasource":
        "hosts",
        "description":
        _("Shows host graphs including timerange selections "
          "of a collection of hosts."),
        "group_painters": [
            ("sitealias", "sitehosts"),
            ("host_with_state", "host"),
        ],
        "hard_filters": [],
        "hard_filtervars": [],
        "hidden":
        True,
        "hide_filters": ["siteopt", "host"],
        "layout":
        "boxed_graph",
        "mustsearch":
        False,
        "name":
        "host_graphs",
        "num_columns":
        1,
        "owner":
        "",
        "painters": [
            ("host_graphs", None),
        ],
        "public":
        True,
        "show_filters": [],
        "sorters": [],
        "icon":
        "graph",
        "title":
        _("Host graphs"),
        "topic":
        "history",
    },
})
Exemplo n.º 2
0
multisite_builtin_views.update({
    "topology_filters": {
        "browser_reload":
        30,
        "column_headers":
        "pergroup",
        "datasource":
        "hosts",
        "description":
        _("Configures the number of available filters in the network topology view."
          ),
        "group_painters": [],
        "hard_filters": [],
        "hard_filtervars": [],
        "hidden":
        True,
        "hide_filters": [],
        "layout":
        "table",
        "mustsearch":
        False,
        "name":
        "allhosts",
        "num_columns":
        3,
        "owner":
        "",
        "painters": [("host_state", None)],
        "play_sounds":
        False,
        "public":
        True,
        "show_filters": [
            "hoststate",
            "hostalias",
            "siteopt",
            "hostregex",
            "hostgroups",
            "host_labels",
            "opthost_contactgroup",
            "host_tags",
        ],
        "sorters": [],
        "title":
        _("Topology filters"),
        "topic":
        _("Topology"),
    },
    "bi_map_hover_host": {
        "browser_reload":
        0,
        "column_headers":
        "pergroup",
        "datasource":
        "hosts",
        "description":
        _("Host hover menu shown in BI visualization"),
        "hidden":
        True,
        "hidebutton":
        True,
        "hide_filters": [],
        "hard_filters": [],
        "hard_filtervars": [],
        "show_filters": [],
        "group_painters": [],
        "icon":
        None,
        "layout":
        "dataset",
        "mobile":
        False,
        "mustsearch":
        False,
        "name":
        "bi_map_hover_host",
        "num_columns":
        1,
        "owner":
        "",
        "painters": [
            (("host", {
                "color_choices": []
            }), "hoststatus", None),
            ("host_state", None, None),
            ("host_plugin_output", None, None),
        ],
        "play_sounds":
        False,
        "public":
        True,
        "single_infos": ["host"],
        "sorters": [],
        "title":
        _("BI host details"),
    },
    "bi_map_hover_service": {
        "browser_reload":
        0,
        "column_headers":
        "pergroup",
        "datasource":
        "services",
        "description":
        _("Service hover menu shown in BI visualization"),
        "hidden":
        True,
        "hidebutton":
        True,
        "hide_filters": [],
        "hard_filters": [],
        "hard_filtervars": [],
        "show_filters": [],
        "group_painters": [],
        "icon":
        None,
        "layout":
        "dataset",
        "mobile":
        False,
        "mustsearch":
        False,
        "name":
        "bi_map_hover_service",
        "num_columns":
        1,
        "painters": [
            (("host", {
                "color_choices": []
            }), "hoststatus", None),
            ("service_description", "service", None),
            ("service_state", None, None),
            ("host_check_age", None, None),
            ("svc_acknowledged", None, None),
            ("svc_in_downtime", None, None),
        ],
        "play_sounds":
        False,
        "public":
        True,
        "single_infos": ["service", "host"],
        "sorters": [],
        "title":
        _("BI service details"),
    },
    "topology_hover_host": {
        "browser_reload":
        0,
        "column_headers":
        "pergroup",
        "datasource":
        "hosts",
        "description":
        _("Host hover menu shown in topolgoy visualization"),
        "hidden":
        True,
        "hidebutton":
        True,
        "hide_filters": [],
        "hard_filters": [],
        "hard_filtervars": [],
        "show_filters": [],
        "group_painters": [],
        "icon":
        None,
        "layout":
        "dataset",
        "mobile":
        False,
        "mustsearch":
        False,
        "name":
        "topology_hover_host",
        "num_columns":
        1,
        "owner":
        "",
        "painters": [
            (("host", {
                "color_choices": []
            }), "hoststatus", None),
            ("host_state", None, None),
            ("host_plugin_output", None, None),
            ("host_parents", None, None),
            ("host_childs", None, None),
        ],
        "play_sounds":
        False,
        "public":
        True,
        "single_infos": ["host"],
        "sorters": [],
        "title":
        _("Toplogy host details"),
    },
})
Exemplo n.º 3
0
multisite_builtin_views.update({
    # Service search
    "mobile_searchsvc":
    mobile_view({
        "datasource":
        "services",
        "group_painters": [("sitealias", "sitehosts"), ("host", "host")],
        "hard_filters": [],
        "hard_filtervars": [
            ("is_service_in_notification_period", "-1"),
            ("optservicegroup", ""),
            ("is_service_notifications_enabled", "-1"),
            ("is_host_in_notification_period", "-1"),
            ("is_in_downtime", "-1"),
            ("is_service_scheduled_downtime_depth", "-1"),
            ("is_service_acknowledged", "-1"),
            ("host", ""),
            ("is_service_active_checks_enabled", "-1"),
            ("service", ""),
            ("check_command", ""),
            ("st0", "on"),
            ("st1", "on"),
            ("st2", "on"),
            ("st3", "on"),
            ("stp", "on"),
            ("opthostgroup", ""),
            ("service_output", ""),
            ("is_service_is_flapping", "-1"),
        ],
        "hide_filters": [],
        "layout":
        "mobilelist",
        "mustsearch":
        True,
        "name":
        "mobile_searchsvc",
        "num_columns":
        2,
        "owner":
        "",
        "painters": [
            ("service_state", None, ""),
            ("host", "mobile_hoststatus", ""),
            ("service_description", "mobile_service", ""),
            ("svc_plugin_output", ""),
            ("svc_state_age", None, ""),
        ],
        "public":
        True,
        "show_filters": [
            "service_in_notification_period",
            "service_notifications_enabled",
            "host_in_notification_period",
            "in_downtime",
            "service_scheduled_downtime_depth",
            "service_acknowledged",
            "hostregex",
            "serviceregex",
            "hoststate",
            "svcstate",
            "svchardstate",
            "opthostgroup",
            "output",
        ],
        "sorters": [
            ("site", False),
            ("site_host", False),
            ("svcdescr", False),
        ],
        "title":
        _("Service search"),
        "topic":
        "overview",
    }),
    # View of all current service problems
    "mobile_svcproblems":
    mobile_view({
        "datasource":
        "services",
        "group_painters": [],
        "hard_filters": ["in_downtime"],
        "hard_filtervars": [
            ("is_in_downtime", "0"),
            ("st0", ""),
            ("st1", "on"),
            ("st2", "on"),
            ("st3", "on"),
            ("stp", ""),
            ("hst0", "on"),
            ("hst1", ""),
            ("hst2", ""),
            ("hstp", "on"),
        ],
        "hide_filters": [],
        "layout":
        "mobilelist",
        "name":
        "mobile_svcproblems",
        "num_columns":
        2,
        "painters": [
            ("service_state", None, ""),
            ("host", "mobile_hoststatus", ""),
            ("service_description", "mobile_service", ""),
            ("svc_plugin_output", ""),
            ("svc_state_age", None, ""),
        ],
        "show_filters": [
            "service_in_notification_period",
            "service_acknowledged",
            "svcstate",
            "svchardstate",
            "hoststate",
        ],
        "sorters": [
            ("svcstate", True),
            ("stateage", False),
            ("svcdescr", False),
        ],
        "title":
        _("Service problems (all)"),
        "topic":
        "problems",
    }),
    # View of unhandled service problems
    "mobile_svcproblems_unack":
    mobile_view({
        "datasource":
        "services",
        "group_painters": [],
        "hard_filters": ["in_downtime", "service_acknowledged"],
        "hard_filtervars": [
            ("is_service_in_notification_period", "-1"),
            ("hst0", "on"),
            ("hst1", ""),
            ("hst2", ""),
            ("hstp", "on"),
            ("is_service_acknowledged", "0"),
            ("hdst0", "on"),
            ("hdst1", "on"),
            ("hdst2", "on"),
            ("hdst3", "on"),
            ("hdstp", "on"),
            ("st0", ""),
            ("st1", "on"),
            ("st2", "on"),
            ("st3", "on"),
            ("stp", ""),
            ("is_in_downtime", "0"),
        ],
        "hide_filters": [],
        "layout":
        "mobilelist",
        "name":
        "mobile_svcproblems_unack",
        "num_columns":
        2,
        "painters": [
            ("service_state", None, ""),
            ("host", "mobile_hoststatus", ""),
            ("service_description", "mobile_service", ""),
            ("svc_plugin_output", ""),
            ("svc_state_age", None, ""),
        ],
        "show_filters": [
            "service_in_notification_period",
            "hoststate",
            "svchardstate",
            "svcstate",
        ],
        "sorters": [
            ("svcstate", True),
            ("stateage", False),
            ("svcdescr", False),
        ],
        "title":
        _("Service problems (unhandled)"),
        "topic":
        "problems",
    }),
    # Service details
    "mobile_service":
    mobile_view({
        "datasource":
        "services",
        "group_painters": [],
        "hard_filters": [],
        "hard_filtervars": [],
        "hide_filters": ["site", "service", "host"],
        "layout":
        "mobiledataset",
        "name":
        "mobile_service",
        "num_columns":
        1,
        "hidden":
        True,
        "painters": [
            ("sitealias", None, ""),
            ("host", "mobile_host", ""),
            ("service_description", ""),
            ("svc_plugin_output", None, ""),
            ("service_state", None, ""),
            ("svc_state_age", None, ""),
            ("svc_check_age", None, ""),
            ("svc_group_memberlist", None, ""),
            ("svc_contact_groups", None, ""),
            ("svc_contacts", None, ""),
            ("svc_long_plugin_output", None, ""),
            ("svc_perf_data", None, ""),
            ("svc_check_command", None, ""),
            ("svc_attempt", None, ""),
            ("svc_check_type", None, ""),
            ("svc_next_check", None, ""),
            ("svc_next_notification", None, ""),
            ("svc_last_notification", None, ""),
            ("svc_check_latency", None, ""),
            ("svc_check_duration", None, ""),
            ("svc_in_downtime", None, ""),
            ("svc_in_notifper", None, ""),
            ("svc_notifper", None, ""),
            ("svc_custom_notes", None, ""),
            ("svc_pnpgraph", None, ""),
        ],
        "show_filters": [],
        "sorters": [],
        "title":
        _("Service"),
    }),
    # All services of one host
    "mobile_host":
    mobile_view({
        "datasource":
        "services",
        "group_painters": [],
        "hard_filters": [],
        "hard_filtervars": [
            ("st0", "on"),
            ("st1", "on"),
            ("st2", "on"),
            ("st3", "on"),
            ("stp", "on"),
        ],
        "hidden":
        True,
        "hide_filters": ["site", "host"],
        "layout":
        "mobilelist",
        "name":
        "mobile_svcproblems",
        "num_columns":
        1,
        "painters": [
            ("service_state", None),
            ("service_description", "mobile_service"),
            ("svc_plugin_output", None),
            ("svc_state_age", None),
        ],
        "show_filters": ["svcstate", "serviceregex"],
        "sorters": [("svcstate", True), ("stateage", False),
                    ("svcdescr", False)],
        "title":
        _("Services of host"),
    }),
    # Host details
    "mobile_hoststatus":
    mobile_view({
        "datasource":
        "hosts",
        "group_painters": [],
        "hard_filters": [],
        "hard_filtervars": [],
        "hide_filters": ["site", "host"],
        "icon":
        "status",
        "layout":
        "mobiledataset",
        "hidden":
        True,
        "painters": [
            ("sitealias", None),
            ("host", "mobile_host"),
            ("alias", None),
            ("host_state", None),
            ("host_address", None),
            ("host_parents", None),
            ("host_childs", None),
            ("host_contact_groups", None),
            ("host_contacts", None),
            ("host_plugin_output", None),
            ("host_perf_data", None),
            ("host_attempt", None),
            ("host_check_type", None),
            ("host_state_age", None),
            ("host_check_age", None),
            ("host_next_check", None),
            ("host_next_notification", None),
            ("host_last_notification", None),
            ("host_check_latency", None),
            ("host_check_duration", None),
            ("host_in_downtime", None),
            ("host_in_notifper", None),
            ("host_notifper", None),
            ("num_services", "mobile_host"),
            ("host_pnpgraph", None),
        ],
        "show_filters": [],
        "sorters": [],
        "title":
        _("Host status"),
    }),
    # Search hosts
    "mobile_searchhost":
    mobile_view({
        "datasource":
        "hosts",
        "group_painters": [],
        "hard_filters": [],
        "hard_filtervars": [
            ("is_host_scheduled_downtime_depth", "-1"),
            ("is_host_in_notification_period", "-1"),
            ("hst0", "on"),
            ("hst1", "on"),
            ("hst2", "on"),
            ("hstp", "on"),
            ("site", ""),
            ("host", ""),
            ("is_host_notifications_enabled", "-1"),
            ("opthostgroup", ""),
            ("neg_opthostgroup", ""),
            ("opthost_contactgroup", ""),
            ("neg_opthost_contactgroup", ""),
        ],
        "hide_filters": [],
        "layout":
        "mobilelist",
        "mustsearch":
        True,
        "num_columns":
        2,
        "painters": [
            ("host_state", None),
            ("host", "mobile_host"),
            ("host_plugin_output", None),
        ],
        "show_filters": [
            "hoststate",
            "hostregex",
            "opthostgroup",
        ],
        "sorters": [],
        "title":
        _("Host search"),
        "topic":
        "overview",
    }),
    # List all host problems
    "mobile_hostproblems":
    mobile_view({
        "datasource":
        "hosts",
        "group_painters": [("host_state", None)],
        "hard_filters": ["host_scheduled_downtime_depth"],
        "hard_filtervars": [
            ("is_host_scheduled_downtime_depth", "0"),
            ("is_host_in_notification_period", "-1"),
            ("hst0", ""),
            ("hst1", "on"),
            ("hst2", "on"),
            ("hstp", ""),
            ("is_host_acknowledged", "-1"),
            ("host", ""),
            ("opthostgroup", ""),
        ],
        "hide_filters": [],
        "layout":
        "mobilelist",
        "mustsearch":
        False,
        "name":
        "hostproblems",
        "num_columns":
        2,
        "painters": [
            ("host_state", None),
            ("host", "mobile_host"),
            ("host_plugin_output", None),
        ],
        "public":
        True,
        "show_filters": [
            "host_in_notification_period",
            "hoststate",
            "hostregex",
            "opthostgroup",
            "host_acknowledged",
        ],
        "sorters": [],
        "title":
        _("Host problems (all)"),
        "topic":
        "problems",
    }),
    # List unhandled host problems
    "mobile_hostproblems_unack":
    mobile_view({
        "datasource":
        "hosts",
        "group_painters": [("host_state", None)],
        "hard_filters": ["host_scheduled_downtime_depth", "host_acknowledged"],
        "hard_filtervars": [
            ("is_host_scheduled_downtime_depth", "0"),
            ("is_host_in_notification_period", "-1"),
            ("hst0", ""),
            ("hst1", "on"),
            ("hst2", "on"),
            ("hstp", ""),
            ("is_host_acknowledged", "0"),
            ("host", ""),
            ("opthostgroup", ""),
        ],
        "hide_filters": [],
        "layout":
        "mobilelist",
        "mustsearch":
        False,
        "name":
        "hostproblems",
        "num_columns":
        2,
        "painters": [
            ("host_state", None),
            ("host", "mobile_host"),
            ("host_plugin_output", None),
        ],
        "public":
        True,
        "show_filters": [
            "host_in_notification_period",
            "hoststate",
            "hostregex",
            "opthostgroup",
        ],
        "sorters": [],
        "title":
        _("Host problems (unhandled)"),
        "topic":
        "problems",
    }),
    # All Nagios Events at all
    "mobile_events":
    mobile_view({
        "datasource":
        "log_events",
        "group_painters": [],
        "hard_filters": ["logtime"],
        "hard_filtervars": [
            ("logtime_from_range", "3600"),
            ("logtime_from", "4"),
        ],
        "hide_filters": [],
        "layout":
        "mobilelist",
        "mustsearch":
        False,
        "name":
        "mobile_events",
        "num_columns":
        1,
        "painters": [
            ("log_icon", None),
            ("log_time", None),
            ("host", "mobile_hostsvcevents"),
            ("service_description", "mobile_svcevents"),
            ("log_plugin_output", None),
        ],
        "public":
        True,
        "show_filters": [],
        "sorters": [("log_time", False), ("log_lineno", False)],
        "title":
        _("Events"),
        "topic":
        "history",
    }),
    # All Notifications at all
    "mobile_notifications":
    mobile_view({
        "datasource":
        "log",
        "group_painters": [("log_date", None, "")],
        "hard_filters": ["log_class"],
        "hard_filtervars": [
            ("logclass0", ""),
            ("logclass1", ""),
            ("logclass2", ""),
            ("logclass3", "on"),
            ("logclass4", ""),
            ("logclass5", ""),
            ("logclass6", ""),
            ("host", ""),
            ("service", ""),
            ("log_plugin_output", ""),
            ("logtime_from_range", "3600"),
            ("logtime_from", "24"),
        ],
        "hide_filters": [],
        "icon":
        "notifications",
        "layout":
        "mobilelist",
        "mustsearch":
        False,
        "name":
        "mobile_notifications",
        "num_columns":
        2,
        "painters": [
            ("log_state", None, ""),
            ("host", "mobile_hostsvcnotifications", ""),
            ("service_description", "mobile_svcnotifications", ""),
            ("log_time", None, ""),
            ("log_contact_name", None, ""),
            ("log_type", None, ""),
            ("log_plugin_output", None, ""),
        ],
        "public":
        True,
        "show_filters": [
            "hostregex",
            "serviceregex",
            "log_plugin_output",
            "logtime",
        ],
        "sorters": [("log_time", True), ("log_lineno", True)],
        "title":
        _("History"),
        "topic":
        "history",
    }),
    # All events of a Host
    "mobile_hostsvcevents":
    mobile_view({
        "browser_reload":
        0,
        "datasource":
        "log_events",
        "group_painters": [("log_date", None)],
        "hard_filters": [],
        "hard_filtervars": [
            ("logtime_from_range", "86400"),
            ("logtime_from", "7"),
        ],
        "hidden":
        True,
        "hide_filters": ["site", "host"],
        "icon":
        "history",
        "layout":
        "mobilelist",
        "name":
        "events",
        "num_columns":
        2,
        "painters": [
            ("log_icon", None),
            ("log_time", None),
            ("log_type", None),
            ("host", None),
            ("service_description", "mobile_svcevents"),
            ("log_state_type", None),
            ("log_plugin_output", None),
        ],
        "show_filters": ["logtime", "log_state"],
        "sorters": [("log_time", False), ("log_lineno", False)],
        "title":
        _("Events of host & services"),
    }),
    # All events of one service
    "mobile_svcevents":
    mobile_view({
        "browser_reload":
        0,
        "datasource":
        "log_events",
        "group_painters": [("log_date", None)],
        "hard_filters": [],
        "hard_filtervars": [
            ("logtime_from_range", "86400"),
            ("logtime_from", "7"),
        ],
        "hidden":
        True,
        "hide_filters": ["site", "host", "service"],
        "icon":
        "history",
        "layout":
        "mobilelist",
        "name":
        "events",
        "num_columns":
        2,
        "painters": [
            ("log_icon", None),
            ("log_time", None),
            ("log_type", None),
            ("log_state_type", None),
            ("log_plugin_output", None),
        ],
        "show_filters": ["logtime"],
        "sorters": [("log_time", False), ("log_lineno", False)],
        "title":
        _("Events of service"),
    }),
    # All Notfications of a contact
    "mobile_contactnotifications":
    mobile_view({
        "datasource":
        "log",
        "group_painters": [("log_date", None, "")],
        "hard_filters": ["log_class"],
        "hard_filtervars": [
            ("logclass0", ""),
            ("logclass1", ""),
            ("logclass2", ""),
            ("logclass3", "on"),
            ("logclass4", ""),
            ("logclass5", ""),
            ("logclass6", ""),
            ("host", ""),
            ("service", ""),
            ("log_plugin_output", ""),
            ("logtime_from_range", "86400"),
            ("logtime_from", "7"),
        ],
        "hidden":
        True,
        "hide_filters": ["log_contact_name"],
        "hidebutton":
        False,
        "icon":
        "notifications",
        "layout":
        "mobilelist",
        "name":
        "mobile_contactnotifications",
        "num_columns":
        2,
        "painters": [
            ("log_time", None, ""),
            ("host", "mobile_hostsvcnotifications", ""),
            ("service_description", "mobile_svcnotifications", ""),
            ("log_type", None, ""),
            ("log_state", None, ""),
            ("log_plugin_output", None, ""),
        ],
        "public":
        True,
        "show_filters":
        ["host", "serviceregex", "log_plugin_output", "logtime"],
        "sorters": [("log_time", False), ("log_lineno", False)],
        "title":
        _("Notifications of contact"),
        "topic":
        "history",
    }),
    # All Notfications of Host
    "mobile_hostsvcnotifications":
    mobile_view({
        "datasource":
        "log",
        "group_painters": [("log_date", None, "")],
        "hard_filters": ["log_class"],
        "hard_filtervars": [
            ("logclass0", ""),
            ("logclass1", ""),
            ("logclass2", ""),
            ("logclass3", "on"),
            ("logclass4", ""),
            ("logclass5", ""),
            ("logclass6", ""),
            ("service", ""),
            ("log_plugin_output", ""),
            ("logtime_from_range", "86400"),
            ("logtime_from", "7"),
        ],
        "hidden":
        True,
        "hide_filters": ["site", "host"],
        "hidebutton":
        False,
        "icon":
        "notifications",
        "layout":
        "mobilelist",
        "name":
        "hostsvcnotifications",
        "num_columns":
        2,
        "painters": [
            ("log_time", None, ""),
            ("log_contact_name", None, ""),
            ("log_type", None, ""),
            ("host", "mobile_hostsvcnotifications", ""),
            ("service_description", "mobile_svcnotifications", ""),
            ("log_state", None, ""),
            ("log_plugin_output", None, ""),
        ],
        "show_filters": ["serviceregex", "log_plugin_output", "logtime"],
        "sorters": [("log_time", False), ("log_lineno", False)],
        "title":
        _("Notifications of host & services"),
        "topic":
        "history",
    }),
    # All Notfications of a service
    "mobile_svcnotifications":
    mobile_view({
        "datasource":
        "log",
        "group_painters": [("log_date", None, "")],
        "hard_filters": ["log_class"],
        "hard_filtervars": [
            ("logclass0", ""),
            ("logclass1", ""),
            ("logclass2", ""),
            ("logclass3", "on"),
            ("logclass4", ""),
            ("logclass5", ""),
            ("logclass6", ""),
            ("log_plugin_output", ""),
            ("logtime_from_range", "86400"),
            ("logtime_from", "7"),
        ],
        "hidden":
        True,
        "hide_filters": ["site", "service", "host"],
        "hidebutton":
        False,
        "icon":
        "notifications",
        "layout":
        "mobilelist",
        "name":
        "mobile_svcnotifications",
        "num_columns":
        2,
        "painters": [
            ("log_time", None, ""),
            ("log_contact_name", None, ""),
            ("host", None, ""),
            ("log_state", None, ""),
            ("log_plugin_output", None, ""),
        ],
        "play_sounds":
        False,
        "public":
        True,
        "show_filters": ["log_plugin_output", "logtime"],
        "sorters": [("log_time", False), ("log_lineno", False)],
        "title":
        _("Service Notifications"),
        "topic":
        "history",
    }),
})
Exemplo n.º 4
0
multisite_builtin_views.update({
    # A similar view, used in the dashboard
    "hostproblems_dash": {
        "browser_reload":
        30,
        "column_headers":
        "pergroup",
        "datasource":
        "hosts",
        "description":
        "A complete list of all host problems, optimized for usage in the dashboard",
        "group_painters": [],
        "hard_filters": [
            "host_scheduled_downtime_depth",
            "hoststate",
            "host_acknowledged",
        ],
        "hard_filtervars": [
            ("is_host_scheduled_downtime_depth", "0"),
            ("hst0", ""),
            ("hst1", "on"),
            ("hst2", "on"),
            ("hstp", ""),
            ("is_host_acknowledged", "0"),
        ],
        "hidden":
        True,
        "hidebutton":
        True,
        "hide_filters": [],
        "layout":
        "table",
        "mustsearch":
        False,
        "name":
        "hostproblems",
        "num_columns":
        1,
        "owner":
        "",
        "painters": [
            ("host_state", None),
            ("host", "host"),
            ("host_icons", None),
            ("host_state_age", None),
            ("host_plugin_output", None),
            # ('host_check_age', None),       # save space
            # ('num_services_ok', 'host_ok'), # save space
            # ('num_services_warn', 'host_warn'),
            # ('num_services_crit', 'host_crit'),
            # ('num_services_unknown', 'host_unknown'),
            # ('num_services_pending', 'host_pending'),
        ],
        "public":
        True,
        "show_filters": [],
        "sorters": [("hoststate", True)],
        "title":
        "Host problems",
        "topic":
        None,
    },
    # Similar view, but for the dashboard
    "svcproblems_dash": {
        "browser_reload":
        30,
        "column_headers":
        "pergroup",
        "datasource":
        "services",
        "description":
        "All non-downtime, non-acknownledged services, used for the dashbaord",
        "group_painters": [],
        "hard_filters":
        ["service_acknowledged", "svcstate", "hoststate", "in_downtime"],
        "hard_filtervars": [
            ("is_in_downtime", "0"),
            ("is_service_acknowledged", "0"),
            ("st0", ""),
            ("st1", "on"),
            ("st2", "on"),
            ("st3", "on"),
            ("stp", ""),
            ("hst0", "on"),
            ("hst1", ""),
            ("hst2", ""),
            ("hstp", "on"),
        ],
        "hidden":
        True,
        "hide_filters": [],
        "layout":
        "table",
        "mustsearch":
        False,
        "name":
        "svcproblems",
        "num_columns":
        1,
        "owner":
        "",
        "painters": [
            ("service_state", None),
            ("host", "host"),
            ("service_description", "service"),
            ("service_icons", None),
            ("svc_plugin_output", None),
            ("svc_state_age", None),
            ("svc_check_age", None),
            # ('perfometer', None),
        ],
        "play_sounds":
        True,
        "public":
        True,
        "show_filters": [],
        "sorters": [
            ("svcstate", True),
            ("stateage", False),
            ("svcdescr", False),
        ],
        "title":
        "Service problems",
        "topic":
        None,
    },
    # Similar view, but for dashboard
    "events_dash": {
        "browser_reload":
        90,
        "column_headers":
        "pergroup",
        "datasource":
        "log_events",
        "description":
        "Events of the last 4 hours.",
        "group_painters": [],
        "hard_filters": ["logtime"],
        "hard_filtervars": [
            ("logtime_from_range", "3600"),
            ("logtime_from", "4"),
        ],
        "hidden":
        True,
        "hide_filters": [],
        "layout":
        "table",
        "mustsearch":
        False,
        "name":
        "events_dash",
        "num_columns":
        1,
        "owner":
        "admin",
        "painters": [
            ("log_icon", None),
            ("log_time", None),
            # ('log_type', None),
            ("host", "hostsvcevents"),
            ("service_description", "svcevents"),
            # ('log_state_type', None),
            ("log_plugin_output", None),
        ],
        "play_sounds":
        False,
        "public":
        True,
        "show_filters": [],
        "sorters": [],
        "title":
        "Events of the last 4 hours (for the dashboard)",
        "topic":
        None,
    },
})