diff --git a/CHANGELOG.md b/CHANGELOG.md index 21c207a..0c29394 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,12 @@ -## v1.X.Y +## v1.5.2 ### Enhancements * Add net probe management. * Add configuration file for `net` script (/etc/xymon/net.yaml) and possibility to set your own template. Check [net documentation](net plugin doc). +* Remove unecessary netstats dependencies (due to a previous misunderstanding) + between `net` and `netstats` probes. `netstats` only + reads /proc/net/{netstat,snmp} files. ## v1.5.1 diff --git a/README.md b/README.md index c9219d6..6dc3c7a 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,6 @@ Variables for the Net/Netstats plugin from hobbit-plugins. The plugin check network interface states. * **xymon_cli__plug_netstats_state** : The state of plugin `netstats` [default : `false`]. -* **xymon_cli__plug_netstats_package** : The packages to install to provide `netstats` plugin [default : `[ 'libfile-which-perl', 'libfile-slurp-perl', 'libipc-run-perl', 'libyaml-tiny-perl', 'iproute2', 'ethtool' ]`]. * **xymon_cli__plug_netstats_path** : Configuration file for the `netstats` plugin [default : `/etc/xymon/clientlaunch.d/netstats.cfg`]. * **xymon_cli__plug_netstats_tpl** : Template used to generate the previous config file [default : `etc/xymon/clientlaunch.d/netstats.cfg.j2`]. * **xymon_cli__plug_netstats_interval** : Time between each run of the `netstats` plugin [default : `5m`]. diff --git a/defaults/main.yml b/defaults/main.yml index 2da4853..87a106c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -117,7 +117,6 @@ xymon_cli__plug_net_conf_tpl: 'etc/xymon/net.yaml.j2' ## ]]] ## Plugin netstats [[[ xymon_cli__plug_netstats_state: false -xymon_cli__plug_netstats_package: [ 'libfile-which-perl', 'libfile-slurp-perl', 'libipc-run-perl', 'libyaml-tiny-perl', 'iproute2', 'ethtool' ] xymon_cli__plug_netstats_path: '/etc/xymon/clientlaunch.d/netstats.cfg' xymon_cli__plug_netstats_tpl: 'etc/xymon/clientlaunch.d/netstats.cfg.j2' xymon_cli__plug_netstats_interval: '5m' diff --git a/tasks/main.yml b/tasks/main.yml index 7621d28..0b4df47 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -209,19 +209,6 @@ notify: restart xymon-client service # Manage netstats plugin [[[1 -- name: PLUGIN netstats packages - package: - name: '{{ item }}' - state: 'present' - with_items: - - '{{ xymon_cli__plug_netstats_package | to_nice_json }}' - register: netstats_plug_result - until: netstats_plug_result is success - when: (xymon_cli_manage|bool and - xymon_plug_manage|bool and - xymon_cli__plug_netstats_state|bool) - notify: restart xymon-client service - - name: PLUGIN netstats config template: src: '{{ xymon_cli__plug_netstats_tpl }}'