def __init__(self):
        NagiosCheck.__init__(self)

        self.health = HEALTH['green']

        self.add_option('f', 'failure-domain', 'failure_domain', "A "
                        "comma-separated list of ElasticSearch "
                        "attributes that make up your cluster's "
                        "failure domain[0].  This should be the same list "
                        "of attributes that ElasticSearch's location-"
                        "aware shard allocator has been configured "
                        "with.  If this option is supplied, additional "
                        "checks are carried out to ensure that primary "
                        "and replica shards are not stored in the same "
                        "failure domain. "
                        "[0]: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-cluster.html")

        self.add_option('H', 'host', 'host', "Hostname or network "
                        "address to probe.  The ElasticSearch API "
                        "should be listening here.  Defaults to "
                        "'localhost'.")

        self.add_option('m', 'master-nodes', 'master_nodes', "Issue a "
                        "warning if the number of master-eligible "
                        "nodes in the cluster drops below this "
                        "number.  By default, do not monitor the "
                        "number of nodes in the cluster.")

        self.add_option('p', 'port', 'port', "TCP port to probe.  "
                        "The ElasticSearch API should be listening "
                        "here.  Defaults to 9200.")
Beispiel #2
0
    def __init__(self):

        NagiosCheck.__init__(self)

        self.add_option('E', 'expected_nodes_in_cluster', 'nodes_in_cluster',
                        'This is the expected number of nodes in the cluster')
        self.add_option('H', 'host', 'host', 'The cluster to check')
        self.add_option('P', 'port', 'port', 'The ES port - defaults to 9200')
    def __init__(self):

        NagiosCheck.__init__(self)

        self.add_option('E', 'expected_nodes_in_cluster', 'nodes_in_cluster',
                        'This is the expected number of nodes in the cluster')
        self.add_option('H', 'host', 'host', 'The cluster to check')
        self.add_option('P', 'port', 'port', 'The ES port - defaults to 9200')
    def __init__(self):

        NagiosCheck.__init__(self)
	self.useragent=''

        self.add_option('U', 'url', 'url', 'URL to Ambari')
        self.add_option('t', 'timeout', 'timeout', 'Timeout in seconds (default 15s)')
        self.add_option('u', 'username', 'username', 'Username')
        self.add_option('p', 'password', 'password', 'Password')
Beispiel #5
0
    def __init__(self):

        NagiosCheck.__init__(self)

        self.add_option('N', 'nodes', 'nodes', 'Cluster nodes')
        self.add_option('P', 'port', 'port', 'The ES port - defaults to 9200')
        self.add_option('u', 'username', 'username',
                        'Username for authentication')
        self.add_option('p', 'password', 'password',
                        'password for authentication')
    def __init__(self):

        NagiosCheck.__init__(self)

        self.add_option('H', 'host', 'host', 'The cluster to check')
        self.add_option('P', 'port', 'port', 'The ES port - defaults to 9200')
        self.add_option('u', 'username', 'username',
                        'username to login into ES port')
        self.add_option('p', 'password', 'password',
                        'password to login into ES port')
Beispiel #7
0
    def __init__(self):

        NagiosCheck.__init__(self)
        self.useragent = ''

        self.add_option('U', 'url', 'url', 'URL to Ambari')
        self.add_option('t', 'timeout', 'timeout',
                        'Timeout in seconds (default 15s)')
        self.add_option('u', 'username', 'username', 'Username')
        self.add_option('p', 'password', 'password', 'Password')
    def __init__(self):

        NagiosCheck.__init__(self)

        self.add_option('E', 'expected_nodes_in_cluster', 'nodes_in_cluster',
                        'This is the expected number of nodes in the cluster')
        self.add_option('H', 'host', 'host', 'The cluster to check')
        self.add_option('P', 'port', 'port', 'The ES port - defaults to 9200')
        self.add_option('u', 'username', 'username', 'Username for authentication')
        self.add_option('p', 'password', 'password', 'password for authentication')
    def __init__(self):

        NagiosCheck.__init__(self)

        self.add_option('N', 'nodes', 'nodes', 'Cluster nodes')
        self.add_option('P', 'port', 'port', 'The ES port - defaults to 9200')
        self.add_option('u', 'username', 'username',
                        'username to login into ES port')
        self.add_option('p', 'password', 'password',
                        'password to login into ES port')
    def __init__(self):

        NagiosCheck.__init__(self)

        self.add_option('H', 'host', 'host', 'The cluster to check')
        self.add_option('P', 'port', 'port', 'The ES port - defaults to 9200')
        self.add_option('C', 'critical_threshold', 'critical_threshold',
                        'The level at which we throw a CRITICAL alert'
                        ' - defaults to 97% of the JVM setting')
        self.add_option('W', 'warning_threshold', 'warning_threshold',
                        'The level at which we throw a WARNING alert'
                        ' - defaults to 90% of the JVM setting')
    def __init__(self):
        NagiosCheck.__init__(self)

        self.health = HEALTH['green']

        self.add_option('H', 'host', 'host', "Hostname or network "
                        "address to probe.  The ElasticSearch API "
                        "should be listening here.")

        self.add_option('p', 'port', 'port', "TCP port to probe.  "
                        "The ElasticSearch API should be listening "
                        "here.")
