Prefix net probe command with sudo

Required for some interfaces.
This commit is contained in:
Jeremy Gardais 2021-11-17 13:45:48 +01:00
parent 277308637b
commit 8fa4ebaf77
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 6 additions and 2 deletions

View File

@ -1,9 +1,13 @@
## v2.0.2
### Fix
* Prefix **net** probe command with **sudo** (required for some interfaces).
## v2.0.1
### Fix
* Correct the path for ZFS probe.
## v2.0.0
### Enhancements

View File

@ -3,6 +3,6 @@
## From ipr-cnrs.xymon role
{{ '#DISABLED' if xymon_cli__plug_net_state else 'DISABLED' }}
ENVFILE /etc/xymon/xymonclient.cfg
CMD $XYMONCLIENTHOME/ext/net
CMD /usr/bin/sudo -E -u root $XYMONCLIENTHOME/ext/net
LOGFILE /var/log/xymon/xymonclient.log
INTERVAL {{ xymon_cli__plug_net_interval }}