Perfect, sensors are running now! I will try the rest now.
Temperature Sensor
-
-
Zitat von "fergbrain"
I fork'd Solo0815's script and spent the weekend making an updated version that includes Mahmoud's update as well getting HDDTemps to work. I've issued a pull request to merge the results back to Solo0815's work, but in the meantime you can download script at: https://github.com/fergbrain/omvsensors/archive/master.zip
Note: this is designed for OMV 0.5...do not try to use this on OMV 0.4. Also, wasn't able to checkout the fanspeed settings, so if they don't work let me know.
Instructions are in the README.md file, which you can also view: https://github.com/fergbrain/omvsensors
The Fan Speed code needs to be changed to work like the HDD temp code so multiple fans can be monitored as I suspect that most of us have more than one, I have CPU, Front, Back and PSU fans, and another two fanspeed rrd files.
It's simple and easy to modify the code to work, as I've managed to make it work that way on my system. I'd publish my changes to sensors and omv_sensors.conf but I rather hacked it and haven't had chance to tart it up or comment it properly. -
so, the new kernel runs and sensors gives the following:
Codek10temp-pci-00c3 Adapter: PCI adapter temp1: +41.4°C (high = +70.0°C, crit = +90.0°C) radeon-pci-0008 Adapter: PCI adapter temp1: +41.0°C
but I dont get it run...
installscript says:Code
Alles anzeigen###################################################### ### ### ### OMV-sensors Install / Remove script ### ### ### ###################################################### Sensors-script Installation / Remove in OMV? 1) Install 2) Remove #? 1 Do you have lm-sensors already installed and configured? (y/n): y Installing files... omv-sensor.conf >>> /etc ...successfull! sensors >>> /usr/share/openmediavault/mkconf/collectd.d/ ... successfull! Sensors.default >>> /var/www/openmediavault/js/omv/module/admin ... successfull! Fanspeed.default /var/www/openmediavault/js/omv/module/admin ... successfull! HDDTemp.default /var/www/openmediavault/js/omv/module/admin ... successfull! Should this install-script make the changes for the first-time-setup? (y/n): y Making changes ... running '/usr/share/openmediavault/mkconf/collectd.d/sensors' ... sensors[6509]: WARN: 'given rrd-file in /var/lib/collectd/rrd/localhost for SENSOR1 does not exist' sensors[6509]: WARN: 'You set it to sensors-coretemp-isa-0000/temperature-temp1.rrd' sensors[6509]: WARN: 'Pleast check your config-file' sensors[6509]: WARN: 'exiting script ...' failed! If you have errors here, it's due to missing rrd-files. You have to edit your /etc/omv-sensor.conf restarting collectd... Restarting statistics collection and monitoring daemon: collectd. successfull! creating graphs...successfull! Installation completed! Edit /etc/omv-sensor.conf to fit your needs and run '/usr/share/openmediavault/mkconf/collectd.d/sensors' to create the rrd-scripts for OMV. After install, you can delete the omvsensors-master folder Have fun!
then I get this:
Coderoot@NAS:~/omvsensors-master# /usr/share/openmediavault/scripts/collectd.d/sensors -bash: /usr/share/openmediavault/scripts/collectd.d/sensors: Datei oder Verzeichnis nicht gefunden
I work with this guide:
https://github.com/fergbrain/o…ors/blob/master/README.md -
-
Did you edit your /etc/omv-sensor.conf file?
-
No I have not because I don't know how :oops:
here's my conf file:
Code
Alles anzeigen###################################################################### # OMV-Sensor configuration-file # to use with the sensors-script from OMV ###################################################################### # Make sure, you edit this file with vim, nano or any other # linux-compatible editor, like UltraEdit or Notepad++ # # --------------------------------------------------------------------- # Don't forget to run # # /usr/share/openmediavault/mkconf/collectd.d/sensors # # and # # omv-mkgraph # # after changing this configuration file to make your changes happen # --------------------------------------------------------------------- ###################################################################### # OMV-Sensor Configuration ###################################################################### # Set all this variables relative to /var/lib/collectd/rrd/localhost/ # # Example: SENSOR1=sensors-coretemp-isa-0000/temperature-temp1.rrd # means the file /var/lib/collectd/rrd/localhost/sensors-coretemp-isa-0000/temperature-temp1.rrd # SENSOR1="sensors-coretemp-isa-0000/temperature-temp1.rrd" # If you need only one sensor, leave this empty SENSOR2="" # If you don't want to monitor your fanspeed, leave this empty FANSPEED="" # Set this to fit your setup: # 1 = one sensor, no fanspeed # 2 = two sensors, no fanspeed # 3 = one sensor and fanspeed # 4 = two sensors and fanspeed pluginconf="1" # Change NUM_HDD to the number of Hard Drives you have NUM_HDD=0 # Set all these variables relative to /var/lib/collectd/rrd/localhost/ # # Example: HDD1="hddtemp/temperature-8-0.rrd" # means the file /var/lib/collectd/rrd/localhost/hddtemp/temperature-8-0.rrd # # Add more lines as required (HDD5, HDD6, ..., HDD9, HDD10, HDD11, etc) HDD1="hddtemp/temperature-8-0.rrd" HDD2="" HDD3="" HDD4="" # End of configuration
-
Hi stereotone,
You can try something like this :
Code
Alles anzeigen###################################################################### # OMV-Sensor configuration-file # to use with the sensors-script from OMV ###################################################################### # Make sure, you edit this file with vim, nano or any other # linux-compatible editor, like UltraEdit or Notepad++ # # --------------------------------------------------------------------- # Don't forget to run # # /usr/share/openmediavault/mkconf/collectd.d/sensors # # and # # omv-mkgraph # # after changing this configuration file to make your changes happen # --------------------------------------------------------------------- ###################################################################### # OMV-Sensor Configuration ###################################################################### # Set all this variables relative to /var/lib/collectd/rrd/localhost/ # # Example: SENSOR1=sensors-coretemp-isa-0000/temperature-temp1.rrd # means the file /var/lib/collectd/rrd/localhost/sensors-coretemp-isa-0000/temperature-temp1.rrd # SENSOR1="k10temp-pci-00c3/temperature-temp1.rrd" # If you need only one sensor, leave this empty SENSOR2="" # If you don't want to monitor your fanspeed, leave this empty FANSPEED="" # Set this to fit your setup: # 1 = one sensor, no fanspeed # 2 = two sensors, no fanspeed # 3 = one sensor and fanspeed # 4 = two sensors and fanspeed pluginconf="1" # Change NUM_HDD to the number of Hard Drives you have NUM_HDD=0 # Set all these variables relative to /var/lib/collectd/rrd/localhost/ # # Example: HDD1="hddtemp/temperature-8-0.rrd" # means the file /var/lib/collectd/rrd/localhost/hddtemp/temperature-8-0.rrd # # Add more lines as required (HDD5, HDD6, ..., HDD9, HDD10, HDD11, etc) HDD1="" HDD2="" HDD3="" HDD4="" # End of configuration
I hope this helps. I am not sure this will work and I cannot guarranty that this will not mess up your system Do not forget to apply what the script says after changing the config file.
-
-
No, it doesn't work
I get the same errormessage...how can I create the .rrd file ?
-
-
Hi all!
I install this plugin, and I have 3 tabs with temperatures: Fan Speed, CPU Temp and HDD Temp.
I want create 1 tab with ALL temperatures: CPU, HDD temp in 1 tab.How i can create this?
-
-
Hi guys,
does anyone have the temp graph running under 0.6 (kralizec)? I was searching the forum for about an hour but I can't find any Information about this.
Any help would be appreciated. -
Hi guys,
does anyone have the temp graph running under 0.6 (kralizec)? I was searching the forum for about an hour but I can't find any Information about this.
Any help would be appreciated.+1, I can't create graph on OMV .6.
-
Does the script run on 0.6/1.0?
If yes then the graphs can be easily created. I don't have time to look at it in the near future unfortunately. -
-
No, on 1.0 script does not work.
This does not matter for me, but Google don't now about this problem %)
-
I'm using OVM-Sensors and additionally installed lsscsi and hddtemp.
Add the following lines to /var/www/openmediavault/js/omv/module/admin/diagnostic/system/plugin/Sensors.js
Java. . /* * hddtemp */ me.add(Ext.create("OMV.workspace.panel.RrdGraph", { title: "HDD Temp", rrdGraphName: "hddtemp" }));
to get a 3rd tab in OMV sensors.
Add the script /usr/share/openmediavault/mkconf/collectd.d/hddtemp
Bash
Alles anzeigen#!/bin/bash # # This file is part of OpenMediaVault. # # @license http://www.gnu.org/licenses/gpl.html GPL Version 3 # @author Volker Theile <volker.theile@openmediavault.org> # @copyright Copyright (c) 2009-2015 Volker Theile # # OpenMediaVault is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # any later version. # # OpenMediaVault is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with OpenMediaVault. If not, see <http://www.gnu.org/licenses/>. set -e . /etc/default/openmediavault . /usr/share/openmediavault/scripts/helper-functions end='\' endeof='EOF' OMV_COLLECTD_CONFIG=${OMV_COLLECTD_CONFIG:-"/etc/collectd/collectd.conf"} OMV_COLLECTD_RRDTOOL_MKGRAPH=${OMV_COLLECTD_RRDTOOL_MKGRAPH:-"/usr/sbin/omv-mkgraph"} #OMV_COLLECTD_CONFIG=/tmp/collectd #OMV_COLLECTD_RRDTOOL_MKGRAPH=/tmp/mkgraph cat <<EOF >> ${OMV_COLLECTD_CONFIG} LoadPlugin hddtemp <Plugin "hddtemp"> Host "127.0.0.1" Port "7634" </Plugin> EOF do_hdd() { for HDD in $(lsscsi | grep -o '[^ ]*.$'); do [ $(smartctl -a $HDD > /dev/null; echo $?) -ne 0 ] && continue HDD=${HDD##*\/} cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH} DEF:${HDD}avg=\${DATA}/hddtemp/temperature-${HDD}.rrd:value:AVERAGE ${end} DEF:${HDD}min=\${DATA}/hddtemp/temperature-${HDD}.rrd:value:MIN ${end} DEF:${HDD}max=\${DATA}/hddtemp/temperature-${HDD}.rrd:value:MAX ${end} LINE1:${HDD}avg\${COLOR_$(echo $HDD|awk '{print toupper($0)}')}:"${HDD}" ${end} GPRINT:${HDD}min:MIN:"%4.2lf Min" ${end} GPRINT:${HDD}avg:AVERAGE:"%4.2lf Avg" ${end} GPRINT:${HDD}max:MAX:"%4.2lf Max" ${end} GPRINT:${HDD}avg:LAST:"%4.2lf Last\l" ${end} EOF done } cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH} # <<< [openmediavault] hddtemp-script # Plugin: hddtemp TITLE_LOAD="HDD temperature" COLOR_SDA="#00cc00" # green COLOR_SDB="#004f00" # dark green COLOR_SDC="#0000fd" # blue COLOR_SDD="#ff0000" # red COLOR_SDE="#cc00cc" # purple COLOR_SDF="#0000cc" # dark blue COLOR_SDG="#cc6600" # brown COLOR_SDH="#ff8308" # orange COLOR_SDI="#ffce3b" # yellow COLOR_SDJ="#004f00" # dark green COLOR_MBT="#000000" # black EOF for ucperiod in HOUR DAY WEEK MONTH YEAR; do lcperiod=$(echo ${ucperiod} | tr '[:upper:]' '[:lower:]') cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH} rrdtool graph \${IMGDIR}/hddtemp-${lcperiod}.png --start \${${ucperiod}START} \${DEFAULTS} --title "\${TITLE_LOAD}\${${ucperiod}TITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 ${end} EOF do_hdd; cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH} COMMENT:"\${LASTUPDATE}" >/dev/null EOF done cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH} # >>> [openmediavault] hddtemp-script EOF
and run it.Restart collectd.
Done (see attachment) !
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!