mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
5d0805b25a
* Add Nagios livestatus inventory plugin. * Add new capabilities for the nagios_livestatus inventory: - host_field: set the name returned (default: 'name') - group_field: set the field used for group (default: 'groups') - host_filter: filter host using this filter (default: None) To be more consistent, prefix was renamed into var_prefix. * Fix py34 runtests errors against print call.
41 lines
1.1 KiB
INI
41 lines
1.1 KiB
INI
# Ansible Nagios external inventory script settings
|
|
#
|
|
# To get all available possibilities, check following URL:
|
|
# http://www.naemon.org/documentation/usersguide/livestatus.html
|
|
# https://mathias-kettner.de/checkmk_livestatus.html
|
|
#
|
|
|
|
[local]
|
|
# Livestatus URI
|
|
# Example for default naemon livestatus unix socket :
|
|
# livestatus_uri=unix:/var/cache/naemon/live
|
|
|
|
[remote]
|
|
|
|
# default field name for host: name
|
|
# Uncomment to override:
|
|
# host_field=address
|
|
#
|
|
# default field group for host: groups
|
|
# Uncomment to override:
|
|
# group_field=state
|
|
# default fields retrieved: address, alias, display_name, childs, parents
|
|
# To override, uncomment the following line
|
|
# fields_to_retrieve=address,alias,display_name
|
|
#
|
|
# default variable prefix: livestatus_
|
|
# To override, uncomment the following line
|
|
# var_prefix=naemon_
|
|
#
|
|
# default filter: None
|
|
#
|
|
# Uncomment to override
|
|
#
|
|
# All host with state = OK
|
|
# host_filter=state = 0
|
|
# Warning: for the moment, you can use only one filter at a time. You cannot combine various conditions.
|
|
#
|
|
# All host in groups Linux
|
|
# host_filter=groups >= Linux
|
|
#
|
|
livestatus_uri=tcp:192.168.66.137:6557
|