Temperature CPU?
-
- OMV 1.0
- joq3
-
-
It has been posted in that topic that the script does not work in OMV1.0, so I would run the uninstall part of the script.
I looked through the script and could not see any mention of the rrd files (used to make the graphs) these should be left intact and so should the old data, you could backup these files just in case but I do not know if the format in these files will change though. -
That normally means there are no rrd files generated, try doing ls /var/lib/rrdcached/db/localhost/sensors-*/ and see if it shows any.
Remember also that not all hardware will work, I had added the ones found so far but you might have something that has not been seen yet. Running the above command will also show if you have something that's not been added.
I plan on adding the CPU Fan option on the next version, I will post when its ready.
Sorry for the delay. The output for the command is:
Codedanila@openmediavault:~$ ls /var/lib/rrdcached/db/localhost/sensors-*/ /var/lib/rrdcached/db/localhost/sensors-acpitz-virtual-0/: temperature-temp1.rrd temperature-temp2.rrd /var/lib/rrdcached/db/localhost/sensors-coretemp-isa-0000/: temperature-temp1.rrd temperature-temp2.rrd temperature-temp3.rrd
And sensors command from the console shows me my CPU temp:
Code
Alles anzeigendanila@openmediavault:~$ sensors acpitz-virtual-0 Adapter: Virtual device temp1: +27.8°C (crit = +106.0°C) temp2: +29.8°C (crit = +106.0°C) coretemp-isa-0000 Adapter: ISA adapter Physical id 0: +44.0°C (high = +85.0°C, crit = +105.0°C) Core 0: +44.0°C (high = +85.0°C, crit = +105.0°C) Core 1: +42.0°C (high = +85.0°C, crit = +105.0°C)
-
Make your changes on the plugin page then click save so you get the yellow bar, do not click apply, instead run
sh -x /usr/share/openmediavault/mkconf/sensors sensors
pastes the output here.
-
Code
Alles anzeigen+ set -e + . /etc/default/openmediavault + OMV_CONFIG_FILE=/etc/openmediavault/config.xml + OMV_CONFIG_TEMPLATE_FILE=/usr/share/openmediavault/templates/config.xml + OMV_PRODUCTINFO_FILE=/usr/share/openmediavault/productinfo.xml + OMV_SCRIPTS_DIR=/usr/share/openmediavault/scripts + OMV_I18N_LOCALE_DIR=/usr/share/openmediavault/locale + OMV_MOUNT_DIR=/media + OMV_NFSD_EXPORT_DIR=/export + OMV_CACHE_DIR=/var/cache/openmediavault + OMV_LOG_DIR=/var/log/openmediavault + OMV_CERTIFICATE_DIR=/etc/ssl + OMV_CERTIFICATE_PREFIX=openmediavault- + OMV_DPKGARCHIVE_DIR=/var/cache/openmediavault/archives + OMV_DOCUMENTROOT_DIR=/var/www/openmediavault + OMV_CRONSCRIPTS_DIR=/var/lib/openmediavault/cron.d + OMV_RSYNC_CRONSCRIPTS_DIR=/var/lib/openmediavault/cron.d + OMV_CONFIGIMPORT_SCRIPTS_DIR=/usr/share/openmediavault/configimport + OMV_MKCONF_SCRIPTS_DIR=/usr/share/openmediavault/mkconf + OMV_ENGINED_DIR=/usr/share/openmediavault/engined + OMV_ENGINED_SO_ADDRESS=/var/lib/openmediavault/engined.sock + OMV_ENGINED_SO_SNDTIMEO=10 + OMV_ENGINED_SO_RCVTIMEO=180 + OMV_ENGINED_DIRTY_MODULES_FILE=/var/lib/openmediavault/dirtymodules.json + OMV_INITSYSTEM_SCRIPTS_DIR=/usr/share/openmediavault/initsystem + OMV_INITSYSTEM_FILE=/var/lib/openmediavault/initsystem.req + OMV_FSTAB_MNTOPS_EXT3=defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 + OMV_FSTAB_MNTOPS_EXT4=defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 + OMV_FSTAB_MNTOPS_JFS=defaults,nofail,noexec,usrquota,grpquota + OMV_FSTAB_MNTOPS_XFS=defaults,nofail,noexec,usrquota,grpquota + OMV_FSTAB_MNTOPS_VFAT=defaults,nofail + OMV_FSTAB_MNTOPS_NTFS=defaults,nofail + OMV_FSTAB_MNTOPS_HFSPLUS=defaults,nofail,force + OMV_USERMGMT_DEFAULT_GROUP=users + OMV_RRDGRAPH_DIR=/var/lib/openmediavault/rrd + OMV_RRDGRAPH_ERROR_IMAGE=/usr/share/openmediavault/icons/rrd_graph_error_64.png + OMV_APACHE2_SUEXECUSERGROUP=openmediavault + OMV_DEBUG_SCRIPT=NO + OMV_DEBUG_PHP=NO + OMV_DEBUG_EXTJS=NO + OMV_RSNAPSHOT_CONFS_DIR=/var/lib/openmediavault/rsnapshot.d + OMV_RSNAPSHOT_CRONSCRIPT=/var/lib/openmediavault/cron.d/rsnapshot + OMV_WEBGUI_FILE_OWNERGROUP_NAME=openmediavault + OMV_FSTAB_MNTOPS_EXT2=defaults,nofail,acl,user_xattr,noexec + . /usr/share/openmediavault/scripts/helper-functions + . /etc/default/openmediavault + OMV_CONFIG_FILE=/etc/openmediavault/config.xml + OMV_CONFIG_TEMPLATE_FILE=/usr/share/openmediavault/templates/config.xml + OMV_PRODUCTINFO_FILE=/usr/share/openmediavault/productinfo.xml + OMV_SCRIPTS_DIR=/usr/share/openmediavault/scripts + OMV_I18N_LOCALE_DIR=/usr/share/openmediavault/locale + OMV_MOUNT_DIR=/media + OMV_NFSD_EXPORT_DIR=/export + OMV_CACHE_DIR=/var/cache/openmediavault + OMV_LOG_DIR=/var/log/openmediavault + OMV_CERTIFICATE_DIR=/etc/ssl + OMV_CERTIFICATE_PREFIX=openmediavault- + OMV_DPKGARCHIVE_DIR=/var/cache/openmediavault/archives + OMV_DOCUMENTROOT_DIR=/var/www/openmediavault + OMV_CRONSCRIPTS_DIR=/var/lib/openmediavault/cron.d + OMV_RSYNC_CRONSCRIPTS_DIR=/var/lib/openmediavault/cron.d + OMV_CONFIGIMPORT_SCRIPTS_DIR=/usr/share/openmediavault/configimport + OMV_MKCONF_SCRIPTS_DIR=/usr/share/openmediavault/mkconf + OMV_ENGINED_DIR=/usr/share/openmediavault/engined + OMV_ENGINED_SO_ADDRESS=/var/lib/openmediavault/engined.sock + OMV_ENGINED_SO_SNDTIMEO=10 + OMV_ENGINED_SO_RCVTIMEO=180 + OMV_ENGINED_DIRTY_MODULES_FILE=/var/lib/openmediavault/dirtymodules.json + OMV_INITSYSTEM_SCRIPTS_DIR=/usr/share/openmediavault/initsystem + OMV_INITSYSTEM_FILE=/var/lib/openmediavault/initsystem.req + OMV_FSTAB_MNTOPS_EXT3=defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 + OMV_FSTAB_MNTOPS_EXT4=defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 + OMV_FSTAB_MNTOPS_JFS=defaults,nofail,noexec,usrquota,grpquota + OMV_FSTAB_MNTOPS_XFS=defaults,nofail,noexec,usrquota,grpquota + OMV_FSTAB_MNTOPS_VFAT=defaults,nofail + OMV_FSTAB_MNTOPS_NTFS=defaults,nofail + OMV_FSTAB_MNTOPS_HFSPLUS=defaults,nofail,force + OMV_USERMGMT_DEFAULT_GROUP=users + OMV_RRDGRAPH_DIR=/var/lib/openmediavault/rrd + OMV_RRDGRAPH_ERROR_IMAGE=/usr/share/openmediavault/icons/rrd_graph_error_64.png + OMV_APACHE2_SUEXECUSERGROUP=openmediavault + OMV_DEBUG_SCRIPT=NO + OMV_DEBUG_PHP=NO + OMV_DEBUG_EXTJS=NO + OMV_RSNAPSHOT_CONFS_DIR=/var/lib/openmediavault/rsnapshot.d + OMV_RSNAPSHOT_CRONSCRIPT=/var/lib/openmediavault/cron.d/rsnapshot + OMV_WEBGUI_FILE_OWNERGROUP_NAME=openmediavault + OMV_FSTAB_MNTOPS_EXT2=defaults,nofail,acl,user_xattr,noexec + OMV_XMLSTARLET_GET_SHAREDFOLDER_PATH=-m //system/shares/sharedfolder[uuid=current()/sharedfolderref] -v concat(//system/fstab/mntent[uuid=current()/mntentref]/dir,'/',reldirpath) -b + OMV_XMLSTARLET_GET_SHAREDFOLDER_NAME=-m //system/shares/sharedfolder[uuid=current()/sharedfolderref] -v name -b + OMV_XMLSTARLET_GET_SHAREDFOLDER_MOUNT_DIR=-m //system/shares/sharedfolder[uuid=current()/sharedfolderref] -v concat(//system/fstab/mntent[uuid=current()/mntentref]/dir,'/',reldirpath) -b + y=0 + outfile=/usr/share/openmediavault/mkconf/collectd.d/sensors + end=\ + starteof2=cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH} + starteof1=cat <<EOF >> ${OMV_COLLECTD_CONFIG} + statment1=if ! grep -q "LoadPlugin sensors" "$OMV_COLLECTD_CONFIG"; then + endeof=EOF + graph=OMV_COLLECTD_RRDTOOL_MKGRAPH=${OMV_COLLECTD_RRDTOOL_MKGRAPH:-"/usr/sbin/omv-mkgraph"} + collected=OMV_COLLECTD_CONFIG=${OMV_COLLECTD_CONFIG:-"/etc/collectd/collectd.conf"} + omv_config_get //services/sensors/cpuenable + local _queryresult _result + omv_debug omv_config_get: xpath=<//services/sensors/cpuenable> + xmlstarlet sel -t -v+ //services/sensors/cpuenable /etc/openmediavault/config.xml xmlstarlet unesc + _queryresult=1 + _result=0 + echo 1 + omv_debug omv_config_get: results: query=<1> cmd=<0> + return 0 + [ 1 = 0 ] + [ ! -f /usr/share/openmediavault/mkconf/collectd.d/sensors ] + [ ! -f /var/www/openmediavault/js/omv/module/admin/diagnostic/system/plugin/Sensors.js ] + omv_config_get //services/sensors/cpuenable + local _queryresult _result + omv_debug omv_config_get: xpath=<//services/sensors/cpuenable> + xmlstarlet sel -t -v //services/sensors/cpuenable /etc/openmediavault/config.xml + xmlstarlet unesc + _queryresult=1 + _result=0 + echo 1 + omv_debug omv_config_get: results: query=<1> cmd=<0> + return 0 + [ 1 = 1 ] + sed -i /#\ <<<\ \[openmediavault\]\ sensors-script/,/#\ >>>\ \[openmediavault\]\ sensors-script/d /usr/sbin/omv-mkgraph + egrep ^LoadPlugin sensors /etc/collectd/collectd.conf + echo -e LoadPlugin sensors\n + chmod +x /usr/share/openmediavault/mkconf/collectd.d/sensors + /usr/share/openmediavault/mkconf/collectd.d/sensors + /etc/init.d/collectd restart + /usr/sbin/omv-mkgraph
and also, something strange happened to the Status page:
nut graphs went missing, "Temperature monitor" tab appeared with sad smiles, and when I click "refresh", I get this:CodeОшибка #4000: exception 'OMVException' with message 'Failed to execute command 'omv-mkgraph 2>&1': ERROR: No DS called 'value' in '/var/lib/rrdcached/db//localhost/nut-ups/percent-charge.rrd'' in /usr/share/openmediavault/engined/rpc/rrd.inc:65 Stack trace: #0 [internal function]: OMVRpcServiceRrd->generate(NULL, Array) #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array) #2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('generate', NULL, Array) #3 /usr/sbin/omv-engined(500): OMVRpc::exec('Rrd', 'generate', NULL, Array, 1) #4 {main}
-
Try uninstalling the plugin and reinstalling it, the command I asked you to run did not show any errors so it should produce the graphs.
-
Hello guys, sorry for stupid questions, im total noob in this.
I studied all previous posts before, and I have mismatch in my head from all of that. But I started here.
Running OMV 1.16 on BananaPi. I installed from testing repository under "testing" openmediavault-sensors, sucesfully installed and found shortcut "sensors" betwenn Rsync and "SMB/CIFS" ... I checked "CPU Temperature - Will monitor CPU Temperature - Working", but I didnt see anything about temperature in "Status" card.PLease can you tell me what to do ?
When I write "sensors" to SSH, it will blow up somethink like this :
Zitatroot@BanaNAS:~# sensors
axp20_mfd-i2c-0-34
Adapter: sunxi-i2c.0
temp1: +42.6°C (low = -144.7°C, high = +264.8°C)Please can you tell me what to do, if I want this info in a graph on a status page ?
Sorry for my English, Im form Slovakia.
Thank you for your help. If it is needed, I will donate author of tutorial Just write me an email on winky1404@gmail.com" Thanks
-
Did you restart your System?
Had the same problem, after reboot the Temperature Tab showed up.. -
It doesnt work, tried many times.
-
-
I just installed this version
http://omv-extras.org/debian/p…o/openmediavault-sensors/
that's the 1.05 version on a HP Microserver Gen8 (has a lot of sensors)Happy to see the CPU temp now in a graph (needed a force refresh in my browser (no reboot or restart) after enabling the start of creating a graph)
-
Anyway to get this to who temp in F and not C ?
-
Also, I notice that when I check the plugin it tells me the max is like 38.50 but when I use sensors from the cli it tells me 46.5.
How ca I verify that it is reporting the proper CPU temp?
-
A lot of times, you will see two temps - a virtual acpi temp and a coretemp or k10temp. They are usually different. I would trust the coretemp or k10temp more than acpi temp.
-
Just a question.
where to find the latest plugin?
My latest issue is that or after a reboot OR after a change in the system the sensors plugin does not work anymore (no generation of new graphs)
Today I removed sensors at it did not succeed to run after latest update of the kernel and the reboot afterwardsLike to test and would love to keep testing with the latest version.
Thanks -
-
A lot of times, you will see two temps - a virtual acpi temp and a coretemp or k10temp. They are usually different. I would trust the coretemp or k10temp more than acpi temp.
I see that now. Yes I have a k10temp-pci-00c3, fam15h_power-pci-00c4, nouveau-pci-0100, and a nct6776-isa-0290. The k10temp-pci-00c3 seems to match that OMV is reporting.
Thanks for the info!
-
I apologize if I missed this, but is there a plan to include drive temperature monitoring in this plugin? Or is there another that already exists with this function?
Oh, and it took my server about 5 minutes before the temp monitor showed up as well, which I read was happening to others on the last page.
-
Maybe in the future but for now I would like it to show temps supported by ld-sensors.
-
Hello, Please can you provide some good HOWTO or documentation to add more graphs?.
but I want to see my Fans.
some info:
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Jun 7 10:05:34 2015 from raul
root@BNAS:~# ls -l /var/lib/rrdcached/db/localhost/sensors-*/
total 2368
-rw-r--r-- 1 root root 148648 jun 7 11:13 fanspeed-fan1.rrd
-rw-r--r-- 1 root root 148648 jun 7 11:13 fanspeed-fan2.rrd
-rw-r--r-- 1 root root 148648 jun 7 11:13 fanspeed-fan3.rrd
-rw-r--r-- 1 root root 148648 jun 7 11:13 fanspeed-fan5.rrd
-rw-r--r-- 1 root root 148648 jun 7 11:13 temperature-temp1.rrd
-rw-r--r-- 1 root root 148648 jun 7 11:13 temperature-temp2.rrd
-rw-r--r-- 1 root root 148648 jun 7 11:13 temperature-temp3.rrd
-rw-r--r-- 1 root root 148648 jun 7 11:13 voltage-in0.rrd
-rw-r--r-- 1 root root 148648 jun 7 11:13 voltage-in1.rrd
-rw-r--r-- 1 root root 148648 jun 7 11:13 voltage-in2.rrd
-rw-r--r-- 1 root root 148648 jun 7 11:13 voltage-in3.rrd
-rw-r--r-- 1 root root 148648 jun 7 11:13 voltage-in4.rrd
-rw-r--r-- 1 root root 148648 jun 7 11:13 voltage-in5.rrd
-rw-r--r-- 1 root root 148648 jun 7 11:13 voltage-in6.rrd
-rw-r--r-- 1 root root 148648 jun 7 11:13 voltage-in7.rrd
-rw-r--r-- 1 root root 148648 jun 7 11:13 voltage-in8.rrd
root@BNAS:~# sensors
it8720-isa-0228
Adapter: ISA adapter
in0: +1.04 V (min = +0.00 V, max = +4.08 V)
in1: +1.86 V (min = +0.00 V, max = +4.08 V)
in2: +3.28 V (min = +0.00 V, max = +4.08 V)
+5V: +2.94 V (min = +0.00 V, max = +4.08 V)
in4: +3.12 V (min = +0.00 V, max = +4.08 V)
in5: +0.14 V (min = +0.00 V, max = +4.08 V)
in6: +4.08 V (min = +0.00 V, max = +4.08 V)
5VSB: +3.01 V (min = +0.00 V, max = +4.08 V)
Vbat: +2.96 V
fan1: 967 RPM (min = 10 RPM)
fan2: 1336 RPM (min = 0 RPM)
fan3: 1377 RPM (min = 0 RPM)
fan5: 1229 RPM (min = 0 RPM)
temp1: +43.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
temp2: +33.0°C (low = +127.0°C, high = +80.0°C) sensor = thermal diode
temp3: +42.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor
cpu0_vid: +1.250 V
intrusion0: OK
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!