Beispiel #12
0
    def __init__(self):

        NagiosCheck.__init__(self)

        self.add_option('H', 'host', 'host', 'The cluster to check')
        self.add_option('P', 'port', 'port', 'The ES port - defaults to 9200')
        self.add_option(
            'C', 'critical_threshold', 'critical_threshold',
            'The level at which we throw a CRITICAL alert'
            ' - defaults to 97% of the JVM setting')
        self.add_option(
            'W', 'warning_threshold', 'warning_threshold',
            'The level at which we throw a WARNING alert'
            ' - defaults to 90% of the JVM setting')
Beispiel #13
0
    def __init__(self):
        NagiosCheck.__init__(self)

        self.health = HEALTH['green']

        self.add_option(
            'H', 'host', 'host', "Hostname or network "
            "address to probe.  The ElasticSearch API "
            "should be listening here.")

        self.add_option(
            'p', 'port', 'port', "TCP port to probe.  "
            "The ElasticSearch API should be listening "
            "here.")
Beispiel #14
0
    def __init__(self):
        NagiosCheck.__init__(self)

        self.add_option(
            'H', 'host', 'host', "Hostname or network "
            "address to probe.  The ElasticSearch API "
            "should be listening here.  Defaults to "
            "'localhost'.")

        self.add_option(
            'p', 'port', 'port', "TCP port to probe.  "
            "The ElasticSearch API should be listening "
            "here.  Defaults to 9200.")

        self.add_option('w', 'warn', 'warn', "Warning threshold percent")
        self.add_option('c', 'crit', 'crit', "Critical threshold percent")
    def __init__(self):

        NagiosCheck.__init__(self)

        self.add_option("H", "host", "host", "The cluster to check")
        self.add_option("P", "port", "port", "The ES port - defaults to 9200")
        self.add_option(
            "C",
            "critical_threshold",
            "critical_threshold",
            "The level at which we throw a CRITICAL alert" " - defaults to 97% of the JVM setting",
        )
        self.add_option(
            "W",
            "warning_threshold",
            "warning_threshold",
            "The level at which we throw a WARNING alert" " - defaults to 90% of the JVM setting",
        )
Beispiel #16
0
    def __init__(self):
        NagiosCheck.__init__(self)

        self.health = HEALTH['green']

        self.add_option(
            'f', 'failure-domain', 'failure_domain',
            "A comma-separated list of ElasticSearch "
            "attributes that make up your cluster's "
            "failure domain[0]. This should be the same list "
            "of attributes that ElasticSearch's location-"
            "aware shard allocator has been configured "
            "with. If this option is supplied, additional "
            "checks are carried out to ensure that primary "
            "and replica shards are not stored in the same "
            "failure domain. "
            "[0]: http://www.elasticsearch.org/guide/en/"
            "elasticsearch/reference/current/modules-cluster.html")

        self.add_option(
            'H', 'host', 'host', "Hostname or network address to probe. "
            "The ElasticSearch API should be listening here. "
            "Defaults to 'localhost'.")

        self.add_option(
            'm', 'master-nodes', 'master_nodes',
            "Issue a warning if the number of master-eligible "
            "nodes in the cluster drops below this "
            "number. By default, do not monitor the "
            "number of nodes in the cluster.")

        self.add_option(
            'p', 'port', 'port', "TCP port to probe. "
            "The ElasticSearch API should be listening "
            "here. Defaults to 9200.")

        self.add_option(
            'r', 'prefix', 'prefix', "Optional prefix (e.g. 'es') for the "
            "ElasticSearch API. Defaults to ''.")

        self.add_option(
            'y', 'yellow-critical', 'yellow_critical',
            "Have plugin issue critical alert on yellow cluster state. Defaults to False."
        )
    def __init__(self):

        NagiosCheck.__init__(self)

        self.add_option('H', 'host', 'host', 'The cluster to check')
        self.add_option('P', 'port', 'port', 'The ES port - defaults to 9200')
    def __init__(self):

        NagiosCheck.__init__(self)

        self.add_option('H', 'host', 'host', 'The cluster to check')
        self.add_option('P', 'port', 'port', 'The ES port - defaults to 9200')
  def __init__(self):

    NagiosCheck.__init__(self)

    self.add_option('N', 'nodes', 'nodes', 'Cluster nodes')
    self.add_option('P', 'port', 'port', 'The ES port - defaults to 9200')
Beispiel #20
0
 def __init__(self, *args, **kwargs):
     NagiosCheck.__init__(self, *args, **kwargs)
Beispiel #21
0
 def __init__(self, *args, **kwargs):
     NagiosCheck.__init__(self, *args, **kwargs)
Beispiel #22
0
    def __init__(self):

        NagiosCheck.__init__(self)

        self.add_option('N', 'nodes', 'nodes', 'Cluster nodes')
        self.add_option('P', 'port', 'port', 'The ES port - defaults to 9200')
Beispiel #23
0
    def __init__(self, *args, **kwargs):
        NagiosCheck.__init__(self, *args, **kwargs)

        self.add_option('b', 'bar', 'bar', "Bar bar?")
Beispiel #24
0
    def __init__(self, *args, **kwargs):
        NagiosCheck.__init__(self, *args, **kwargs)

        self.add_option('f', 'foo', 'foo', "Foo foo?")
Beispiel #25
0
 def __init__(self):
     NagiosCheck.__init__(self)
     self.add_option('H', 'host', 'host', 'The cluster or node to check')
     self.add_option('P', 'port', 'port', 'The ES port')
     self.slave = []