I am glad you could get it work. It looks nice
Beiträge von johny_sketo
-
-
Zitat von "logan_fre"
Thanks for this. I tried that but it didn't make any difference. After trying different things, I found that it was because there was a TAB before the EOF. Now I don't get an error, but there are no graphs. I'm not sure it is worth it to keep fooling around with it. I noticed that under the S.M.A.R.T section you can see the drive temps so that will probably be enough for me.
Can you check what do you see inside the following folder
What mainboard do you use? -
[quote="logan_fre"]Hello. I was trying to setup temperature monitoring using the first post here but I get this error:
Code/usr/share/openmediavault/scripts/collectd.d/sensors: line 70: warning: here-document at line 11 delimited by end-of-file (wanted `EOF')
Check if you have any Space after the last EOF.
-
Zitat
To use triggers you simply have to create the file debian/xxxx.triggers which contains (until now) the following content:
Code: Select all
activate update-locale
activate update-filepermsSorry for my stupid question but is it possible to give me some instruction how I can do this?Thank you in advanced
-
Zitat von "iKai"
How can i change the file directory? I will show the files from my root share like the UUID.
To be honest I do not know how. I know that it uses the data folder inside the owncloud folder to built the data/users structure, but I cannot find anywhere an option to change this folder.
-
Zitat von "trza"
What is WINSCP?
WinSCP is a windows program that uses SSH protocol to transfer files, at least that is the reason I use it for. It looks very much like Windows Explorer and it is very easy to use.Zitat von "trza"I think "SOMETHING STRANGE" is referred to as the UUID? Seems like each physical drive gets something akin to a Serial Number to identify it. The number is so long it makes things seem impractical to use a command line to reference it.
Yes, I refer to the UUID. I know it is a little bit difficult but we are using it for only a few times and you can copy/paste the whole SN.Zitat von "trza"
Here, it seems like you're creating a User named "ocuser", adding them to the "adm" and "users" groups. If your account is a member of either group, you can see the "owncloud" share. So if somebody wanted any user to be able to access /owncloud, they could just give permission to the "users" group?I create a new user because I cannot add my account, or anybody already configured at OMV, at the Allow PHP Script part of Website plugin. I am sure that the group part may be wrong but as I said I am not expert and I wrote just what made my system work (OMV, OC with Webdav)
Zitat von "trza"I think all of this gives anybody on your network access to "/owncloud". If this is the case, you wouldn't need to make a user?
Again, the new user is necessary. The permissions may be wrong, please somebody corrects them in order to have maximum security -
Zitat von "stonerhawk"
After launching owncloud i didn't notice any setup wizard.
Where i can find and manage owncloud database?
Dear stonerhawk,The first time you open the OC webgui you should see the login page, but with some differences. The first time it lets you create a user and setup the DB part. In our case and since we use MySQL you should see the fields I wrote. If you have others DBs it will let you choose which one you wish to use. Also, have in mind that all these appear after you choose Allow PHP Script at the Website plugin.
-
Again I am not an Linux/Unix expert, I have just create a step by step guide to the steps I made in order to make everything work (OMV and Owncloud), As you will see below for some steps I am not 100% sure. Many steps comes from the old forum and other people wrote these first. As advise, first try it at a VirtualBox setup to be sure and then at your server. I am not responsible if this create any issue at your server. I hope someone who knows more than me corrects any mistakes I made.
OK..lets start. All packages version may change so keep that in mind in order to change the code...
From a brand new installation first of all we have to install the omvpluginorg from
Codehttp://packages.omv-plugins.org/pool/main/o/openmediavault-omvpluginsorg/openmediavault-omvpluginsorg_0.3.2~3.gbpa0b737_all.deb
. Upload it to the server by the OMV GUI, at System / Plugins. Install it. Refresh OMV page nad press Check in order to refresh the plugins list.
Chooce openmediavault-website 0.3.4, install it
Choose openmediavault-mysql 0.3.4.2, install it
Refresh the OMV page and choose the MySQL plugin in order to set a root password. (I am not 100% sure if this is mandatory, but just to be sure)
At NEW PASSWORD set your password and CONFIRM IT, press OK.Go to Share Folders, press ADD and put the following
Name : owncloud
Volume: choose your disk
Path:owncloudSSH to your server or by keyboard
press Y when asks.then
(#WHEN I TRIED THE LAST TIME THIS COMMAND FAILED, I DO NOT KNOW WHY, AND I HAD TO UNTAR IT BY WINSCP AND WINRAR)
Log in through WINSCP. Copy all the files and folders coming from this tar.bz2 file and paste them inside the owncloud folder we created before, in my installation it was
, then
Go back to the OMV GUI, at Users, click Add, name ocuser, group adm and users (I am not 100% sure if this is correct but it works)
Go at the Website plugin, tick ENABLE, go to Document Root and choose owncloud [on/dev/sdb1] (THIS MAY BE DIFFERENT)
Virtual host type:Port Based
Virtual Host Port:8181
Go to the PHP section and Tick Allow PHP Script
User: ocuser
Go to the Options section, tick Indexes
Go to Allow Override and tick next to all
Click OK (I got a error message but it says it is a communication failure so ignore it)Go to the Shared folders again, choose owncloud and press ACL
Change the permissions as follows
owncloud-> ocuser READ/WRITE and at the extra options Others Read/Write
expand owncloud
apps->ocuser READ/WRITE
config->ocuser READ/WRITEedit the file
Mine looks like this
Code
Alles anzeigen<VirtualHost *:8181> UseCanonicalName Off DirectoryIndex index.html index.htm index.php index.cgi index.pl ServerSignature Off DocumentRoot /media/146c7271-9441-48a5-8e6e-482f18b104d6/owncloud <Directory /> Options FollowSymLinks AllowOverride None </Directory> ErrorLog ${APACHE_LOG_DIR}/omv-website-vhost_error.log CustomLog ${APACHE_LOG_DIR}/omv-website-vhost_access.log combined SuexecUserGroup ocuser users <FilesMatch \.php$> FcgidWrapper /var/www/omv-website-vhost/php-fcgi .php Options +ExecCGI SetHandler fcgid-script </FilesMatch> <Directory /media/146c7271-9441-48a5-8e6e-482f18b104d6/owncloud/> AllowOverride All Options Indexes FollowSymLinks MultiViews Order allow,deny allow from all </Directory> </VirtualHost>
THE DIRECTORIES WILL NEED CHANGE SINCE IT IS TAKEN FROM MY SETUP, SO CHANGE IT. ALL THE OTHERS NEED TO BE LIKE THIS IN ORDER TO MAKE THE OWNCLOUD GUI WORK TOGETHER WITH THE WEBDAV FEATURE {THIS TOOK ME 2 WEEKS TO MAKE IT WORK, SINCE THE ERROR WAS A MISSING "+" AT Options +ExecCGI :twisted: :twisted: :twisted: }
Go back to SSH or keyboard of the serverand
, then restart the apache server by
Now you can log in at the Owncloud Webgui by
we will see the setup page, enter USER, PASSWORD , at MySQL DB use USER:root, Pass:the password you set before at the MySQL plugin, BD name : owncloud, localhost and then press Complete
At this step you will not be able to login at the OMV webgui page, you will get an error. Use WinSCP. locate php.ini in the
find the
, remove the
in front and edit as
(NOT 100% SURE)
Then find the php.ini in
find the
and change it to something (?), mine is session.name=("OMVSESSION") (NOT 100% SURE)
Now you can log in to the OMV Gui again
Finally to get Owncloug to work propertly edit the following
and add
Codemax_execution_time=3600 max_input_time=3600 memory_limit=512M post_max_size=2000M upload_max_filesize=2000M max_file_uploads=10
at the end.
Also editand add
With these changes, and after a restart you will be able to upload files up to 2GB size each.
I hope these helps
-
I will try to make one step by step guide. Sorry for being late but I had some issues that could not wait
Once again I am not Linux/Unix expert. I am not 100% sure that these steps will work at your system and everything I write I have tested at my system (i386) and found it at the old forum and the OC forum.
Be patient for a little while -
It is possible to implement Owncloud at OMV. There are some issues but you can overpass them and finally install it succesfully. First of all you need Website plugin and Mysql also. If you search the old forum you can find the how to install it and overpass the problems. I have install it (following these info) and I will try to create a How to with all the required configurations you need.
-
I am glad you solve the problem. Once again, the How to is not mine, I just copied it from the old forum.
-
First of all, I am not a Linux/Unix expert, I am just noob at these
I believe that the OMV does not shut down your system. I do not believe there is such an option at the GUI. I believe the shutdown temperature is configured at the BIOS, so search there. What we get from the above setup is only some graphs from the sensors that already exists at the systems and nothing more. I believe they are reliable since the system does not have other sensors to measure the temperatures. Maybe, when you download with Sabnzbd you get a temp peak and this is what causes the shutdown. Also, 73C is a bit high for average, i believe. -
So, I guess, you need both. You need sensors-k10temp-pci-00c3 for temperature (probably you get only CPU temp) and sensors-atk0110-acpi-0 for fan speed etc.
You should create something like thisCode...DEF:cpupavg=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:AVERAGE \ DEF:cpupmin=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MIN \ DEF:cpupmax=\${DATA}/sensors-k10temp-pci-00c3/temperature-temp1.rrd:value:MAX \...
and something like
Code...DEF:cpupavg=\${DATA}/sensors-atk0110-acpi-0/fanspeed.rrd:value:AVERAGE \ DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/fanspeed.rrd:value:MIN \ DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/fanspeed.rrd:value:MAX \...
i guess for the fan speeds -
I believe the correct one is k10temp-pci-00c3. You can try
and then get inside the folder (probably k10temp-pci-00c3) where you will see, I believe, something like
Zitattemperature-temp1.rrd temperature-temp2.rrd temperature-temp3.rrd
This is what you must use to edit the file. Hope this helps.
-
Just a copy from the old forum,http://sourceforge.net/apps/ph…t/viewtopic.php?f=5&t=324, thanks to subzeroin:
So, I have tried this a little, and this is what I've got (after too many ours of trying to change and compile coretemp.c for the old debian kernel to recognize my i3..).
First you have to have lm-sensors installed as you covered.
Log in as root via ssh and use your preferred text-editor (I'll be using vim).
Then I inserted this:
Code
Alles anzeigen/** * Sensors plugin for system information. */ // require("js/omv/NavigationPanel.js") // require("js/omv/PluginMgr.js") // require("js/omv/data/DataProxy.js") // require("js/omv/data/Store.js") // require("js/omv/grid/TBarGridPanel.js") // require("js/omv/RrdGraphPanel.js") Ext.ns("OMV.Module.Diagnostics.SysInfo"); /** * @class OMV.Module.Diagnostics.SysInfo.Temperatures * @derived Ext.TabPanel */ OMV.Module.Diagnostics.SysInfo.Temperature = function(config) { var initialConfig = { title: "CPU temperature", rrdGraphName: "sensors" }; Ext.apply(initialConfig, config); OMV.Module.Diagnostics.SysInfo.Temperature.superclass.constructor.call( this, initialConfig); }; Ext.extend(OMV.Module.Diagnostics.SysInfo.Temperature, OMV.RrdGraphPanel, { }); OMV.preg("sysinfo", "system", OMV.Module.Diagnostics.SysInfo.Temperature);
Then you have to create another file to get your changes in to collectd.conf and omv-mkgraph:
In this file you probably going to need to edit some things, like what sensors you want to use. I'm using a Intel i3 2100T so my sensors was coretemp:
Bash
Alles anzeigen#!/bin/sh set -e . /etc/default/openmediavault . /usr/share/openmediavault/scripts/helper-functions OMV_COLLECTD_CONFIG=${OMV_COLLECTD_CONFIG:-"/etc/collectd/collectd.conf"} OMV_COLLECTD_RRDTOOL_MKGRAPH=${OMV_COLLECTD_RRDTOOL_MKGRAPH:-"/usr/sbin/omv-mkgraph"} cat <<EOF >> ${OMV_COLLECTD_CONFIG} LoadPlugin sensors EOF cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH} # Plugin: sensors TITLE_LOAD="CPU temperature" COLOR_CPU_PHYSICAL="#00cc00" # green COLOR_CPU_CORE_0="#0000fd" # blue COLOR_CPU_CORE_1="#ff0000" # red rrdtool graph \${IMGDIR}/sensors-hour.png --start \${HOURSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${HOURTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \ DEF:cpupmin=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \ DEF:cpupmax=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \ DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MAX \ DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \ DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MIN \ DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MAX \ LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \ GPRINT:cpupmin:MIN:"%4.2lf Min" \ GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpupmax:MAX:"%4.2lf Max" \ GPRINT:cpupavg:LAST:"%4.2lf Last\l" \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \ GPRINT:cpuc1min:MIN:"%4.2lf Min" \ GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc1max:MAX:"%4.2lf Max" \ GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/sensors-day.png --start \${DAYSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${DAYTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \ DEF:cpupmin=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \ DEF:cpupmax=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \ DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MAX \ DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \ DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MIN \ DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MAX \ LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \ GPRINT:cpupmin:MIN:"%4.2lf Min" \ GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpupmax:MAX:"%4.2lf Max" \ GPRINT:cpupavg:LAST:"%4.2lf Last\l" \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \ GPRINT:cpuc1min:MIN:"%4.2lf Min" \ GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc1max:MAX:"%4.2lf Max" \ GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/sensors-week.png --start \${WEEKSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${WEEKTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \ DEF:cpupmin=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \ DEF:cpupmax=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \ DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MAX \ DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \ DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MIN \ DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MAX \ LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \ GPRINT:cpupmin:MIN:"%4.2lf Min" \ GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpupmax:MAX:"%4.2lf Max" \ GPRINT:cpupavg:LAST:"%4.2lf Last\l" \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \ GPRINT:cpuc1min:MIN:"%4.2lf Min" \ GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc1max:MAX:"%4.2lf Max" \ GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/sensors-month.png --start \${MONTHSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${MONTHTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \ DEF:cpupmin=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \ DEF:cpupmax=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \ DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MAX \ DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \ DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MIN \ DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MAX \ LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \ GPRINT:cpupmin:MIN:"%4.2lf Min" \ GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpupmax:MAX:"%4.2lf Max" \ GPRINT:cpupavg:LAST:"%4.2lf Last\l" \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \ GPRINT:cpuc1min:MIN:"%4.2lf Min" \ GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc1max:MAX:"%4.2lf Max" \ GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/sensors-year.png --start \${YEARSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${YEARTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE \ DEF:cpupmin=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MIN \ DEF:cpupmax=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:MAX \ DEF:cpuc0avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp2.rrd:value:MAX \ DEF:cpuc1avg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:AVERAGE \ DEF:cpuc1min=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MIN \ DEF:cpuc1max=\${DATA}/sensors-coretemp-isa-0000/temperature-temp3.rrd:value:MAX \ LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:" CPU" \ GPRINT:cpupmin:MIN:"%4.2lf Min" \ GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpupmax:MAX:"%4.2lf Max" \ GPRINT:cpupavg:LAST:"%4.2lf Last\l" \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"Core 1" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ LINE1:cpuc1avg\${COLOR_CPU_CORE_1}:"Core 2" \ GPRINT:cpuc1min:MIN:"%4.2lf Min" \ GPRINT:cpuc1avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc1max:MAX:"%4.2lf Max" \ GPRINT:cpuc1avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null EOF
Save the file and then you have to make sure it is executable:
You then run:
which is a script that make the collectd.conf and omv-mkgraph file.
If it doesn't work, try running just
and look for errors, if not then try running:
Log in to OMV webgui (or reload if you're already logged in), there should at least be a tab named "CPU temperature" now under SystemInformation->System.
If you don't know which sensor you have to use in the file we've created before, you can do as this, but first of all, run sensors-detect and load your needed modules.
Edit the collectd.conf file:
Add this row:
Reload collectd by either restarting your computer or
Now we can try to figure out the sensors and what path collectd uses:
Zitatcd /var/lib/collectd/rrd/localhost
ls
Here I got this list:
Zitat
cpu-0
cpu-1
cpu-2
cpu-3
df
interface
load
memory
sensors-coretemp-isa-0000We can ignore cpu-0 to cpu-4, df, interface, load and memory since that are standard entries that already is in use by OMV.
So what is left is sensors-coretemp-isa-0000, now check what's inside that folder:
This is what was there, only temps:
Zitattemperature-temp1.rrd temperature-temp2.rrd temperature-temp3.rrd
And that is what get you what you should use, e.g:
ZitatDEF:cpupavg=\${DATA}/sensors-coretemp-isa-0000/temperature-temp1.rrd:value:AVERAGE
Another usefull tool is rrdtool, if you get any errors in your scripts just try:
and that will get you a lot of info.
Hope all this helps
And the changes I made in order to get my sensors working (Asus AT5NM10T-I Atom D525 with sensors-atk0110-acpi-0)Bash
Alles anzeigen#!/bin/sh set -e . /etc/default/openmediavault . /usr/share/openmediavault/scripts/helper-functions OMV_COLLECTD_CONFIG=${OMV_COLLECTD_CONFIG:-"/etc/collectd/collectd.conf"} OMV_COLLECTD_RRDTOOL_MKGRAPH=${OMV_COLLECTD_RRDTOOL_MKGRAPH:-"/usr/sbin/omv-mkgraph"} cat <<EOF >> ${OMV_COLLECTD_CONFIG} LoadPlugin sensors EOF cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH} # Plugin: sensors TITLE_LOAD="Temperatures" COLOR_CPU_PHYSICAL="#ff0000" # red COLOR_CPU_CORE_0="#0000fd" # blue rrdtool graph \${IMGDIR}/sensors-hour.png --start \${HOURSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${HOURTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpupavg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:AVERAGE \ DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MIN \ DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MAX \ DEF:cpuc0avg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MAX \ LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \ GPRINT:cpupmin:MIN:"%4.2lf Min" \ GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpupmax:MAX:"%4.2lf Max" \ GPRINT:cpupavg:LAST:"%4.2lf Last\l" \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"M/B" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/sensors-day.png --start \${DAYSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${DAYTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpupavg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:AVERAGE \ DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MIN \ DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MAX \ DEF:cpuc0avg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MAX \ LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \ GPRINT:cpupmin:MIN:"%4.2lf Min" \ GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpupmax:MAX:"%4.2lf Max" \ GPRINT:cpupavg:LAST:"%4.2lf Last\l" \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"M/B" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/sensors-week.png --start \${WEEKSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${WEEKTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpupavg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:AVERAGE \ DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MIN \ DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MAX \ DEF:cpuc0avg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MAX \ LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \ GPRINT:cpupmin:MIN:"%4.2lf Min" \ GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpupmax:MAX:"%4.2lf Max" \ GPRINT:cpupavg:LAST:"%4.2lf Last\l" \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"M/B" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/sensors-month.png --start \${MONTHSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${MONTHTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpupavg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:AVERAGE \ DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MIN \ DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MAX \ DEF:cpuc0avg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MAX \ LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \ GPRINT:cpupmin:MIN:"%4.2lf Min" \ GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpupmax:MAX:"%4.2lf Max" \ GPRINT:cpupavg:LAST:"%4.2lf Last\l" \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"M/B" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null rrdtool graph \${IMGDIR}/sensors-year.png --start \${YEARSTART} \${DEFAULTS} --title "\${TITLE_LOAD}\${YEARTITLE}" --slope-mode --upper-limit 80 --lower-limit 0 --units-exponent 0 \ DEF:cpupavg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:AVERAGE \ DEF:cpupmin=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MIN \ DEF:cpupmax=\${DATA}/sensors-atk0110-acpi-0/temperature-temp1.rrd:value:MAX \ DEF:cpuc0avg=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:AVERAGE \ DEF:cpuc0min=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MIN \ DEF:cpuc0max=\${DATA}/sensors-atk0110-acpi-0/temperature-temp2.rrd:value:MAX \ LINE1:cpupavg\${COLOR_CPU_PHYSICAL}:"CPU" \ GPRINT:cpupmin:MIN:"%4.2lf Min" \ GPRINT:cpupavg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpupmax:MAX:"%4.2lf Max" \ GPRINT:cpupavg:LAST:"%4.2lf Last\l" \ LINE1:cpuc0avg\${COLOR_CPU_CORE_0}:"M/B" \ GPRINT:cpuc0min:MIN:"%4.2lf Min" \ GPRINT:cpuc0avg:AVERAGE:"%4.2lf Avg" \ GPRINT:cpuc0max:MAX:"%4.2lf Max" \ GPRINT:cpuc0avg:LAST:"%4.2lf Last\l" \ COMMENT:"\${LASTUPDATE}" >/dev/null EOF
-
Dear Votdev,
If I am not mistaking when I ran dpkg-reconfigure locale I saw that 2 locales where used, el_GR ISO 8859-7 and el_GR.UTF-8 UTF-8. I remove the first one and then everything where fixed. I hope this answer your question.
PS Thanks for the help and this great OS
-
-
Dear all,
Today I updated fro 0.2.7 to 0.3.0.17. Everything was OK exept a problem with Date and Time. Current time is unreadable. I get something like this
I have greek language installed, everything else looks great exept this. Date and time sytem log is also unreadable. At 0.2.7 i did not have any issue. I tried to change the webgui to english but the problem remains. I am sure that this is not a webgui issue but something at the system's settings is wrong, but I do not know how to resolve this. Can anybody help?
Thank you in advanced,
John