コード例 #1
0
ファイル: hosts.py プロジェクト: stefan7018/checkmk
 def _vs_cluster_nodes(self):
     return ListOfStrings(
         title=_("Nodes"),
         valuespec=ConfigHostname(),
         orientation="horizontal",
         help=_(
             'Enter the host names of the cluster nodes. These hosts must be present in WATO.'),
     )
コード例 #2
0
 def valuespec(self):
     return ListOfStrings(
         valuespec=ConfigHostname(),
         title=_("Parents"),
         help=
         _("Parents are used to configure the reachability of hosts by the "
           "monitoring server. A host is considered to be <b>unreachable</b> if all "
           "of its parents are unreachable or down. Unreachable hosts will not be "
           "actively monitored.<br><br><b>Clusters</b> automatically configure all "
           "of their nodes as parents, but only if you do not configure parents "
           "manually.<br><br>In a distributed setup make sure that the host and all "
           "of its parents are monitored by the same site."),
         orientation="horizontal",
     )
コード例 #3
0
 def _vs_host(self):
     return ConfigHostname()
コード例 #4
0
 def _vs_cluster_nodes(self):
     return ListOfStrings(
         valuespec=ConfigHostname(),
         orientation="horizontal",
     )