Commit Graph

308 Commits (d5ab3dc0f38927f426f70c22e7143077c5b4e8cf)

Author SHA1 Message Date
Markus Ostertag d5ab3dc0f3 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).
9 years ago
Michael Scherer ba74516640 Fix aibrake 9 years ago
Michael Scherer 14c323cc8e Fix default url in airbrake_deployment doc (#2078) 9 years ago
Michael Scherer f9f00ef404 Mark the token as sensitive, since it shouldn't be printed (#2043) 9 years ago
Jordan Cohen 359b2abebc idempotency fix (#2024) 9 years ago
René Moser ab656bb7dd Merge pull request #1866 from Jimdo/monitor_thresholds
Allow Datadog metric alerts to define multiple thresholds
9 years ago
Julien Recurt cd1114a2bd Add option to use ZabbixApi via auth basic protection 9 years ago
René Moser 141e3f045c Merge pull request #1684 from foozmeat/patch-1
Added a source parameter for setting the JIT client name
9 years ago
René Moser 69b7175932 Merge pull request #1084 from ritzk/zabbix_inventory-mode
zabbix_host : add the ability to set inventory_mode #1005
9 years ago
René Moser 6e15dec236 Merge pull request #1853 from tomgoto/zabbix_host_delete_version
change zabbix host.delete() parameter for newer API
9 years ago
Paul Seiffert 2f0edbeccb Allow Datadog metric alerts to define multiple thresholds 9 years ago
René Moser 77552d780f Merge pull request #1692 from m4mnux/devel
Replace deprecated zabbix api method 'exists' to support zabbix 3.0
9 years ago
René Moser eb9e57407e Merge pull request #1763 from eikef/zabbix30apiexistsremoval
Replace deprecated exists API for Zabbix 3.0 compatibility
9 years ago
René Moser c6afbc9e17 Merge pull request #1761 from kepstin/zabbix-3-0
zabbix_maintenance: Stop using api removed in zabbix 3.0
9 years ago
t.goto c19a721765 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.
9 years ago
t.goto f46e193718 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
9 years ago
Ritesh Khadgaray 1a29807e96 zabbix_host : add the ability to set inventory_mode 9 years ago
Brian Coca 083383a2c7 Merge pull request #1753 from eikef/issue1616
Fixes #1616, check whether interface-list exits before querying its length
9 years ago
Brian Coca 904b5938a0 Merge pull request #706 from eikef/devel
return as unchanged if macro update is unnecessary
9 years ago
Brian Coca cb291d3f82 Merge pull request #1618 from plldp/devel
Update zabbix_host.py
9 years ago
Eike Frost 2810e6542a Replace deprecated exists API for Zabbix 3.0 compatibility 9 years ago
Calvin Walton 369af1c8c9 zabbix_maintenance: Stop using api removed in zabbix 3.0 9 years ago
Eike Frost 6acc369377 Check whether interface-list exits before querying its length 9 years ago
Eike Frost 47466242a3 Add explicit argument_spec types to avoid misinterpretation and subsequent errors (i.e. getting an int instead of the expected str) 9 years ago
Eike Frost 2a750bb8db return as unchanged if macro update is unnecessary 9 years ago
Miguel Martín 278b987017 Replace deprecated zabbix api method 'exists' to support zabbix 3.0 9 years ago
James Moore a1af384274 Added a source parameter for setting the JIT client name 9 years ago
Ronny 7d79dff1d2 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.
9 years ago
Brian Coca 5b61c75fa5 added missing verison_added 9 years ago
Mstislav Bobakov c4aa5ee024 Add custom parameter for a sensu_check. revert newline 9 years ago
Mstislav Bobakov 6ef3697c52 Add custom parameter for a sensu_check. Fixes.
JSON replaced within dict.
Added more docs.
9 years ago
Mstislav Bobakov 8e35db0e38 Add custom parameter for a sensu_check 9 years ago
Brian Coca 3aa2d3744d Merge pull request #1482 from ansible/json-imports-fallback
Update for modules which import json.
9 years ago
Brian Coca 520d245ae7 added note on choice version availability 9 years ago
Brian Coca 4ca07d511e Merge pull request #1248 from hypergig/devel
support for event alert monitors
9 years ago
Toshio Kuratomi d6af6f8477 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
9 years ago
Michael Scherer 2f3dc1352f Replace choices=BOOLEANS by type='bool', fix #1326 9 years ago
Brian Coca a6ceec998d corrected version_added for new monit timeout opt 9 years ago
Brian Coca 91df684902 Merge pull request #806 from gaqzi/monit/retry-option
monit: Add retry for pending/initializing services
9 years ago
Bruce Pennypacker 5abd7deab0 Remove extraneous space from end of command string in nagios_cmd 9 years ago
Michael Weber fba8c9f8a7 Fix error 'fail_json() takes exactly 1 argument'
Fixes bug #1257
9 years ago
Björn Andersson 72155d40a3 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.
9 years ago
Björn Andersson 262f2e9048 monit: Add version_added and type for new argument 9 years ago
Björn Andersson 5835d06a4e 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.
9 years ago
Björn Andersson + SU Sheng Loong f8fe5a2fcd 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.
9 years ago
Jordan Cohen 20d6e3daaf support for event alert monitors 9 years ago
Brian Coca 875a055103 corrected choices which was meant to be type 9 years ago
Ritesh Khadgaray 5e103d604a allows user to not update zabbix host config if host is present. 9 years ago
Kerim Satirli 2ac53bf559 fixes a typo in Datadog Monitor docs 9 years ago
Konstantin Manna 97b7a7a7f8 bugfix: use correct function close calls 9 years ago