Manage `mq` plugin state.

This commit is contained in:
Jeremy Gardais 2017-09-04 17:31:51 +02:00
parent e1de38fa96
commit fe1b22390f
4 changed files with 7 additions and 5 deletions

View File

@ -3,7 +3,7 @@
### Features
* Add the possibility to manage 'xymon' user's groups.
* Manage `mq` plugin.
* Manage `mq` plugin and state.
## v1.0

View File

@ -26,9 +26,10 @@ Manage Xymon (client) installation and configuration.
* **xymon_cli_service_name**: `xymon-client` service name [default: `xymon-client`].
* **xymon_cli_service_enabled**: Set `xymon-client` service available at startup [default: `true`].
* **xymon_srv_list**: The list of Xymon servers (you must give an hostname, IP,… reachable from any clients) [defaults: `monitoring.{{ ansible_domain }}`].
* **xymon_plug_manage**: [default: `true`].
* **xymon_plug_mq_path**: [default: `/etc/xymon/clientlaunch.d/mq.cfg`].
* **xymon_plug_mq_tpl**: [default: `etc/xymon/clientlaunch.d/mq.cfg.j2`].
* **xymon_plug_manage**: If this role should manage plugins configuration [default: `true`].
* **xymon_plug_mq_state**: The state of plugin `mq` [default: `true`].
* **xymon_plug_mq_path**: Configuration file for the `mq` plugin [default: `/etc/xymon/clientlaunch.d/mq.cfg`].
* **xymon_plug_mq_tpl**: Template used to generate the previous config file [default: `etc/xymon/clientlaunch.d/mq.cfg.j2`].
### OS Specific Variables

View File

@ -22,5 +22,6 @@ xymon_srv_list: "monitoring.{{ ansible_domain }}"
# plugins
xymon_plug_manage: true
xymon_plug_mq_state: true
xymon_plug_mq_path: '/etc/xymon/clientlaunch.d/mq.cfg'
xymon_plug_mq_tpl: 'etc/xymon/clientlaunch.d/mq.cfg.j2'

View File

@ -1,5 +1,5 @@
[mq]
DISABLED
"{{ '#DISABLED' if xymon_plug_mq_state else 'DISABLED' }}"
ENVFILE /etc/xymon/xymonclient.cfg
CMD $XYMONCLIENTHOME/ext/mq
LOGFILE /var/log/xymon/xymonclient.log