LoadPlugin rrdtool
LoadPlugin sensors
LoadPlugin swap
-LoadPlugin thermal
LoadPlugin syslog
#LoadPlugin wireless
LogLevel info
</Plugin>
-<Plugin thermal>
- Device "cooling_device0"
- Device "cooling_device1"
- Device "cooling_device2"
- Device "cooling_device3"
- Device "cooling_device4"
- Device "cooling_device5"
- Device "cooling_device6"
- Device "cooling_device7"
- IgnoreSelected true
-</Plugin>
+#include "/etc/collectd.thermal"
--- /dev/null
+LoadPlugin thermal
+
+<Plugin thermal>
+ Device "cooling_device0"
+ Device "cooling_device1"
+ Device "cooling_device2"
+ Device "cooling_device3"
+ Device "cooling_device4"
+ Device "cooling_device5"
+ Device "cooling_device6"
+ Device "cooling_device7"
+ IgnoreSelected true
+</Plugin>
etc/collectd.conf
+etc/collectd.thermal
etc/rc.d/init.d/collectd
etc/rc.d/rc0.d/K50collectd
etc/rc.d/rc3.d/S21collectd
bin/probenic.sh
+etc/collectd.conf
+etc/collectd.thermal
etc/ntp
etc/rc.d/init.d/beep
etc/rc.d/init.d/console
+etc/rc.d/init.d/collectd
etc/rc.d/init.d/snort
etc/rc.d/init.d/networking/red
etc/ssh/moduli
--enable-{tcpconns,unixsock,users,wireless} \
--with-rrdtool=/usr/share/rrdtool-1.2.15
cd $(DIR_APP) && make install
- cp -vf $(DIR_SRC)/config/collectd/collectd.conf /etc/
+ cp -vf $(DIR_SRC)/config/collectd/collectd.* /etc/
ln -f -s ../init.d/collectd /etc/rc.d/rc0.d/K50collectd
ln -f -s ../init.d/collectd /etc/rc.d/rc3.d/S21collectd
ln -f -s ../init.d/collectd /etc/rc.d/rc6.d/K50collectd
case "$1" in
start)
- # If run from init and collectd already started then exit silent
+ # If run from init and collectd alrady started then exit silent
if [ "$(basename $0)" != "collectd" ]; then
if [ "$(ps -A | grep " collectd$")" != "" ]; then
exit 0
fi
# Load sensor modules only first start
- if [ ! -e /var/lock/sensor_modules ]; then
- touch /var/lock/sensor_modules
+ if [ ! -e /var/lock/sensors_modules ]; then
+ touch /var/lock/sensors_modules
boot_mesg -n "Loading Sensor Modules: "
for modul in `cat /etc/sysconfig/lm_sensors | grep '^MODULE_' | cut -d"=" -s -f2`; do
modprobe $modul > /dev/null 2>&1;
# Enable thermal plugin if thermal_zone found
if [ ! -e /sys/class/thermal/thermal_zone0 ]; then
- sed -i -e "s|^LoadPlugin thermal|#LoadPlugin thermal|g" /etc/collectd.conf
+ sed -i -e 's|^include "/etc/collectd.thermal"$|#include "/etc/collectd.thermal"|g' /etc/collectd.conf
else
- sed -i -e "s|^#LoadPlugin thermal|LoadPlugin thermal|g" /etc/collectd.conf
+ sed -i -e 's|^#include "/etc/collectd.thermal"$|include "/etc/collectd.thermal"|g' /etc/collectd.conf
fi
# Enable swap plugin if swap found