July 31, 200916 yr Can you cut and paste that long command line into a telnet session and run it? Let me know the result. This is the result of "cd /boot/smarthistory; smarthistory -wake ON -output HTML -graph IMAGE -report ALL -devices /dev/sdg": root@Tower:~# cd /boot/smarthistory; smarthistory -wake ON -output HTML -graph IMAGE -report ALL -devices /dev/sdg <img src='http://chart.apis.google.com/chart?chtt=ATA_Error_Count&chxt=x,y&chxl=0:|Jul 2|Jul 31|1:||0|0&cht=lxy&chs=200x85&chd=t:0,1,17,28,28|,,,,0&chds=0,28,,0&' align='center'> WD-WCAU41461809: OK - ATA_Error_Count is 0<br> <img src='http://www.tcpatools.com/bubba/noimage2.png' align='center'> WD-WCAU41461809: OK - Reallocated_Sector_Ct is 0<br> <img src='http://www.tcpatools.com/bubba/noimage2.png' align='center'> WD-WCAU41461809: OK - Reallocated_Event_Count is 0<br> <img src='http://www.tcpatools.com/bubba/noimage2.png' align='center'> WD-WCAU41461809: OK - Current_Pending_Sector is 0<br> <img src='http://chart.apis.google.com/chart?chtt=Power_On_Hours&chxt=x,y&chxl=0:|Jul 2|Jul 31|1:|6878|7181|7484&cht=lxy&chs=200x85&chd=t:0,1,17,28,28|6878,6879,7271,7475,7484&chds=0,28,6878,7484&' align='center'> WD-WCAU41461809: OK - Power_On_Hours is 7484<br> <img src='http://www.tcpatools.com/bubba/noimage2.png' align='center'> WD-WCAU41461809: OK - Offline_Uncorrectable is 0<br> <img src='http://www.tcpatools.com/bubba/noimage2.png' align='center'> WD-WCAU41461809: OK - UDMA_CRC_Error_Count is 0<br> No alerts from Smarthistory.<br> 1 device(s) active, 0 sleeping, 0 did not return SMART data. I get an error for "cd /boot/smarthistory; smarthistory -wake ON -output HTML -graph IMAGE -report ALL -devices /dev/sdg (disk1) " Thank you for taking care!
August 1, 200916 yr Author So it is opening a new window. The url is something like ... h t t p://tower:8080/utility?dev=sdr&disk=cache&cmd=smarthistory And the page is blank except for the command. (Do you see the unMenu menu above the command?) Is that correct? If so, please re-run and do a "view source" on the page and post the results.
August 1, 200916 yr Running these commands: cd /boot/smarthistory php smarthistory.php -wake ON -output HTML -graph IMAGE -report ALL I get the following error php: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory I then installed the missing library (I had already downloaded it): cd /boot/packages installpkg libxml2-2.6.32-i486-2.tgz At that point, running the php script resulted in a lot of HTML. I have a "user-script" defined for it in unMENU. It is named: 50-unmenu_user_script_smarthist-graph its contents are: #define USER_SCRIPT_LABEL SMART History Report #define USER_SCRIPT_DESCR Run SMART paramater tracking database Report #echo "<pre>" cd /boot/smarthistory php smarthistory.php -wake ON -output HTML -graph IMAGE -report ALL It then worked for me. Is it possible you are missing the same library from your install? Joe L.
August 1, 200916 yr So it is opening a new window. The url is something like ... h t t p://tower:8080/utility?dev=sdr&disk=cache&cmd=smarthistory And the page is blank except for the command. (Do you see the unMenu menu above the command?) Is that correct? If so, please re-run and do a "view source" on the page and post the results. Yes, all your assumption is correct. The output of the "page source": <HTML><title>Tower unRAID Server</title><HEAD> <STYLE type="text/css"> td.t { border-top: 1px solid black; } </STYLE></HEAD><BODY onload="self.scrollTo(0,0)"><table cellspacing=0 cellpadding=0 border=0 width="100%"><tr><td width="40%"><font size="-1"> <nobr><A HREF=http://Tower:8080/>myMain</A></nobr> | <nobr><A HREF=http://Tower:8080/array_management>Array Mgmt</A></nobr> | <nobr><A HREF=http://Tower:8080/disk_management>Disk Management</A></nobr> | <nobr><A HREF=http://Tower:8080/system_log>Syslog</A></nobr> | <nobr><A HREF=http://Tower:8080/links>Useful Links</A></nobr> | <nobr><A HREF=http://Tower:8080/usage>Disk Usage</A></nobr> | <nobr><A HREF=http://Tower:8080/dupe_files>Dupe Files</A></nobr> | <nobr><A HREF=http://Tower:8080/sys_info>System Info</A></nobr> | <nobr><A HREF=http://Tower:8080/file_browser>File Browser</A></nobr> | <nobr><A HREF=http://Tower:8080/user_scripts>User Scripts</A></nobr> | <nobr><A HREF=http://Tower:8080/package_manager>Package Manager</A></nobr> | <nobr><A HREF=http://Tower:8080/unraid_main>unRAID Main</A></nobr> | <nobr><A HREF=http://Tower:8080/about>About</A></nobr> | <nobr><A HREF=http://Tower:8080/help>Help</A></nobr> </font></td><td align=center width="20%"><font size="4"><b>Tower unRAID Server</b></font></td> <td align="right" width="40%">Sat Aug 1 08:19:59 GMT-2 2009</td></tr> </table> <p> </p><strong>cd /boot/smarthistory; smarthistory -wake ON -output HTML -graph IMAGE -report ALL -devices /dev/sdh (disk4)</strong><br><br> </BODY></HTML> I have checked with Firefox and IE with the same result.
August 1, 200916 yr Running these commands: cd /boot/smarthistory php smarthistory.php -wake ON -output HTML -graph IMAGE -report ALL I get the following error php: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory I then installed the missing library (I had already downloaded it): cd /boot/packages installpkg libxml2-2.6.32-i486-2.tgz At that point, running the php script resulted in a lot of HTML. I have a "user-script" defined for it in unMENU. It is named: 50-unmenu_user_script_smarthist-graph its contents are: #define USER_SCRIPT_LABEL SMART History Report #define USER_SCRIPT_DESCR Run SMART paramater tracking database Report #echo "<pre>" cd /boot/smarthistory php smarthistory.php -wake ON -output HTML -graph IMAGE -report ALL It then worked for me. Is it possible you are missing the same library from your install? Joe L. Thank you, Joe L., but I am not using the php version. I guess this library is only needed for this, isn't it? Hmmmm... I created the script without php. It looks like this: #define USER_SCRIPT_LABEL SMART History Report #define USER_SCRIPT_DESCR Run SMART paramater tracking database Report #echo "<pre>" cd /boot/smarthistory smarthistory -wake ON -output HTML -graph IMAGE -report ALL When I run this userscript it throws the error: ./50-unmenu_user_script_smarthist-graph: line 5: smarthistory: command not found But it's there for sure... I can run it from the console as you see above...
August 1, 200916 yr Author Hmmmm... I created the script without php. It looks like this: #define USER_SCRIPT_LABEL SMART History Report #define USER_SCRIPT_DESCR Run SMART paramater tracking database Report #echo "<pre>" cd /boot/smarthistory smarthistory -wake ON -output HTML -graph IMAGE -report ALL When I run this userscript it throws the error: ./50-unmenu_user_script_smarthist-graph: line 5: smarthistory: command not found But it's there for sure... I can run it from the console as you see above... I can't explain it either, but I believe if you solve this, the "sh" link in myMain will work as well.
August 1, 200916 yr Hmmmm... I created the script without php. It looks like this: #define USER_SCRIPT_LABEL SMART History Report #define USER_SCRIPT_DESCR Run SMART paramater tracking database Report #echo "<pre>" cd /boot/smarthistory smarthistory -wake ON -output HTML -graph IMAGE -report ALL When I run this userscript it throws the error: ./50-unmenu_user_script_smarthist-graph: line 5: smarthistory: command not found But it's there for sure... I can run it from the console as you see above... I can't explain it either, but I believe if you solve this, the "sh" link in myMain will work as well. Next step would be to do an ls -l /boot/smarthistory
August 1, 200916 yr Hmmmm... I created the script without php. It looks like this: #define USER_SCRIPT_LABEL SMART History Report #define USER_SCRIPT_DESCR Run SMART paramater tracking database Report #echo "<pre>" cd /boot/smarthistory smarthistory -wake ON -output HTML -graph IMAGE -report ALL When I run this userscript it throws the error: ./50-unmenu_user_script_smarthist-graph: line 5: smarthistory: command not found But it's there for sure... I can run it from the console as you see above... I can't explain it either, but I believe if you solve this, the "sh" link in myMain will work as well. Next step would be to do an ls -l /boot/smarthistory Here it is: Tower login: root Linux 2.6.27.7-unRAID. root@Tower:~# ls -l /boot/smarthistory total 10528 -rwx------ 1 root root 894 Jul 31 13:44 S13PJ1BQ722353.smarthistory* -rwx------ 1 root root 0 Jul 31 13:44 S13PJ1BQ722353.smarthistory.lock* -rwx------ 1 root root 1490 Jul 31 13:44 S1PVJ1NQA00230.smarthistory* -rwx------ 1 root root 0 Jul 31 13:44 S1PVJ1NQA00230.smarthistory.lock* -rwx------ 1 root root 1192 Jul 31 14:56 WD-WCAU41339612.smarthistory* -rwx------ 1 root root 0 Jul 31 14:56 WD-WCAU41339612.smarthistory.lock* -rwx------ 1 root root 1192 Jul 31 14:56 WD-WCAU41383081.smarthistory* -rwx------ 1 root root 0 Jul 31 14:56 WD-WCAU41383081.smarthistory.lock* -rwx------ 1 root root 1192 Jul 31 14:56 WD-WCAU41461809.smarthistory* -rwx------ 1 root root 0 Jul 31 14:56 WD-WCAU41461809.smarthistory.lock* -rwx------ 1 root root 1192 Jul 31 13:44 WD-WCAU44239842.smarthistory* -rwx------ 1 root root 0 Jul 31 13:44 WD-WCAU44239842.smarthistory.lock* -rwx------ 1 root root 1186 Jul 31 13:44 WD-WCAU44657102.smarthistory* -rwx------ 1 root root 0 Jul 31 13:44 WD-WCAU44657102.smarthistory.lock* -rwx------ 1 root root 894 Jul 31 13:44 WD-WCAU45610832.smarthistory* -rwx------ 1 root root 0 Jul 31 13:44 WD-WCAU45610832.smarthistory.lock* -rwx------ 1 root root 296 Jul 31 13:44 WD-WCAVY0331784.smarthistory* -rwx------ 1 root root 0 Jul 31 13:44 WD-WCAVY0331784.smarthistory.lock* -rwx------ 1 root root 1500 Jul 31 13:44 WD-WMAV22131851.smarthistory* -rwx------ 1 root root 0 Jul 31 13:44 WD-WMAV22131851.smarthistory.lock* -rwx------ 1 root root 23897 Jan 26 2009 flatfile.php* -rwx------ 1 root root 3131 Jan 26 2009 flatfile_utils.php* -rwx------ 1 root root 10673484 Jan 28 2009 smarthistory* -rwx------ 1 root root 26480 Jan 28 2009 smarthistory.php* -rwx------ 1 root root 2503 Jan 27 2009 smarthistory.program.conf.sample* -rwx------ 1 root root 1841 Jan 27 2009 smarthistory.token.conf*
August 1, 200916 yr That looks good... So... what does your search path look like: If the current directory is not in the search path, the command would not be found. Type: echo $PATH and cd /boot/smarthistory which smarthistory
August 1, 200916 yr That looks good... So... what does your search path look like: If the current directory is not in the search path, the command would not be found. Type: echo $PATH and cd /boot/smarthistory which smarthistory root@Tower:/boot/smarthistory# echo $PATH /usr/local/sbin:/usr/sbin:/sbin:./:/usr/local/bin:/usr/bin:/bin root@Tower:/boot/smarthistory# cd /boot/smarthistory root@Tower:/boot/smarthistory# which smarthistory /boot/smarthistory/smarthistory root@Tower:/boot/smarthistory# However, I seem to solved it. I simply run smarthistory by the following way: cd /boot/smarthistory; ./smarthistory It is working in this way. Also the "sh" link is working now, after I modified the command in "99-unmenu-utility.awk" Did i find a good solution or it is just a workaround, and I should handle the root cause somewhere else. I am just wondering why it is working for you without "./"?
August 1, 200916 yr Only thing I can think of is that the current directory is not in the path when invoked through the button in unMENU You might temporarily add a which smarthistory immediately above the line that now has ./smarthistory ..... in your unmenu plug-in... Obviously, it is not using the same $PATH as you are with the interactive shell. It will be interesting to see what it has. Joe L.
August 1, 200916 yr Only thing I can think of is that the current directory is not in the path when invoked through the button in unMENU You might temporarily add a which smarthistory immediately above the line that now has ./smarthistory ..... in your unmenu plug-in... Obviously, it is not using the same $PATH as you are with the interactive shell. It will be interesting to see what it has. Joe L. You mean to the user script, like this: #define USER_SCRIPT_LABEL SMART History Report #define USER_SCRIPT_DESCR Run SMART paramater tracking database Report #echo "<pre>" cd /boot/smarthistory which smarthistory ./smarthistory -wake ON -output HTML -graph IMAGE -report ALL
August 1, 200916 yr Only thing I can think of is that the current directory is not in the path when invoked through the button in unMENU You might temporarily add a which smarthistory immediately above the line that now has ./smarthistory ..... in your unmenu plug-in... Obviously, it is not using the same $PATH as you are with the interactive shell. It will be interesting to see what it has. Joe L. You mean to the user script, like this: #define USER_SCRIPT_LABEL SMART History Report #define USER_SCRIPT_DESCR Run SMART paramater tracking database Report #echo "<pre>" cd /boot/smarthistory which smarthistory ./smarthistory -wake ON -output HTML -graph IMAGE -report ALL Exactly.
August 1, 200916 yr Only thing I can think of is that the current directory is not in the path when invoked through the button in unMENU You might temporarily add a which smarthistory immediately above the line that now has ./smarthistory ..... in your unmenu plug-in... Obviously, it is not using the same $PATH as you are with the interactive shell. It will be interesting to see what it has. Joe L. You mean to the user script, like this: #define USER_SCRIPT_LABEL SMART History Report #define USER_SCRIPT_DESCR Run SMART paramater tracking database Report #echo "<pre>" cd /boot/smarthistory which smarthistory ./smarthistory -wake ON -output HTML -graph IMAGE -report ALL Exactly. It gives: It gives: which: no smarthistory in (/bin:/usr/bin:/sbin:/usr/sbin)
August 1, 200916 yr It gives: which: no smarthistory in (/bin:/usr/bin:/sbin:/usr/sbin) That explains it... the current directory is not in the search path at the time when you invoked unMENU itself. Your solution of adding "./" to the smarthistory command is a good solution. How are you initially invoking unMENU? How are you starting it? Where? (Trying to determine where the original $PATH is coming from.) Joe L.
August 1, 200916 yr It gives: which: no smarthistory in (/bin:/usr/bin:/sbin:/usr/sbin) That explains it... the current directory is not in the search path at the time when you invoked unMENU itself. Your solution of adding "./" to the smarthistory command is a good solution. How are you initially invoking unMENU? How are you starting it? Where? (Trying to determine where the original $PATH is coming from.) Joe L. From go script like this: /boot/unmenu/uu cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c Is that correct?
August 1, 200916 yr Author This simple change may get you past this problem. I just added "./" to the front of the command that runs smarthistory. Unzip the attached file into the unmenu directory. See if that fixes it.
August 1, 200916 yr It gives: which: no smarthistory in (/bin:/usr/bin:/sbin:/usr/sbin) That explains it... the current directory is not in the search path at the time when you invoked unMENU itself. Your solution of adding "./" to the smarthistory command is a good solution. How are you initially invoking unMENU? How are you starting it? Where? (Trying to determine where the original $PATH is coming from.) Joe L. From go script like this: /boot/unmenu/uu cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c Is that correct? Yes, it is correct. It simply indicates that the default $PATH in unRAID has changed. (or rather, a sub-shell executed by the "system" function in awk is not using the parameters in /etc/profile that set the $PATH environment we use in interactive shells.) Joe L.
August 1, 200916 yr This simple change may get you past this problem. I just added "./" to the front of the command that runs smarthistory. Unzip the attached file into the unmenu directory. See if that fixes it. Thank you bjp999! If you read back you can see I already did it We were just looking for what can cause this for me. Thank you again to both of you for taking care!
August 5, 200916 yr I'm trying to upgrade to 1.2 from 1.1. I am not bale to copy the files over as it says they are in use. What is the command to stop and start unmenu so I can copy the files over? Thanks Edit: While I'm asking what is the command to install the package so I can access the smart data, as it does not currently show up anymore after a restart. I have the plug-in insallted. Sorry I haven't used the server for a few months and forgot a few things I think it's one of the packages called smartmontools-5.38-i486-1.tgz but I get Installed, but version is different. Current version='3.14.3' expected '5.38' (NOT matched - download may be corrupted.) Don't know if I should install it or not?
August 5, 200916 yr Author I'll leave to Joe L. to answer. I am not up on the current recommended way to run unMenu or restart it.
August 6, 200916 yr I'm trying to upgrade to 1.2 from 1.1. I am not bale to copy the files over as it says they are in use. What is the command to stop and start unmenu so I can copy the files over? I doubt that the running files are keeping you from replacing them, but in case they are... The easiest way to kill unMENU is to type at the command line killall awk Second easiest way is to use the "Kill unMENU" button on the "User-Scripts" page of unMENU. Edit: While I'm asking what is the command to install the package so I can access the smart data, as it does not currently show up anymore after a restart. I have the plug-in insallted. Sorry I haven't used the server for a few months and forgot a few things I think it's one of the packages called smartmontools-5.38-i486-1.tgz but I get Installed, but version is different. Current version='3.14.3' expected '5.38' (NOT matched - download may be corrupted.) Don't know if I should install it or not? What version of unRAID are you running... The "smartctl" program has been included for quite a while, although for a few versions the c++ support library was missing. Yes, you can probably install the 5.38 version, as it is the most recent... But if you tried to download it, the old link to it is probably out of date, and that is why the checksum of what you did download (probably an error message that the file does not exist) does not match the expected size. Joe L.
August 6, 200916 yr I'm trying to upgrade to 1.2 from 1.1. I am not bale to copy the files over as it says they are in use. What is the command to stop and start unmenu so I can copy the files over? I doubt that the running files are keeping you from replacing them, but in case they are... The easiest way to kill unMENU is to type at the command line killall awk Second easiest way is to use the "Kill unMENU" button on the "User-Scripts" page of unMENU. Edit: While I'm asking what is the command to install the package so I can access the smart data, as it does not currently show up anymore after a restart. I have the plug-in insallted. Sorry I haven't used the server for a few months and forgot a few things I think it's one of the packages called smartmontools-5.38-i486-1.tgz but I get Installed, but version is different. Current version='3.14.3' expected '5.38' (NOT matched - download may be corrupted.) Don't know if I should install it or not? What version of unRAID are you running... The "smartctl" program has been included for quite a while, although for a few versions the c++ support library was missing. Yes, you can probably install the 5.38 version, as it is the most recent... But if you tried to download it, the old link to it is probably out of date, and that is why the checksum of what you did download (probably an error message that the file does not exist) does not match the expected size. Joe L. Upgraded to 1.2 after stopping the process Also installed the c++ support library. Thanks
November 7, 200916 yr I apologize for waking a dead thread but I just wanted to make sure to thank the developer of the unmenu myMenu page in it's smart configuration. It was so nice to see a reasonably tidy presentation of the status of my drives. If you've not looked at it, don't. The details on your drives will probably scare you. One of my drives has almost three YEARS of power on time. But it's good to have some idea when things are getting sick and might fail and this page is the place to avoid those kind of surprises. Rob
November 7, 200916 yr Author Thanks!!! Joe L. did most of the work writing routines that pulled the low level info from the OS and unRAID. He also created the unmenu structure. But I created the myMain piece that enables you to highly customize your views of the array, sort by columns, view smart data in a single consolidated way, see disk and network performance, etc. Glad you are finding it helpful. I've been working on some enhancements that I plan to release when 5.0 comes out. Hope others don't view this as a dead thread. If anyone has any problems with myMain, or any suggestions to make it better, please post here and I'll do my best. Brian
Archived
This topic is now archived and is closed to further replies.