def page(self): search_form(title="%s: " % _("Search for check plugins"), mode="check_plugin_search") for path, manpages in self._get_manpages_after_search(): _render_manpage_list(self._titles, manpages, path, self._titles.get(path, path))
def page(self): html.help( _("This catalog of check plugins gives you a complete listing of all plugins " "that are shipped with your Check_MK installation. It also allows you to " "access the rule sets for configuring the parameters of the checks and to " "manually create services in case you cannot or do not want to rely on the " "automatic service discovery.")) search_form("%s: " % _("Search for check plugins"), "check_plugins") # The maxium depth of the catalog paths is 3. The top level is being rendered # like the WATO main menu. The second and third level are being rendered like # the global settings. if self._topic and not self._search: self._render_manpage_topic() elif self._search: for path, manpages in self._get_manpages_after_search(): self._render_manpage_list(manpages, path, self._titles.get(path, path)) else: menu = MainMenu() for topic, _has_second_level, title, helptext in self._man_page_catalog_topics( ): menu.add_item( MenuItem(mode_or_url=html.makeuri([("topic", topic)]), title=title, icon="plugins_" + topic, permission=None, description=helptext)) menu.show()