iStatServer on unRAID?


Recommended Posts

  • Replies 105
  • Created
  • Last Reply

Top Posters In This Topic

unMenu should be default on unRAID, it is simply as that. 

Sorry to disagree.  It's an interesting addon, but not something mature enough to be default on unRAID.

Besides, I have one unRAID box with 384MB RAM and 1GHz ULV processor. I don't want anything unnecessary on that box.

 

Link to comment

unMenu should be default on unRAID, it is simply as that. 

Sorry to disagree.  It's an interesting addon, but not something mature enough to be default on unRAID.

Besides, I have one unRAID box with 384MB RAM and 1GHz ULV processor. I don't want anything unnecessary on that box.

 

unMENU was never meant to be "mature"  It was written to be constantly evolving. 

 

From the very beginning it was meant to be a way to explore improvements to the user-interface.  For that reason it was specifically written in a way that it would continually evolve with plug-ins and user-scripts as buttons.

 

See this thread for the early history:  Idea's for Revamping the Initial Unraid Page.

 

I agree, it should probably never be part of unRAID by default, but it, or something like it will provide ideas for features that will be part of the stock unRAID as it evolves.

 

Joe L.

Link to comment

A little follow up on my iStat Server install problem.

 

I am doing this all through the unmenu package manager for reference.  The problem i am seeing is that i only get /mnt/user listed in the istat.conf file for "disks" that are to be monitored.  I am still not quite sure why this is but I did find out something new.  If I edit the config variables (but not really change any of them), then save it, and then re-install with the new values... it seems to work fine.  So i think there is a timing issue with mine somewhere that i have not quite figured out yet.

 

Will keep everyone posted.

Link to comment

A little follow up on my iStat Server install problem.

 

I am doing this all through the unmenu package manager for reference.  The problem i am seeing is that i only get /mnt/user listed in the istat.conf file for "disks" that are to be monitored.  I am still not quite sure why this is but I did find out something new.  If I edit the config variables (but not really change any of them), then save it, and then re-install with the new values... it seems to work fine.  So i think there is a timing issue with mine somewhere that i have not quite figured out yet.

 

Will keep everyone posted.

Once you have pressed the "Re-Install new values" button there will be a istat-0.5.6.tgz.manual_install file in the /boot/packages directory on your server.

 

It is the set of commands you need.  It is a shell script.  You can re-name it as whatever you like and invoke it in place of the one you are attempting to invoke.  So, you can re-name it as istat.sh and then use it in your "go" script.  Or, you can leave it named as it is and put

/boot/packages/istat-0.5.6.tgz.manual_install

at the end of your "go" script.

 

Since the devices are not likely to be immediately online, you might want to put a sleep delay first to give the array some time to start

Something like this

 

emhttp &                            <-- the existing line that started emhttp

sleep 30                              <-- added line

/boot/packages/istat-0.5.6.tgz.manual_install   <-- added line

Link to comment
  • 2 weeks later...

I installed iStat from unMenu as indicated on the first page but for some reason I don't see any disk drives on my iPhone. Does anyone have any ideas?

Are you using the most current version of unmenu?

 

