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
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
Michael Gröning
87f6507fee
improved docs
2016-12-08 11:32:46 -05:00
Michael Gröning
8015b8c979
divided between host an service downtimes
2016-12-08 11:32:45 -05:00
Michael Gröning
8a209ed30b
add function for servicegrup downtimes
2016-12-08 11:32:45 -05:00
Todd Zullinger
18d6d874e1
monitoring/nagios: Allow comment to be specified
...
The default remains 'Scheduling downtime' but can be overridden.
2016-12-08 11:32:45 -05:00
Greg DeKoenigsberg
0ecedfeb25
Revert "Added eval for pasting tag lists"
2016-12-08 11:32:45 -05:00
Sebastian Kornehl
9cca3a5d17
Added eval for pasting tag lists
2016-12-08 11:32:45 -05:00
Toshio Kuratomi
dd6436e398
Fix documentation formatting
2016-12-08 11:32:43 -05:00
Rene Moser
359ba023e3
zabbix_group: improve params
2016-12-08 11:32:43 -05:00
Rene Moser
a497a5a2a3
zabbix_group: add backword compatibility
...
* add alias host_group for host_groups
* add choices for param state
2016-12-08 11:32:43 -05:00
Rene Moser
d944e2e9ea
zabbix_group: update version added to 1.8
...
Since we intent to replace the current module, we add the version the current module was added.
2016-12-08 11:32:43 -05:00
Rene Moser
55739fe678
zabbix_group: update authors to new format
2016-12-08 11:32:43 -05:00
Cove Schneider
8247c0172b
remove superfluous defaults
2016-12-08 11:32:43 -05:00
Cove Schneider
8490a4e9d0
add zabbix_group module
2016-12-08 11:32:43 -05:00
Rene Moser
4ef17aa162
zabbix_group: remove current module in favor of PR #346
2016-12-08 11:32:43 -05:00
Toshio Kuratomi
96fbe86f6a
Fix docs - don't need quote anymore
2016-12-08 11:32:43 -05:00
Rene Moser
3505dcb74c
zabbix_maintenance: prevent to log password
2016-12-08 11:32:42 -05:00
Rene Moser
b985c4d6a4
zabbix: improve module doc
2016-12-08 11:32:42 -05:00
Rene Moser
47eab56280
zabbix: improve arguments and prevent to log password
2016-12-08 11:32:42 -05:00
Rene Moser
a9449aa078
zabbix: remove redundant import of module_utils
2016-12-08 11:32:42 -05:00
tedder
59ce6832a3
use newer required_one_of syntax; unsure why there's app_name vs appname, so leaving it alone.
2016-12-08 11:32:42 -05:00
tedder
9e7b59159f
they call it a key, not a token
2016-12-08 11:32:42 -05:00
tedder
28f8f5ed70
fix 404'd url. There's no perfect replacement, but this is okay.
2016-12-08 11:32:41 -05:00
Tim Bielawa
33b9aaeaaf
Allow nagios module to be licensed as gpl v2 or newer
2016-12-08 11:32:41 -05:00
Toshio Kuratomi
efc63d9c40
Update module_utils "import" to the new-style
...
Fixes #505
2016-12-08 11:32:41 -05:00
Toshio Kuratomi
4f07e8b256
Many more doc fixes
2016-12-08 11:32:40 -05:00
Brian Coca
d344a3fde3
more string corrections
2016-12-08 11:32:39 -05:00
Brian Coca
2753cd186a
moar quotes
2016-12-08 11:32:39 -05:00
Brian Coca
c4f52f62f7
fix doc parsing by correctly quoting author
2016-12-08 11:32:39 -05:00
Greg DeKoenigsberg
711d2503fd
Formatting fix in author list
2016-12-08 11:32:38 -05:00
Greg DeKoenigsberg
425989831f
Add
2016-12-08 11:32:38 -05:00
Nick Harring
523cdc6959
Removed as keyword for 2.4 and earlier backwards compat.
2016-12-08 11:32:37 -05:00
Nick Harring
de43779565
Fixed ansible module import which I changed chasing a better PEP-8 score.
2016-12-08 11:32:37 -05:00
Nick Harring
385f319b46
Added version_added in Documentation output. Fixed shebang to be /usr/bin/python.
2016-12-08 11:32:37 -05:00
Nick Harring
bb817b26c6
PEP-8 style fixes
2016-12-08 11:32:37 -05:00
Nick Harring
75562afee1
Added Epic copyright notice, clarified examples.
2016-12-08 11:32:37 -05:00
Nick Harring
367af8e1d3
Initial public revision.
2016-12-08 11:32:37 -05:00
Toshio Kuratomi
a8c12ec097
Add python >= 2.6 to documented deps
2016-12-08 11:32:36 -05:00
Matt Martz
8bd5757720
Fix up modules that have python24 syntax error
2016-12-08 11:32:36 -05:00
Brian Coca
312814c51b
fixed doc issues on zabbix_screen
2016-12-08 11:32:31 -05:00
Brian Coca
caeeacd4f4
minor documentation fixes
2016-12-08 11:32:30 -05:00
Cove Schneider
0456685726
add zabbix_screen
2016-12-08 11:32:30 -05:00
Cove Schneider
0a2334069d
add zabbix_hostmacro
2016-12-08 11:32:30 -05:00
Cove Schneider
a138a5dcf4
add zabbix_host
2016-12-08 11:32:30 -05:00
Brian Coca
4fb47d443b
fixed logentries
2016-12-08 11:32:26 -05:00
Brian Coca
f319bdbfa4
minor fixes to logentries
2016-12-08 11:32:25 -05:00
Ruben Van den Bossche
1943ee7311
Added support for --name and --type arguments when following a new log
2016-12-08 11:32:25 -05:00
Rob White
e6eb7d47eb
Keep 'process' lowercase to protect against upstream changes
2016-12-08 11:32:24 -05:00
Rob White
ef8ca7c063
Changed status() to be case-sensitive of process
2016-12-08 11:32:24 -05:00
Giovanni Tirloni
ccd3044ea5
Fix dangerous use of empty list as default arg (mutable)
2016-12-08 11:32:24 -05:00