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
Brian Coca
1e40b86303
minor doc fixes nagios
2016-12-08 11:33:20 -05:00
vaupelt
e1fde967be
strange results with services=all
...
I issued a command with action=disable_alerts host=webserver services=all set and get this results:
"nagios_commands": [
"[1438593631] DISABLE_SVC_NOTIFICATIONS;webserver;a",
"[1438593631] DISABLE_SVC_NOTIFICATIONS;webserver;l",
"[1438593631] DISABLE_SVC_NOTIFICATIONS;webserver;l"
]
This is not a big deal because i have just overlooked the action=silence command. Nevertheless a more predictable result would be a nice thing to have.
2016-12-08 11:33:20 -05:00
Anders Ingemann
2737c891bc
Fix state & metric description
...
Also: add state=absent to last example
2016-12-08 11:33:19 -05:00
Anders Ingemann
21be3bceff
Add github ID to author field in sensu_check
...
As proposed by @gregdek in #983
2016-12-08 11:33:18 -05:00
Darren Worrall
0a2a10e395
Fix json loading in sensu_check
...
Fixes `AttributeError: 'str' object has no attribute 'read'` when the
check path exists
2016-12-08 11:33:18 -05:00
Darren Worrall
b40a8af999
Initialise `stream` variable
...
Fixes `UnboundLocalError: local variable 'stream' referenced before
assignment` when the check path doesnt exist
2016-12-08 11:33:18 -05:00
Tim Bielawa
45874daeb1
Fix capitalization in nagios 'services' parameter comment
2016-12-08 11:33:14 -05:00
Amanpreet Singh
3459f966d8
Make pagerduty_alert module more inline with ansible modules - use state parameter instead of event_type - add support for check mode
2016-12-08 11:33:14 -05:00
Amanpreet Singh
47235987b2
Add new module: pagerduty_alert - trigger, acknowledge or resolve pagerduty incidents
2016-12-08 11:33:14 -05:00
Brian Coca
deb36b00d0
added missing license headers fixes #508
2016-12-08 11:33:06 -05:00
Toshio Kuratomi
f13b063224
Port uptimerobot to fetch_url
2016-12-08 11:33:05 -05:00
Toshio Kuratomi
8be4ffd07c
Use fetch_url's basic auth instead of code specific to this module
2016-12-08 11:33:05 -05:00
Toshio Kuratomi
a0411ff0cd
Port librarto_annotation from urllib2 to fetch_url
2016-12-08 11:33:04 -05:00
Toshio Kuratomi
a4859e1087
Clean up unneeded urllib2 imports
2016-12-08 11:33:01 -05:00
Bruce Pennypacker
2aa148a746
changed 'deleted' to 'absent'
2016-12-08 11:32:58 -05:00
Bruce Pennypacker
07aa5bc09a
Updated 'ongoing' to also return properly formatted json
2016-12-08 11:32:58 -05:00
Bruce Pennypacker
461beed833
Fixed results & 'Changed'. Added 'deleted' action. Added ability to specify multiple services.
2016-12-08 11:32:57 -05:00
Eike Frost
754df8ff20
add zabbix proxy support to zabbix_host
2016-12-08 11:32:53 -05:00
Brian Coca
a4a17630cd
forgot finally 2.4 syntax
2016-12-08 11:32:53 -05:00
Brian Coca
bfa63e01e5
also fixed exceptions
2016-12-08 11:32:53 -05:00
Brian Coca
027aaed757
made sensu_check 2.4 friendly
2016-12-08 11:32:53 -05:00
Toshio Kuratomi
5afc244147
Modify a few more modules to not conditionalize urllib(2) import.
2016-12-08 11:32:52 -05:00
Toshio Kuratomi
16bd2c7357
be explicit about urllib import and remove conditional urllib(2) import
...
urllib and urllib2 have been in the python stdlib since at least
python-2.3. There's no reason to conditionalize it.
Fixes https://github.com/ansible/ansible/issues/11322
2016-12-08 11:32:52 -05:00
Anders Ingemann
655fa27dc7
Add sensu_check module
2016-12-08 11:32:52 -05:00
Greg DeKoenigsberg
c65a612d1f
Changes to author formatting, remove emails
2016-12-08 11:32:51 -05:00
Greg DeKoenigsberg
b9e57a794f
Adding author's github id
2016-12-08 11:32:49 -05:00
Jhonny Everson
78e256f5c1
Fixes the bug where it was using only the keys to determine whether a change was made, i.e. values changes for existing keys was reported incorrectly.
2016-12-08 11:32:49 -05:00
Jhonny Everson
7a10716ceb
Adds handler for error responses
2016-12-08 11:32:49 -05:00
Sebastian Kornehl
20b75901aa
docs: removed default when required is true
2016-12-08 11:32:48 -05:00
Sebastian Kornehl
6c143d62ba
Added datadog_monitor module
2016-12-08 11:32:48 -05:00
Lorenzo Luconi Trombacchi
7817b69a1f
status function was called twice
2016-12-08 11:32:47 -05:00
Lorenzo Luconi Trombacchi
83667961bb
fix a problem with status detection after unmonitor command
2016-12-08 11:32:47 -05:00
Lorenzo Luconi Trombacchi
9ee857180b
added lower function for statuses
2016-12-08 11:32:47 -05:00
Kevin Klinemeier
5742c4ae26
Updated tags example to an actual datadog tag
2016-12-08 11:32:47 -05:00
Brian Coca
b6cf79e061
push list nature of tags into spec to allow both for comma delimited strings and actual lists
2016-12-08 11:32:46 -05:00
Brian Coca
8a8ef770c7
updated docs for 2.0
2016-12-08 11:32:46 -05:00
Michael Gröning
3061a029d6
fix bugs
2016-12-08 11:32:46 -05:00