Hagai Kariti
390aa7a75f
bigpanda: Remove docs using complex args ( #2275 )
...
As they're going to be deprecated, don't recommend using them.
2016-12-08 11:34:16 -05:00
Michael Scherer
d7ac2a8499
Use a python3 compatible notation for octal ( #2238 )
2016-12-08 11:34:15 -05:00
Jordan Cohen
020379b0dc
doc update to demostrate message template vars
2016-12-08 11:34:14 -05:00
Jordan Cohen
97d5d80983
message template variable fix
...
Due to ansible/jinja2 templating, it is difficult to use the monitor message template variables as they need to be surrounded by `{{` and `}}`, this change addresses that issue by allowing the user to use `[[` and `]]` instead.
2016-12-08 11:34:14 -05:00
Lukáš Lalinský
3e81023a87
monitoring/zabbix_host: Fix (no) proxy handling
...
When updating a host with no proxy explicitly set,
the host was always reported as changed, because it was
comparing `"0"` and `None`.
2016-12-08 11:34:14 -05:00
Toshio Kuratomi
1782ff04d0
Docs fixes
2016-12-08 11:34:13 -05:00
Charles V Bock
7802a3a8c9
high_flap_threshold documentation correction
...
Changing description of high_flap_threshold to properly reflect its function.
2016-12-08 11:34:13 -05:00
Ryan G. Hunter
67967d04ee
monit startup fix
2016-12-08 11:34:11 -05:00
Michael Scherer
ab26847e06
Remove unused import of 'socket' module
2016-12-08 11:34:11 -05:00
Michael Scherer
6c959dc77e
Mark api_key as no_log, since that's supposed to be kept secret
2016-12-08 11:34:11 -05:00
Michael Scherer
07f8846134
Mark api_key as no_log to avoid potential leaks ( #2048 )
2016-12-08 11:34:10 -05:00
Markus Ostertag
8fd23c7d75
Change success status code to 202
...
As I already mentioned here: a1b1182662 (diff-d04a476e5d71372918cb6e7e5b39a683R120)
@jimi-c added some "hidden" additional check in his urllib commit and broke the whole module for everybody as Datadog answers with an 202 in case of success (http://docs.datadoghq.com/api/#troubleshooting ).
2016-12-08 11:34:10 -05:00
Michael Scherer
bcf4c6be49
Fix aibrake
2016-12-08 11:34:08 -05:00
Michael Scherer
d1c6b6f3b8
Fix default url in airbrake_deployment doc ( #2078 )
2016-12-08 11:34:08 -05:00
Michael Scherer
3d21f7c5a4
Mark the token as sensitive, since it shouldn't be printed ( #2043 )
2016-12-08 11:34:07 -05:00
Jordan Cohen
e07cc7d9a2
idempotency fix ( #2024 )
2016-12-08 11:34:06 -05:00
Paul Seiffert
48223fd268
Allow Datadog metric alerts to define multiple thresholds
2016-12-08 11:34:01 -05:00
Julien Recurt
5d68e4fe06
Add option to use ZabbixApi via auth basic protection
2016-12-08 11:34:00 -05:00
James Moore
0ecaea3ac1
Added a source parameter for setting the JIT client name
2016-12-08 11:33:57 -05:00
Ritesh Khadgaray
d8ea847739
zabbix_host : add the ability to set inventory_mode
2016-12-08 11:33:57 -05:00
t.goto
8a3c60cfd2
add exit_json
...
add exit_json code to succesfully exit, when you want to delete the already
deleted host.
Without this, playbook fails with
`Specify at least one group for creating host`
which is not correct message.
2016-12-08 11:33:57 -05:00
t.goto
b03d1da393
change host.delete() parameter for newer ZBX api.
...
As of Zabbix API 2.4, host.delete() will not takes parameter with
`hostid` property but only the array of it.
https://www.zabbix.com/documentation/2.2/manual/api/reference/host/delete
fix #1800
2016-12-08 11:33:57 -05:00
Miguel Martín
da668dca56
Replace deprecated zabbix api method 'exists' to support zabbix 3.0
2016-12-08 11:33:56 -05:00
Eike Frost
b8b2613c35
Replace deprecated exists API for Zabbix 3.0 compatibility
2016-12-08 11:33:55 -05:00
Calvin Walton
f623057e0e
zabbix_maintenance: Stop using api removed in zabbix 3.0
2016-12-08 11:33:55 -05:00
Eike Frost
85f6bb4d8e
Check whether interface-list exits before querying its length
2016-12-08 11:33:53 -05:00
Eike Frost
9779792b07
return as unchanged if macro update is unnecessary
2016-12-08 11:33:52 -05:00
Ronny
bb417d2b62
Update zabbix_host.py
...
Use existing proxy when updating a host unless proxy is specified. Before change proxy was always set to none(0) when updating.
2016-12-08 11:33:51 -05:00
Eike Frost
007b637e7a
Add explicit argument_spec types to avoid misinterpretation and subsequent errors (i.e. getting an int instead of the expected str)
2016-12-08 11:33:50 -05:00
Brian Coca
91ff5ce256
added missing verison_added
2016-12-08 11:33:48 -05:00
Mstislav Bobakov
dcc841d8d6
Add custom parameter for a sensu_check. revert newline
2016-12-08 11:33:47 -05:00
Mstislav Bobakov
b649a15a97
Add custom parameter for a sensu_check. Fixes.
...
JSON replaced within dict.
Added more docs.
2016-12-08 11:33:47 -05:00
Mstislav Bobakov
1665254453
Add custom parameter for a sensu_check
2016-12-08 11:33:47 -05:00
Toshio Kuratomi
ad0d2c1747
Update for modules which import json.
...
Some do not use the json module directly so don't need import json.
Some needed to fallback to simplejson with no traceback if neither was installed
Fixes #1298
2016-12-08 11:33:44 -05:00
Brian Coca
b014769c30
added note on choice version availability
2016-12-08 11:33:43 -05:00
Jordan Cohen
63bdeb6e6f
support for event alert monitors
2016-12-08 11:33:43 -05:00
Michael Scherer
df195b3076
Replace choices=BOOLEANS by type='bool', fix #1326
2016-12-08 11:33:40 -05:00
Brian Coca
4db5119893
corrected version_added for new monit timeout opt
2016-12-08 11:33:38 -05:00
Björn Andersson
d577fedc26
monit: Set a high timeout waiting for status changes
...
Instead of waiting for up to a certain number of retries we set a high
timeout and only re-check every five seconds. Certain services can
take a minute or more to start and we want to avoid waisting resources
by polling too often.
2016-12-08 11:33:38 -05:00
Björn Andersson
69e9bd3406
monit: Add version_added and type for new argument
2016-12-08 11:33:38 -05:00
Björn Andersson
757c9bffee
monit: Wait for pending state changes for reloads
...
@mpeters reported that we're not checking that the named service is
actually there after a reload. And that sometimes monit doesn't actually
return anything at all after a reload.
2016-12-08 11:33:38 -05:00
Björn Andersson + SU Sheng Loong
469bf9ebd0
monit: Add retry for pending/initializing services
...
If there are already ongoing actions for a process managed by monit, the
module would exit unsuccessfully. It could also give off false positives
because it did not determine whether the service was started/stopped
when it was in a pending state. Which might be turning the service off,
but the action was to start it.
For example "Running - pending stop" would be regarded as the service
running and "state=enabled" would do nothing.
This will make Ansible wait for the state to finalize, or a timeout decided
by the new `max_retries` option, before it decides what to do.
This fixes issue #244 .
2016-12-08 11:33:38 -05:00
Bruce Pennypacker
e5970186ad
Remove extraneous space from end of command string in nagios_cmd
2016-12-08 11:33:38 -05:00
Michael Weber
bee443c983
Fix error 'fail_json() takes exactly 1 argument'
...
Fixes bug #1257
2016-12-08 11:33:36 -05:00
Brian Coca
507986703c
corrected choices which was meant to be type
2016-12-08 11:33:34 -05:00
Ritesh Khadgaray
83bf44c78f
allows user to not update zabbix host config if host is present.
2016-12-08 11:33:33 -05:00
Kerim Satirli
9802112dd4
fixes a typo in Datadog Monitor docs
2016-12-08 11:33:33 -05:00
Konstantin Manna
19da801665
bugfix: use correct function close calls
2016-12-08 11:33:21 -05:00
Brian Coca
c54f2c0a77
minor docfix
2016-12-08 11:33:20 -05:00
knakayama
f8306c76ed
Fix argument type for zabbix_screen
2016-12-08 11:33:20 -05:00