Co-authored-by: Goetheyn Tony <tony.goetheyn@digipolis.gent>
(cherry picked from commit 2aec1d1bbf
)
Co-authored-by: Tony Goetheyn <13643294+tgoetheyn@users.noreply.github.com>
pull/1056/head
parent
7c0175322b
commit
0b28f5d9e4
|
@ -38,27 +38,32 @@ options:
|
||||||
choices: [ "downtime", "delete_downtime", "enable_alerts", "disable_alerts", "silence", "unsilence",
|
choices: [ "downtime", "delete_downtime", "enable_alerts", "disable_alerts", "silence", "unsilence",
|
||||||
"silence_nagios", "unsilence_nagios", "command", "servicegroup_service_downtime",
|
"silence_nagios", "unsilence_nagios", "command", "servicegroup_service_downtime",
|
||||||
"servicegroup_host_downtime", "acknowledge", "forced_check" ]
|
"servicegroup_host_downtime", "acknowledge", "forced_check" ]
|
||||||
|
type: str
|
||||||
host:
|
host:
|
||||||
description:
|
description:
|
||||||
- Host to operate on in Nagios.
|
- Host to operate on in Nagios.
|
||||||
|
type: str
|
||||||
cmdfile:
|
cmdfile:
|
||||||
description:
|
description:
|
||||||
- Path to the nagios I(command file) (FIFO pipe).
|
- Path to the nagios I(command file) (FIFO pipe).
|
||||||
Only required if auto-detection fails.
|
Only required if auto-detection fails.
|
||||||
default: auto-detected
|
type: str
|
||||||
author:
|
author:
|
||||||
description:
|
description:
|
||||||
- Author to leave downtime comments as.
|
- Author to leave downtime comments as.
|
||||||
Only usable with the C(downtime) and C(acknowledge) action.
|
Only usable with the C(downtime) and C(acknowledge) action.
|
||||||
|
type: str
|
||||||
default: Ansible
|
default: Ansible
|
||||||
comment:
|
comment:
|
||||||
description:
|
description:
|
||||||
- Comment for C(downtime) and C(acknowledge)action.
|
- Comment for C(downtime) and C(acknowledge)action.
|
||||||
|
type: str
|
||||||
default: Scheduling downtime
|
default: Scheduling downtime
|
||||||
start:
|
start:
|
||||||
description:
|
description:
|
||||||
- When downtime should start, in time_t format (epoch seconds).
|
- When downtime should start, in time_t format (epoch seconds).
|
||||||
version_added: '0.2.0'
|
version_added: '0.2.0'
|
||||||
|
type: str
|
||||||
minutes:
|
minutes:
|
||||||
description:
|
description:
|
||||||
- Minutes to schedule downtime for.
|
- Minutes to schedule downtime for.
|
||||||
|
@ -71,17 +76,18 @@ options:
|
||||||
C(service) is an alias for C(services).
|
C(service) is an alias for C(services).
|
||||||
B(Required) option when using the C(downtime), C(acknowledge), C(forced_check), C(enable_alerts), and C(disable_alerts) actions.
|
B(Required) option when using the C(downtime), C(acknowledge), C(forced_check), C(enable_alerts), and C(disable_alerts) actions.
|
||||||
aliases: [ "service" ]
|
aliases: [ "service" ]
|
||||||
required: true
|
type: str
|
||||||
servicegroup:
|
servicegroup:
|
||||||
description:
|
description:
|
||||||
- The Servicegroup we want to set downtimes/alerts for.
|
- The Servicegroup we want to set downtimes/alerts for.
|
||||||
B(Required) option when using the C(servicegroup_service_downtime) amd C(servicegroup_host_downtime).
|
B(Required) option when using the C(servicegroup_service_downtime) amd C(servicegroup_host_downtime).
|
||||||
|
type: str
|
||||||
command:
|
command:
|
||||||
description:
|
description:
|
||||||
- The raw command to send to nagios, which
|
- The raw command to send to nagios, which
|
||||||
should not include the submitted time header or the line-feed
|
should not include the submitted time header or the line-feed
|
||||||
B(Required) option when using the C(command) action.
|
B(Required) option when using the C(command) action.
|
||||||
required: true
|
type: str
|
||||||
|
|
||||||
author: "Tim Bielawa (@tbielawa)"
|
author: "Tim Bielawa (@tbielawa)"
|
||||||
'''
|
'''
|
||||||
|
@ -301,7 +307,7 @@ def main():
|
||||||
|
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
action=dict(required=True, default=None, choices=ACTION_CHOICES),
|
action=dict(required=True, choices=ACTION_CHOICES),
|
||||||
author=dict(default='Ansible'),
|
author=dict(default='Ansible'),
|
||||||
comment=dict(default='Scheduling downtime'),
|
comment=dict(default='Scheduling downtime'),
|
||||||
host=dict(required=False, default=None),
|
host=dict(required=False, default=None),
|
||||||
|
|
|
@ -677,10 +677,6 @@ plugins/modules/monitoring/logstash_plugin.py validate-modules:invalid-ansiblemo
|
||||||
plugins/modules/monitoring/logstash_plugin.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/monitoring/logstash_plugin.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/monitoring/monit.py validate-modules:doc-missing-type
|
plugins/modules/monitoring/monit.py validate-modules:doc-missing-type
|
||||||
plugins/modules/monitoring/monit.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/monitoring/monit.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/monitoring/nagios.py validate-modules:doc-default-does-not-match-spec
|
|
||||||
plugins/modules/monitoring/nagios.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/monitoring/nagios.py validate-modules:doc-required-mismatch
|
|
||||||
plugins/modules/monitoring/nagios.py validate-modules:no-default-for-required-parameter
|
|
||||||
plugins/modules/monitoring/newrelic_deployment.py validate-modules:doc-missing-type
|
plugins/modules/monitoring/newrelic_deployment.py validate-modules:doc-missing-type
|
||||||
plugins/modules/monitoring/pagerduty.py validate-modules:doc-default-does-not-match-spec
|
plugins/modules/monitoring/pagerduty.py validate-modules:doc-default-does-not-match-spec
|
||||||
plugins/modules/monitoring/pagerduty.py validate-modules:doc-missing-type
|
plugins/modules/monitoring/pagerduty.py validate-modules:doc-missing-type
|
||||||
|
|
|
@ -677,10 +677,6 @@ plugins/modules/monitoring/logstash_plugin.py validate-modules:invalid-ansiblemo
|
||||||
plugins/modules/monitoring/logstash_plugin.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/monitoring/logstash_plugin.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/monitoring/monit.py validate-modules:doc-missing-type
|
plugins/modules/monitoring/monit.py validate-modules:doc-missing-type
|
||||||
plugins/modules/monitoring/monit.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/monitoring/monit.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/monitoring/nagios.py validate-modules:doc-default-does-not-match-spec
|
|
||||||
plugins/modules/monitoring/nagios.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/monitoring/nagios.py validate-modules:doc-required-mismatch
|
|
||||||
plugins/modules/monitoring/nagios.py validate-modules:no-default-for-required-parameter
|
|
||||||
plugins/modules/monitoring/newrelic_deployment.py validate-modules:doc-missing-type
|
plugins/modules/monitoring/newrelic_deployment.py validate-modules:doc-missing-type
|
||||||
plugins/modules/monitoring/pagerduty.py validate-modules:doc-default-does-not-match-spec
|
plugins/modules/monitoring/pagerduty.py validate-modules:doc-default-does-not-match-spec
|
||||||
plugins/modules/monitoring/pagerduty.py validate-modules:doc-missing-type
|
plugins/modules/monitoring/pagerduty.py validate-modules:doc-missing-type
|
||||||
|
|
|
@ -545,9 +545,6 @@ plugins/modules/monitoring/logstash_plugin.py validate-modules:doc-missing-type
|
||||||
plugins/modules/monitoring/logstash_plugin.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/monitoring/logstash_plugin.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/monitoring/monit.py validate-modules:doc-missing-type
|
plugins/modules/monitoring/monit.py validate-modules:doc-missing-type
|
||||||
plugins/modules/monitoring/monit.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/monitoring/monit.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/monitoring/nagios.py validate-modules:doc-default-does-not-match-spec
|
|
||||||
plugins/modules/monitoring/nagios.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/monitoring/nagios.py validate-modules:no-default-for-required-parameter
|
|
||||||
plugins/modules/monitoring/newrelic_deployment.py validate-modules:doc-missing-type
|
plugins/modules/monitoring/newrelic_deployment.py validate-modules:doc-missing-type
|
||||||
plugins/modules/monitoring/pagerduty.py validate-modules:doc-default-does-not-match-spec
|
plugins/modules/monitoring/pagerduty.py validate-modules:doc-default-does-not-match-spec
|
||||||
plugins/modules/monitoring/pagerduty.py validate-modules:doc-missing-type
|
plugins/modules/monitoring/pagerduty.py validate-modules:doc-missing-type
|
||||||
|
|
Loading…
Reference in New Issue