health.d/apache.conf \
health.d/backend.conf \
health.d/bind_rndc.conf \
- health.d/disks.conf \
health.d/elasticsearch.conf \
- health.d/entropy.conf \
health.d/fping.conf \
health.d/haproxy.conf \
- health.d/ipc.conf \
health.d/ipfs.conf \
health.d/isc_dhcpd.conf \
health.d/mdstat.conf \
health.d/memcached.conf \
- health.d/memory.conf \
health.d/mysql.conf \
health.d/named.conf \
- health.d/net.conf \
- health.d/netfilter.conf \
health.d/nginx.conf \
health.d/postgres.conf \
- health.d/qos.conf \
health.d/redis.conf \
health.d/retroshare.conf \
- health.d/softnet.conf \
health.d/squid.conf \
- health.d/tcp_resets.conf \
- health.d/udp_errors.conf \
health.d/varnish.conf \
$(NULL)
if LINUX
dist_healthconfig_DATA += \
health.d/cpu.conf \
+ health.d/disks.conf \
+ health.d/entropy.conf \
+ health.d/ipc.conf \
+ health.d/memory.conf \
+ health.d/net.conf \
+ health.d/netfilter.conf \
+ health.d/qos.conf \
health.d/ram.conf \
+ health.d/softnet.conf \
health.d/swap.conf \
+ health.d/tcp_resets.conf \
+ health.d/udp_errors.conf \
$(NULL)
endif LINUX
# Be nice on production environments
renice 19 $$ >/dev/null 2>/dev/null
-processors=$(grep ^processor </proc/cpuinfo | wc -l)
+processors=$(grep ^processor </proc/cpuinfo 2>/dev/null | wc -l)
[ $(( processors )) -lt 1 ] && processors=1
# you can set CFLAGS before running installer
echo >&2
}
+setcap="$(which setcap 2>/dev/null || command -v setcap 2>/dev/null)"
service="$(which service 2>/dev/null || command -v service 2>/dev/null)"
systemctl="$(which systemctl 2>/dev/null || command -v systemctl 2>/dev/null)"
service() {
setcap_ret=1
if ! iscontainer
then
- run setcap cap_dac_read_search,cap_sys_ptrace+ep "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/apps.plugin"
- setcap_ret=$?
+ if [ ! -z "${setcap}" ]
+ then
+ run setcap cap_dac_read_search,cap_sys_ptrace+ep "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/apps.plugin"
+ setcap_ret=$?
+ fi
if [ ${setcap_ret} -eq 0 ]
then