What did you set as the configuration values?  (I don't own an iPhone, but someone who does might need more clues other than "it don't work")

 

Joe L.

Link to comment

See the link below:

 

http://lime-technology.com/forum/index.php?topic=5204.msg56963#msg56963

 

check out my last post on page 5 and look at the 'istat.conf' setup, basically you need to tell iStat server what disks to monitor. That is all I had to do. Hope this helps.

 

I installed iStat from unMenu as indicated on the first page but for some reason I don't see any disk drives on my iPhone. Does anyone have any ideas?

Link to comment

I'm running unMenu 1.3

 

Here is the list of drives I have added to the iStat config:

/mnt/user /boot /dev/md1 /dev/md2 /dev/md3 /dev/md4 /dev/md5 /dev/md6 /dev/md7 /dev/md8 /dev/md9 /dev/md10 /dev/md11 /dev/md12 /dev/md13 /dev/md14 /dev/md15 /dev/md16 /dev/md17 /dev/md18 /dev/md19 /dev/md20 /dev/sda /dev/sdb /dev/sdc /dev/sdd

 

Also I don't see any fan temps or speeds as well.

 

here is the output of /dev/ location:

lrwxrwxrwx 1 root root           4 Apr 21 19:28 X0R -> null
lrwxrwxrwx 1 root root           4 Apr 21 19:29 XOR -> null
drwxr-xr-x 2 root root         400 Apr 21 19:29 block/
drwxr-xr-x 3 root root          60 Apr 21 19:29 bus/
drwxr-xr-x 2 root root        2500 Apr 21 19:29 char/
crw------- 1 root root      5,   1 Apr 22 09:32 console
lrwxrwxrwx 1 root root          11 Apr 21 19:28 core -> /proc/kcore
drwxr-xr-x 3 root root          60 Apr 21 19:29 cpu/
crw-rw---- 1 root root     10,  63 Apr 21 19:29 cpu_dma_latency
drwxr-xr-x 6 root root         120 Apr 21 19:29 disk/
lrwxrwxrwx 1 root root          13 Apr 21 19:28 fd -> /proc/self/fd/
crw-rw-rw- 1 root root      1,   7 Apr 21 19:29 full
crw-rw-rw- 1 root root     10, 229 Apr 21 19:29 fuse
lrwxrwxrwx 1 root root           5 Apr 21 19:29 hw_random -> hwrng
crw-rw---- 1 root root     10, 183 Apr 21 19:29 hwrng
prw------- 1 root root           0 Aug 30  2008 initctl|
drwxr-xr-x 2 root root          60 Apr 21 19:29 input/
crw-r----- 1 root kmem      1,   2 Apr 21 19:29 kmem
crw-rw---- 1 root root      1,  11 Apr 21 19:29 kmsg
srw-rw-rw- 1 root root           0 Apr 21 19:29 log=
brw-rw---- 1 root disk      7,   0 Apr 21 19:29 loop0
brw-rw---- 1 root disk      7,   1 Apr 21 19:29 loop1
brw-rw---- 1 root disk      7,   2 Apr 21 19:29 loop2
brw-rw---- 1 root disk      7,   3 Apr 21 19:29 loop3
brw-rw---- 1 root disk      7,   4 Apr 21 19:29 loop4
brw-rw---- 1 root disk      7,   5 Apr 21 19:29 loop5
brw-rw---- 1 root disk      7,   6 Apr 21 19:29 loop6
brw-rw---- 1 root disk      7,   7 Apr 21 19:29 loop7
crw-rw---- 1 root lp        6,   0 Apr 21 19:29 lp0
brw-rw---- 1 root disk      9,   1 Apr 21 19:29 md1
brw-rw---- 1 root disk      9,   2 Apr 21 19:29 md2
crw-r----- 1 root kmem      1,   1 Apr 21 19:29 mem
lrwxrwxrwx 1 root root          10 Apr 21 19:29 mouse -> input/mice
crw-rw---- 1 root root     10,  62 Apr 21 19:29 network_latency
crw-rw---- 1 root root     10,  61 Apr 21 19:29 network_throughput
crw-rw-rw- 1 root root      1,   3 Aug 30  2008 null
lrwxrwxrwx 1 root root           3 Apr 21 19:29 par0 -> lp0
crw-r----- 1 root kmem      1,   4 Apr 21 19:29 port
crw-rw---- 1 root root    108,   0 Oct  9  2008 ppp
crw-rw-rw- 1 root tty       5,   2 Apr 22 10:10 ptmx
drwxr-xr-x 2 root root           0 Apr 21 19:28 pts/
crw-rw---- 1 root tty       2,   0 Apr 21 19:29 ptyp0
crw-rw---- 1 root tty       2,   1 Apr 21 19:29 ptyp1
crw-rw---- 1 root tty       2,   2 Apr 21 19:29 ptyp2
crw-rw---- 1 root tty       2,   3 Apr 21 19:29 ptyp3
crw-rw---- 1 root tty       2,   4 Apr 21 19:29 ptyp4
crw-rw---- 1 root tty       2,   5 Apr 21 19:29 ptyp5
crw-rw---- 1 root tty       2,   6 Apr 21 19:29 ptyp6
crw-rw---- 1 root tty       2,   7 Apr 21 19:29 ptyp7
crw-rw-rw- 1 root root      1,   8 Apr 21 19:29 random
crw-r--r-- 1 root root     10, 135 Apr 21 19:29 rtc
brw-rw---- 1 root disk      8,   0 Apr 21 19:29 sda
brw-rw---- 1 root disk      8,   1 Apr 21 19:29 sda1
brw-rw---- 1 root plugdev   8,  16 Apr 21 19:29 sdb
brw-rw---- 1 root plugdev   8,  17 Apr 21 19:29 sdb1
brw-rw---- 1 root disk      8,  32 Apr 21 19:29 sdc
brw-rw---- 1 root disk      8,  33 Apr 21 19:29 sdc1
brw-rw---- 1 root disk      8,  48 Apr 21 19:29 sdd
brw-rw---- 1 root disk      8,  49 Apr 21 19:29 sdd1
drwxr-xr-x 2 root root          40 Sep 22  2008 shm/
lrwxrwxrwx 1 root root          15 Apr 21 19:28 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root          15 Apr 21 19:28 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root          15 Apr 21 19:28 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root tty       5,   0 Apr 22 10:10 tty
crw--w---- 1 root tty       4,   0 Apr 21 19:29 tty0
crw------- 1 root root      4,   1 Apr 21 19:29 tty1
crw--w---- 1 root tty       4,  10 Apr 21 19:29 tty10
crw--w---- 1 root tty       4,  11 Apr 21 19:29 tty11
crw--w---- 1 root tty       4,  12 Apr 21 19:29 tty12
crw--w---- 1 root tty       4,  13 Apr 21 19:29 tty13
crw--w---- 1 root tty       4,  14 Apr 21 19:29 tty14
crw--w---- 1 root tty       4,  15 Apr 21 19:29 tty15
crw--w---- 1 root tty       4,  16 Apr 21 19:29 tty16
crw--w---- 1 root tty       4,  17 Apr 21 19:29 tty17
crw--w---- 1 root tty       4,  18 Apr 21 19:29 tty18
crw--w---- 1 root tty       4,  19 Apr 21 19:29 tty19
crw------- 1 root root      4,   2 Apr 21 19:29 tty2
crw--w---- 1 root tty       4,  20 Apr 21 19:29 tty20
crw--w---- 1 root tty       4,  21 Apr 21 19:29 tty21
crw--w---- 1 root tty       4,  22 Apr 21 19:29 tty22
crw--w---- 1 root tty       4,  23 Apr 21 19:29 tty23
crw--w---- 1 root tty       4,  24 Apr 21 19:29 tty24
crw--w---- 1 root tty       4,  25 Apr 21 19:29 tty25
crw--w---- 1 root tty       4,  26 Apr 21 19:29 tty26
crw--w---- 1 root tty       4,  27 Apr 21 19:29 tty27
crw--w---- 1 root tty       4,  28 Apr 21 19:29 tty28
crw--w---- 1 root tty       4,  29 Apr 21 19:29 tty29
crw------- 1 root root      4,   3 Apr 21 19:29 tty3
crw--w---- 1 root tty       4,  30 Apr 21 19:29 tty30
crw--w---- 1 root tty       4,  31 Apr 21 19:29 tty31
crw--w---- 1 root tty       4,  32 Apr 21 19:29 tty32
crw--w---- 1 root tty       4,  33 Apr 21 19:29 tty33
crw--w---- 1 root tty       4,  34 Apr 21 19:29 tty34
crw--w---- 1 root tty       4,  35 Apr 21 19:29 tty35
crw--w---- 1 root tty       4,  36 Apr 21 19:29 tty36
crw--w---- 1 root tty       4,  37 Apr 21 19:29 tty37
crw--w---- 1 root tty       4,  38 Apr 21 19:29 tty38
crw--w---- 1 root tty       4,  39 Apr 21 19:29 tty39
crw------- 1 root root      4,   4 Apr 21 19:29 tty4
crw--w---- 1 root tty       4,  40 Apr 21 19:29 tty40
crw--w---- 1 root tty       4,  41 Apr 21 19:29 tty41
crw--w---- 1 root tty       4,  42 Apr 21 19:29 tty42
crw--w---- 1 root tty       4,  43 Apr 21 19:29 tty43
crw--w---- 1 root tty       4,  44 Apr 21 19:29 tty44
crw--w---- 1 root tty       4,  45 Apr 21 19:29 tty45
crw--w---- 1 root tty       4,  46 Apr 21 19:29 tty46
crw--w---- 1 root tty       4,  47 Apr 21 19:29 tty47
crw--w---- 1 root tty       4,  48 Apr 21 19:29 tty48
crw--w---- 1 root tty       4,  49 Apr 21 19:29 tty49
crw------- 1 root root      4,   5 Apr 21 19:29 tty5
crw--w---- 1 root tty       4,  50 Apr 21 19:29 tty50
crw--w---- 1 root tty       4,  51 Apr 21 19:29 tty51
crw--w---- 1 root tty       4,  52 Apr 21 19:29 tty52
crw--w---- 1 root tty       4,  53 Apr 21 19:29 tty53
crw--w---- 1 root tty       4,  54 Apr 21 19:29 tty54
crw--w---- 1 root tty       4,  55 Apr 21 19:29 tty55
crw--w---- 1 root tty       4,  56 Apr 21 19:29 tty56
crw--w---- 1 root tty       4,  57 Apr 21 19:29 tty57
crw--w---- 1 root tty       4,  58 Apr 21 19:29 tty58
crw--w---- 1 root tty       4,  59 Apr 21 19:29 tty59
crw------- 1 root root      4,   6 Apr 21 19:29 tty6
crw--w---- 1 root tty       4,  60 Apr 21 19:29 tty60
crw--w---- 1 root tty       4,  61 Apr 21 19:29 tty61
crw--w---- 1 root tty       4,  62 Apr 21 19:29 tty62
crw--w---- 1 root tty       4,  63 Apr 21 19:29 tty63
crw--w---- 1 root tty       4,   7 Apr 21 19:29 tty7
crw--w---- 1 root tty       4,   8 Apr 21 19:29 tty8
crw--w---- 1 root tty       4,   9 Apr 21 19:29 tty9
crw-rw---- 1 root uucp      4,  64 Apr 21 19:29 ttyS0
crw-rw---- 1 root tty       3,   0 Apr 21 19:29 ttyp0
crw-rw---- 1 root tty       3,   1 Apr 21 19:29 ttyp1
crw-rw---- 1 root tty       3,   2 Apr 21 19:29 ttyp2
crw-rw---- 1 root tty       3,   3 Apr 21 19:29 ttyp3
crw-rw---- 1 root tty       3,   4 Apr 21 19:29 ttyp4
crw-rw---- 1 root tty       3,   5 Apr 21 19:29 ttyp5
crw-rw---- 1 root tty       3,   6 Apr 21 19:29 ttyp6
crw-rw---- 1 root tty       3,   7 Apr 21 19:29 ttyp7
crw-rw-rw- 1 root root      1,   9 Apr 21 19:29 urandom
crw-rw---- 1 root root    189,   0 Apr 21 19:29 usbdev1.1
crw-rw---- 1 root root    189,   1 Apr 21 19:29 usbdev1.2
crw-rw---- 1 root root    189, 128 Apr 21 19:29 usbdev2.1
crw-rw---- 1 root root    189, 256 Apr 21 19:29 usbdev3.1
crw-rw---- 1 root root    189, 384 Apr 21 19:29 usbdev4.1
crw-rw---- 1 root root    189, 512 Apr 21 19:29 usbdev5.1
crw-rw---- 1 root tty       7,   0 Apr 21 19:29 vcs
crw-rw---- 1 root tty       7,   1 Apr 21 19:29 vcs1
crw-rw---- 1 root tty       7,   2 Apr 21 19:29 vcs2
crw-rw---- 1 root tty       7,   3 Apr 21 19:29 vcs3
crw-rw---- 1 root tty       7,   4 Apr 21 19:29 vcs4
crw-rw---- 1 root tty       7,   5 Apr 21 19:29 vcs5
crw-rw---- 1 root tty       7,   6 Apr 21 19:29 vcs6
crw-rw---- 1 root tty       7, 128 Apr 21 19:29 vcsa
crw-rw---- 1 root tty       7, 129 Apr 21 19:29 vcsa1
crw-rw---- 1 root tty       7, 130 Apr 21 19:29 vcsa2
crw-rw---- 1 root tty       7, 131 Apr 21 19:29 vcsa3
crw-rw---- 1 root tty       7, 132 Apr 21 19:29 vcsa4
crw-rw---- 1 root tty       7, 133 Apr 21 19:29 vcsa5
crw-rw---- 1 root tty       7, 134 Apr 21 19:29 vcsa6
crw-rw-rw- 1 root root      1,   5 Aug 30  2008 zero

 

PLease can someone help I really like this software.

Link to comment

I'm affraid I can't help you with the disk temperatures and fan speeds (though I'd like to know this too). To clarify, does the portion of yout 'monitor_disk' in your 'istat.conf' file look like this:

 

# Array of disks to monitor. Specify mount path or device name.

monitor_disk             ( shfs /dev/md1 /dev/md2 /dev/md3 /dev/md4 /dev/md5 /dev/md6 /dev/md7 )

 

if you have for example 13 data disks (not 12 data disks a one parity but 13 actual data disks), this 'monitor_disk' line just below the close bracket would end with '/dev/md13 )'

Link to comment

iStat has been working great for me and I really like it.

 

I do have one problem with the .conf file used in the package manager though.  The disks that I have set to monitor are not being picked up correctly on a reboot.  I am not quite sure why, but for whatever reason I only end up with /mnt/user as the only disk to be monitored.

 

Any insight is much appreciated!

I had the same problem, and I think it is a consequence of the following. In the "istat-unmenu-package.conf" you define the array of the disks to be monitored (Disk Devices = vDisk), but later in the same file when these attributes are written to the "/usr/local/etc/istat.conf" file we see this:

 

####

PACKAGE_INSTALLATION echo "monitor_disk ( ${vDISK-/mnt/user} )" >> /usr/local/etc/istat.conf

####

 

Note that there is only "/mnt/user", in addition we have:

 

#####

PACKAGE_INSTALLATION echo "disk_rename_label /mnt/user \"${vUSERLABEL-unRAID}\"" >> /usr/local/etc/istat.conf

#####

 

As a consequence, after reboot and auto_install you see only one drive and it is labeled as unRAID.

 

Maybe Joe could kindly correct this? IN addition, it would be nice to have the "network_addr " as a part of the configurables in the unMenu Package Manager, so one can change it from default "192.168.50.67" to one's own. Otherwise it is copied to "istat.conf" file as it is and the iPhone client cannot find the server. I needed to change this manually by editing the usr/local/etc/istat.conf file.

Could somebody please verify that I am correct?

 

I can certainly change the .conf file. 

 

As far as the syntax you see.  "bash" variables have a syntax where if a variable is not defined, you can use a "default" value.  It is the "-" followed by the default value.

 

Now, what I probably forgot to do was define the initial value.  (or mis-spelled the variable name so they do not match)

 

Let me take a look.

 

Joe L.

Link to comment

img0123hv.jpg  img0124ji.jpg

 

I'm doing some video encoding, hence the heavy load. Mine is also set to show /mnt/user0 as "unRAID," /mnt/cache as "Cache," and /boot as "Flash."

 

Ok update on my issue, uninstalling iStat through unMenu and manually installing iStat through the go script got my drive to show up. Now my question is how can I get my Flash drive to show up as a drive? (i added /boot but it doesn't show up.) Also I would like to show temps like ClunkClunk was able to do, anyone have any ideas what I need to add to my istat.conf file below:

 

#
# /etc/istat.conf: Configuration for iStat server
#

#network_addr 127.0.0.1
network_port           5109
server_code            12345
server_user            istat
server_group           istat
server_socket          /tmp/istatd.sock
server_pid             /var/run/istat/istatd.pid
cache_dir              /var/run/istat/cache

# Note: Only support for one network interface, limited by client.
monitor_net              ( eth0 )

# Set to 1 if you want to use mount path as label instead of the device name.
disk_mount_path_label    1

# Try to probe the filesystem for disk label, will override the mount path label.
disk_filesystem_label    1

# Set custom disk label. Will override all other labels.
# disk_rename_label        /dev/sda1  "root"
# disk_rename_label        /home      "home"
  disk_rename_label		   /mnt/user  "unraid"
  disk_rename_label		   /boot 	  "Flash"

# Array of disks to monitor. Specify mount path or device name.
monitor_disk             ( shfs /dev/md1 /dev/md2 /dev/md3 /dev/md4 /dev/md5 /dev/md6 /dev/md7 /dev/sda /dev/sdb /dev/sdc /dev/sdd)

Link to comment

I can't see the last post of your istat.conf' file properly as I'm reading/writing on the forum on my mobile, but have you included your Flash drive as something like /dev/sda1? On a command prompt on your server run the 'df -h' command and see how your flash drive listed, if it comes up as /dev/sda1 for example, you'll need to put that into your istat.conf' file I guess under monitor_disk section along with any other disks you'd like to monitor too.

Link to comment

Now, what I probably forgot to do was define the initial value.  (or mis-spelled the variable name so they do not match)

Let me take a look.

Joe L.

 

I have removed and reinstalled everything, now everything looks fine. Probably I have messed up with some files during trial and error, ie. you have not done any mis-spelling. Sorry if I have wasted your time. Could you please remove the related quote/note since I have removed the original message in order not to mislead people? Thanks.

Link to comment
  • 8 months later...

How do I configure my iPhone so I can few my server outside of my home network?

 

The easy way is to use port forwarding but then you'll suffer continuous attacks (from China).

 

The safe is to set up a VPN server in your router and use PKI. Your router may still suffer the attacks but you will not see them on your LAN and with PKI none will get through. I don't know if the iPhone can use PKI. The less safe alternative is to use a VPN with a 20 Char random password.

 

I suggest that you rely on e-mail from the server to alert you to problems.

 

Is anyone using port forwarding to access iStat from the Internet?

Link to comment

OK, good point.

 

One other question, instead of seeing /dev/md5 and /dev/md6, can I see Movies and TV Shows?  I changed the 1 to 0 in the config but that didn't seem to change anything.

 

The 1 vs 0 toggle probably will not do what you want, or expected.

 

The default 'Disk Devices' are shown by this code:

||vDISK=/mnt/user /boot /dev/md1 /dev/md2 /dev/md3 /dev/md4 /dev/md5 /dev/md6 /dev/md7 /dev/md8 /dev/md9 /dev/md10 /dev/md11 /dev/md12 /dev/md13 /dev/md14 /dev/md15 /dev/md16 /dev/md17 /dev/md18 /dev/md19 /dev/md20||

 

Now that probably does not mean much to you, but it is what is controlling you seen the /md* devices.  If you would like to see your 'TV Shows' share and 'Movies' then you would need to put in the 'Disk Devices' section something like:

/mnt/user/Movies /mnt/user/TV\ Shows

 

NOTE WITH THE ABOVE EXAMPLE: The 'TV Shows' share may not show up correctly because of the space in its name. I am not sure and I have not tried this myself.

 

If I get a chance to later tonight I will mess with it and see what I can find.

Link to comment
  • 2 weeks later...

today i installed istat via unmenu package manager and set it to auto-reinstall

connecting works perfect

 

i set up in the package manager:

/mnt/user /boot /dev/md1 /dev/md2 /dev/md3 /dev/md4 /dev/md5 /dev/md6 

 

my drives are all shown.

i also managed to edit the package install file with some alias for my drives.

 

the only things that are not working:

- temperature output, like someone mentioned before in this topic

- monitoring specific user shares

 

f.exp:

/mnt/user/Movies /mnt/user /boot /dev/md1 /dev/md2 /dev/md3 /dev/md4 /dev/md5 /dev/md6 

isnt working. maybe its because of the upper case of "Movies"?

 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.