fix installer
This commit is contained in:
parent
ba347d60db
commit
c6f9192d16
|
@ -56,11 +56,10 @@ if [[ ! -d /opt/linuxfabrik-monitoring-plugins ]]; then
|
||||||
python3 -m venv /opt/venvs/linuxfabrik
|
python3 -m venv /opt/venvs/linuxfabrik
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/opt/venvs/linuxfabrik/bin/pip install psutil
|
|
||||||
|
|
||||||
cd /opt/linuxfabrik-monitoring-plugins
|
cd /opt/linuxfabrik-monitoring-plugins
|
||||||
rm -rf lib
|
rm -rf lib
|
||||||
git clone https://github.com/Linuxfabrik/lib.git
|
git clone https://github.com/Linuxfabrik/lib.git
|
||||||
|
/opt/venvs/linuxfabrik/bin/pip install -U pip wheel setuptools
|
||||||
/opt/venvs/linuxfabrik/bin/pip install bs4 psutil smbprotocol vici pymysql
|
/opt/venvs/linuxfabrik/bin/pip install bs4 psutil smbprotocol vici pymysql
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -72,4 +71,5 @@ ln_existing /opt/linuxfabrik-monitoring-plugins/check-plugins/ping/ping3 /usr/li
|
||||||
ln_existing /opt/linuxfabrik-monitoring-plugins/check-plugins/disk-smart/disk-smart3 /usr/lib64/nagios/plugins/disk-smart
|
ln_existing /opt/linuxfabrik-monitoring-plugins/check-plugins/disk-smart/disk-smart3 /usr/lib64/nagios/plugins/disk-smart
|
||||||
|
|
||||||
setcap cap_net_raw+ep /usr/lib/nagios/plugins/check_icmp
|
setcap cap_net_raw+ep /usr/lib/nagios/plugins/check_icmp
|
||||||
setcap cap_net_raw+ep /usr/lib/nagios/plugins/check_ping
|
setcap cap_net_raw+ep /usr/lib/nagios/plugins/check_ping
|
||||||
|
setcap 'cap_net_raw+ep' "$(which ping)"
|
Loading…
Reference in New Issue