Beispiel #1
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':
        _('Search'),
        'topic':
        _('Services')
    }),

    # 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':
        _('Problems (all)'),
        'topic':
        _('Services'),
    }),

    # 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),
        ],
        'linktitle':
        _('Problems (unhandled)'),
        'title':
        _('Problems (unhandled)'),
        'topic':
        _('Services'),
    }),

    # Service details
    'mobile_service':
    mobile_view({
        'datasource':
        'services',
        'group_painters': [],
        'hard_filters': [],
        'hard_filtervars': [],
        'hide_filters': ['site', 'service', 'host'],
        'layout':
        'mobiledataset',
        'linktitle':
        'Details',
        'name':
        'mobile_service',
        'num_columns':
        1,
        'hidden':
        True,
        'painters': [
            ('sitealias', None, ''),
            ('host', 'mobile_host', ''),
            ('service_description', ''),
            ('svc_plugin_output', None, ''),
            ('service_icons', 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)],
        'linktitle':
        _('Services of this host'),
        '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_icons', 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',
        'linktitle':
        'Host search',
        'mustsearch':
        True,
        'num_columns':
        2,
        'painters': [
            ('host_state', None),
            ('host', 'mobile_host'),
            ('host_plugin_output', None),
        ],
        'show_filters': [
            'hoststate',
            'hostregex',
            'opthostgroup',
        ],
        'sorters': [],
        'title':
        _('Search'),
        'topic':
        _('Hosts'),
    }),

    #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':
        _('Problems (all)'),
        'topic':
        _('Hosts')
    }),

    #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':
        _('Problems (unhandled)'),
        'topic':
        _('Hosts')
    }),

    # 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',
        'linktitle':
        'Events',
        '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':
        _('Events')
    }),

    # 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':
        'notification',
        'layout':
        'mobilelist',
        'linktitle':
        _('Notifications'),
        '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', 'mobile_contactnotifications', ''),
            ('log_type', None, ''),
            ('log_plugin_output', None, ''),
        ],
        'public':
        True,
        'show_filters': [
            'hostregex',
            'serviceregex',
            'log_plugin_output',
            'logtime',
        ],
        'sorters': [('log_time', False), ('log_lineno', False)],
        'title':
        _('Notifications'),
        'topic':
        _('Events')
    }),

    # 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',
        'linktitle':
        _('Host+Svc history'),
        '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',
        'linktitle':
        _('History'),
        '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':
        'notification',
        'layout':
        'mobilelist',
        'linktitle':
        _('Contact notification'),
        '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':
        _('Other')
    }),

    # 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':
        'notification',
        'layout':
        'mobilelist',
        'linktitle':
        _('Host+Svc notifications'),
        'name':
        'hostsvcnotifications',
        'num_columns':
        2,
        'painters': [
            ('log_time', None, ''),
            ('log_contact_name', 'mobile_contactnotifications', ''),
            ('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':
        _('Other')
    }),

    # 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':
        'notification',
        'layout':
        'mobilelist',
        'linktitle':
        _('Notifications'),
        'name':
        'mobile_svcnotifications',
        'num_columns':
        2,
        'painters': [
            ('log_time', None, ''),
            ('log_contact_name', 'mobile_contactnotifications', ''),
            ('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':
        _('Other')
    }),
})
Beispiel #2
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",
    },
})
Beispiel #3
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",
    },
})
Beispiel #4
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",
    }),
})