Support > User Customizations
unMENU 1.5 ... now available for download.
marcusone:
--- Quote from: Joe L. on June 18, 2012, 02:21:39 PM ---
--- Quote from: marcusone on June 17, 2012, 06:58:52 PM ---not sure if this has been talked about (as I can't seem to find it via search and i'm not reading 80 pages of posts, so sorry if it has been):
Under UnRaid 5rc4 - ESXi - pass-through of an M1015 works great, but unmenu doesn't read drive temps (where unraid has no issues getting drive temps).
Is there an easy fix?
--- End quote ---
unMENU uses "smartctl -a /dev/sdX" to get drive temps. What is the output on your drives?
Normal... when i modified any place in your code that still used '-d ata' it started to work.
I've clicked the download and update feature from unmenu, so should be on your latest code.
Joe L.
--- End quote ---
carlos28355:
--- Quote from: Joe L. on March 08, 2010, 03:32:23 PM ---
--- Quote from: aht961 on March 08, 2010, 03:18:07 PM ---Hi. I have installed and will give it a try. However, is it possible to use the server IP rather than "name" like "tower". I do not know why but I am getting a lot of URL errors. This is happening with firefox in a mixed MAC/PC environment. I never managed to find the server using the name instead of IP and I understood that this has to do somethimg with Os X network protocols. Could it be possible to replace the tower in URLs ("http://(TOWER):8080/") with IP number? Otherwise I need to correct every URL manually which will be a pain :)
--- End quote ---
Add two lines in the unmenu.conf file
MyHost=192.168.0.11
unRAIDHost = 192.168.0.11
Setting the correct IP address, of course. Use the Config View/Editor built into unMENU, or one that uses unix style newlines at the ends of lines.
Then, re-start unMENU (There is a button for that on the User-Scripts page)
Joe L.
--- End quote ---
So i can no longer connect to unMenu out of no where. I was advised by Joe L. to insert the ip address lines but i do not know where to do it. Im not good with editing code/commands or whatever its called (= here is my file...
--- Code: ---#####################################################################################
# Some site specific variables are defined below here.
# You may change them as you desire in this file
#
# Lines that begin with the pound symbol (like this very line) are considered comments,
# and are completely ignored. Only lines without a beginning pound symbol will be used.
# Spaces around the equal sign are ignored. You can leave them out, or in for readability.
#####################################################################################
#UNMENU_RELEASE $Revision: 201 $ $Date: 2010-12-23 16:20:06 -0500 (Thu, 23 Dec 2010) $
# Unmenu defaults to using port 8080. If you wish to configure a different port, you may
# set it here, by setting MyPort to the desired port value. If you wish to set it to 90,
# just remove the leading pound symbol from the following line.
#MyPort = 90
# Unmenu will discover for itself your host name, but if you wish to set it yourself, or
# your host name is not set, then set the value of MyHost here.
#MyHost = MyTower
# Main page "auto" refresh interval in seconds is set here. Other pages are NOT auto refreshed.
# Note, auto refresh occurs ONLY when array state = STARTED
REFRESH_INTERVAL = 60
# Define per-filesystem mount options.
MOUNT_OPTIONS reiserfs = -r -o noatime,nodiratime -t reiserfs
MOUNT_OPTIONS ntfs-3g = -r -o umask=111,dmask=000 -t ntfs-3g
MOUNT_OPTIONS hfsplus = -r -t hfsplus
MOUNT_OPTIONS vfat = -w -t vfat
MOUNT_OPTIONS msdos = -r -t msdos
MOUNT_OPTIONS ext2 = -r -t ext2
MOUNT_OPTIONS ext3 = -r -t ext2
# This option for "other" is used for fs-types not specifically defined.
# the file system type is added by common code since it can not be specified here.
MOUNT_OPTIONS other = -r
# the built-in ntfs driver is read only... DO NOT atttempt to use it as r/w
MOUNT_OPTIONS ntfs = -r -o umask=111,dmask=000 -t ntfs
# Unmenu defaults to using a divisor of 1000 for disk sizes, including disk space free
# and disk space used. If you prefer the more geek style 1024 byte sizes, rather than the
# marketing 1000 byte sizes, then uncomment the following line (remove the pound symbol)
#OneThousand = 1024
# Warning temperature ranges for hard disks are set here. Main screen disk temperature output
# is color coded. These temps are in Centigrade.
yellow_temp = 40
orange_temp = 45
red_temp = 50
# the syslog plug-in limits the lines shown based on how it invoked.
# A syslog may be clicked on via the file_browser plug-in or the Syslog main-menu link:
file_browser_syslog_lines = 10000
syslog_summary_lines = 3000
# the number of NON-color-coded syslog lines to show on the unmenu main page. If set to 0, no syslog lines are shown.
syslog_main_lines = 0
# User defined content for the main unmenu.awk page, It is rendered in an inline-frame
# If "main_page_user_content" is defined, it is displayed in an in-line-frame at the bottom of the main unmenu page
# You are limited to one "unmenu" page. The "sys_log_tail" command does not show a menu, or status,
# nor does it have an entry for the main menu
# alternate color_coded syslog tail for main page of unmenu.
main_page_user_content = height=280 frameborder=0 marginwidth=0 scrolling="no" src="http://%MyHost%:%MyPort%/sys_log_tail?nl=6"
# list of open files for main page of unmenu
#main_page_user_content = height=280 frameborder=0 marginwidth=0 src="http://%MyHost%:%MyPort%/lsof"
PACKAGE_DIRECTORY = /boot/packages
# if rc.d folder exists with startup scripts, create the file there. If this directory does not exist,
# the auto install command is appended to the "go" script.
AUTO_INSTALL_DIRECTORY = /boot/custom/etc/rc.d
AUTO_INSTALL_FILE = S10-install_custom_packages
#AUTO_INSTALL_COMMAND = cd %PACKAGE_DIRECTORY% ;find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c
AUTO_INSTALL_COMMAND = cd %PACKAGE_DIRECTORY% && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c
# looking for a line with .auto_install that is not commented out.
AUTO_INSTALL_TEST = grep '^[^#]*\.auto_install'
# If useful links are defined here, they will be shown INSTEAD of the list coded in the useful_links plug-in.
USEFUL_LINK = <a href="http://lime-technology.com/forum/index.php">Lime Technology Support Forum</a>
USEFUL_LINK = <a href="http://lime-technology.com/wiki/index.php?title=UnRAID_Wiki">Lime Technology Wiki</a>
USEFUL_LINK = <a href="http://lime-technology.com/wiki/index.php?title=Best_of_the_Forums">Best Of The Forums</a>
USEFUL_LINK = <a href="http://lime-technology.com/wiki/index.php?title=Troubleshooting">Unraid Troubleshooting</a>
USEFUL_LINK = <a href="http://lime-technology.com/wiki/index.php?title=FAQ">Frequently Asked Questions</a>
USEFUL_LINK = <a href="http://www.lime-technology.com">Lime Technology Home Page</a>
USEFUL_LINK = <a href="http://www.gnu.org/software/gawk/manual/gawk.html">The GNU Awk User's Guide</a>
USEFFUL_LINK = <a href="http://packages.slackware.it/package.php?q=12.1/lsof-4.78-i486-1"><b>lsof</b> install package (list of open files)</a> download, then install by typing <b>installpkg lsof-4.78-i486-1.tgz</b>
USEFFUL_LINK = <a href="http://packages.slackware.it/package.php?q=12.1/pciutils-2.2.10-i486-1"><b>lspci</b> install package (List of PCI interfaces)</a> download, then install by typing <b>installpkg pciutils-2.2.10-i486-1.tgz</b>
# if allowed_folders are defined here, only those will be allowed to be accessed in the file_browser.
#ALLOWED_FOLDER = /mnt/user/
#ALLOWED_FOLDER = /mnt/disk11/
#ALLOWED_FOLDER = /mnt/user/Movies/
# set SAMBA file and directory creation modes when adding new shares.
directory_mask = 0755
create_mask = 0644
--- End code ---
I just saw this at the end of that code
--- Quote ---# if allowed_folders are defined here, only those will be allowed to be accessed in the file_browser.
--- End quote ---
i have a lot more directory's than that..can someone explain to me exactly what this is referring to? thanks
cassiusdrow:
Joe L.,
I noticed recently that the myMain portion of unMENU was not reporting the temperatures of my WD20EARS-60MVWB drives. In examining the unMENU code and drive Smart reports, it turns out that these drives do not have smart attribute "194 Temperature_Celsius", instead they have "190 Airflow_Temperature_Cel". I found that making these modifications to the file drivedb.lib.awk will correct the issue:
Change this code at line 1006:
--- Code: --- if(drivedb[ix, "temperature_celsius"] == "") # smart not run on this drive
drivedb[ix, "tempc"]="*";
else { # is spinning
delete t
split(drivedb[ix, "temperature_celsius"], t);
drivedb[ix, "tempc"] = t[1] "C";
}
--- End code ---
to this:
--- Code: --- if(drivedb[ix, "temperature_celsius"] != "") { # is spinning
delete t
split(drivedb[ix, "temperature_celsius"], t);
drivedb[ix, "tempc"] = t[1] "C";
} else
if(drivedb[ix, "airflow_temperature_cel"] != "") { # is spinning
delete t
split(drivedb[ix, "airflow_temperature_cel"], t);
drivedb[ix, "tempc"] = t[1] "C";
} else # smart not run on this drive
drivedb[ix, "tempc"]="*";
--- End code ---
And then change this code at line 1039 (1043 after above changes):
--- Code: --- cmd = "smartctl " PERMISSIVE_OPTION " " smartopt "| grep -i '^194'"
--- End code ---
to this:
--- Code: --- cmd = "smartctl " PERMISSIVE_OPTION " " smartopt "| grep -i '^19[04]'"
--- End code ---
I only have WD Green and Black drives in my array but these changes seems to work ok for me.
I also posted some other myMain changes in this post.
Thanks for all your work on unMenu. It is an amazing accomplishment.
Joe L.:
--- Quote from: cassiusdrow on July 12, 2012, 11:15:03 AM ---Joe L.,
I noticed recently that the myMain portion of unMENU was not reporting the temperatures of my WD20EARS-60MVWB drives. In examining the unMENU code and drive Smart reports, it turns out that these drives do not have smart attribute "194 Temperature_Celsius", instead they have "190 Airflow_Temperature_Cel". I found that making these modifications to the file drivedb.lib.awk will correct the issue:
--- End quote ---
Thanks for the updates. Obviously, it takes help from people like yourself to identify and get improvements like yours. (I do not have any of those specific drives, and it is wonderful that they divert from the standard wording everyone else uses... just to make things more difficult)
--- Quote ---Thanks for all your work on unMenu. It is an amazing accomplishment.
--- End quote ---
You would never recognize it as a collection of "awk" and shell scripts..., would you... :D I can use just about any language available to me for just about anything I need. I've since learned that "bask" also has networking capabilities, but at the time I figured out how to use "awk" for the purpose.
A manager once bet me I could not write a relational database with a balanced tree data structure using "shell utilities" (ksh actually)
He lost the bet. ;) It was many years ago, and I did it just to prove I could use "dd" and sh commands to impliment any data structure I wanted. (If you can do pointer arithmetic in assembly, and in "C", no reason you can't do it in "sh")
I'll incorporate what you've discovered when I get a chance. Thanks again.
Joe L.
jowi:
I've just configured my first unRAID server using 6 4TB disks. Now unMenu gives the following message:
"STARTED, 6 disks in array. Parity is Valid: Last parity check 15538 days ago with no sync errors"
I've created the parity this morning, not 15538 day ago (which is a LONG time btw)... is the counter ok? Can i reset it somehow?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version