*New 11.3 series Release:
2019-10-05: XigmaNAS 11.3.0.4.6928 - released, 11.2 series are soon unsupported!

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[EXTENSION] Extended GUI

XigmaNAS Extensions / Add-ons

Moderator: crest

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 873
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

[EXTENSION] Extended GUI

#1

Post by crest » 16 Apr 2014 08:27

During many years I was using NAS4Free/XigmaNAS and it's predecessor FreeNAS and I extended the WebGUI and used additional scripts for my needs.
These amendments are packed together in this extension.

At this point I want to thank all developers of NAS4Free for their great work!!!
I also want to give a big Thank You to the users ChriZathens and crowi for their testing, support and feedback!!!

The extension is based on an installation made by alexey123 he made more or less by the way ... Big thanks also to alexey123!!!

The extension affects STATUS | SYSTEM view and serves additional functionality like Samba/CIFS purge, USB drive automount, alarm notifications and history, and many more (a list of all features which are included in this extension one can find below in CONTENT).

The extension
- works on all plattforms (x86 & x64, ARM, embedded & full)
- does not need jail or pkg_add.
- enhance pages of the NAS4Free WebGUI
- features configuration and extension maintenance (update & removal inside the WebGUI)
- let you switch between STANDARD (original) and EXTENDED WebGUI view
- let you easily configure/enable/disable views and additional functions
- is easy to install/uninstall



INSTALLATION

Prior to the installation perform a backup of the N4F configuration via SYSTEM | BACKUP/RESTORE | Download configuration.

This extension can be easily installed with the OneButtonInstaller.

TRANSLATIONS

Extended GUI is on Launchpad - if someone wants to contribute please go to Extended GUI on Launchpad for translation!

DISCLAIMER

This extension is provided AS-IS, I'm NOT responsible for any data loss or damage caused by the use of it, use it solely at your own risk.



CONTENT

DIAGNOSTICS | LOGpage:
- additional log file support

STATUS | SYSTEM (index.php) page:
- compact display with LIVE view for all information - "dashboard" like - without refreshing needed.
- compact disks view (S.M.A.R.T. must be enabled to get temperature and activity) with drive status/temperature and disk/pool capacity warning indicator (optional information via email)
- System warning / error notifications (audible / visual /email / Telegram ) and alarm history for mount point/disk errors/space/temperature, ZFS, CPU and UPS
- disk drive spindown buttons
- buttons for selective unmount of single USB devices
- user defined buttons / functions
- user defined log files
- full support for ZFS pools (displays all drives in a pool)
- display of ZFS Datasets
- display SSDs with lifetime values (percents)
- full support for Software RAID (displays all drives in a raid)
- support/display for temporarly (not via WebGUI) mounted disks (USB disks, Flash drives, ...)
- compact UPS display
- USB Automount: for USB disks, Flash drives and CD/DVDs
- Purge: clean recycle bins of CIFS/SMB shares (.recycle directories) from deleted files
- Function buttons for CIFS/SMB Purge and unmount/remount USB disks
- hide/show CPU usage bar(s)
- hide/show multicore CPU usage bar(s)
- hide/show of CPU load and Network traffic (interface selectable) graphs
- display Operating System (root filesystem as A_OS)
- display /usr/local filesystem (as A_USR)
- display /var filesystem (as A_VAR)
- ZFS busy state indicators for scrubing and resilvering
- display of logged in users (SSH, FTP, SMB/CIFS -> user/ip@/port) (optional login/logout information via email)
- Network hosts monitor (editable definition of network and host part), display IP@s and host names (as defined in /etc/hosts)
- display of services/service status
- hide/show function buttons row
- audible alarms for Extended GUI (optional - for users login/out, USB drives mount/unmount/errors, CPU temperature, ZFS errors, HDD/mount point errors)
- editable CPU temperature warning levels
- editable disk temperature warning levels
- editable disk free space warning levels
- editable graph show and refresh time
- Telegram support
- disk free space threshold warning notifications (via email/Telegram) (optional)
- CPU temperature threshold warning notifications (via email/Telegram) (optional)
- ZFS pool degraded warning notifications (via email/Telegram) (optional)
- user login/logout warning notifications (via email/Telegram) (optional)
- TOOLS section in EXTENSIONS | EXTENDED GUI includes:
  • User defined action buttons for STATUS | SYSTEM and additional log file support for DIAGNOSTICS | LOG
  • CIFS/Samba recycle bin Purge
  • USB Automount


VERSION HISTORY

Version 0.7.0.1 - 2018.09.23
C: improved checks for firmware upgrade
C: updated Greek translation
C: updated Swedish translation
C: updated Ukrainian translation

Version 0.7 - 2018.08.25
C: index.php: Page base: r5962
N: add Telegram support for system notifications as well as for CLI & scripting use
N: add curl binary as prerquesite for Telegram (curl can be used also for CLI & scripting use)
N: STATUS | SYSTEM: additional button for auto-mounted USB devices for selective unmount of single devices
N: STATUS | SYSTEM: services display row (each 'enabled' service will be monitored) for built-in services and extensions
N: Extended GUI | CONFIGURATION: add hosts check type, can be 'parallel' ping, 'sequentiell' ping or 'ARP' (experimental)
N: Extended GUI | CONFIGURATION: Telegram configuration section for warning notifications
N: Extended GUI | CONFIGURATION: services monitoring/warning notifications
N: Extended GUI | CONFIGURATION: user authentication error monitoring/notifications
N: System notifications: ZFS scrub/resilvering monitoring/notifications
N: System notifications: monitoring/notifications for missing HDDs and mountpoints
N: Czech translation
N: Kurdish translation
N: Turkish translation
C: updated English translation
C: updated German translation
C: updated Greek translation
C: updated Italian translation
C: updated Russian translation
C: updated Swedish translation
C: updated Ukrainian translation
C: USB Automount: improvements for recognition of the first USB device driver
C: STATUS | SYSTEM: improvements for temperature display and services display, user defined action buttons appear now in one row
C: remove patched diag_log.php since search is now included in 11.x series of N4F
C: update patched diag_log.inc to 11.x series format
C: logs.inc: user defined sample log file updated to 11.x format, includes UPS, ProFTP file transfer and Webserver examples
C: user, disks, hosts, services checks upgrades for Telgram notifications
F: GUI translations not working due to name change to XigmaNAS
F: STATUS | SYSTEM: correct CPU temperatur display in Safari browser => viewtopic.php?f=71&t=6405&p=77353#p77300
F: STATUS | SYSTEM: display of ZFS space
F: DIAGNOSE | LOG: table column display
F: System notifications: beep on 'CPU temperature error' only working if email notification is enabled
F: System notifications: message output of degraded ZFS pool

Version 0.6.2 - 2017.03.13
C: index.php: Page base: 4040
N: Extended GUI: CPU Multicore Usage Bars View Type - selectable as dynamic, one-column or two-column view type
N: STATUS | SYSTEM: CPU Core Usage bars according to CPU Multicore Usage Bars View Type
N: Catalan translation
C: updated Russian translation
C: STATUS | SYSTEM: updated text strings
C: improvements for System Calls Service and eGUI startup

Version 0.6.1 - 2017.02.27
This version is PHP 7.1 (introduced with N4F release 11.0.0.4.3882) aware
C: index.php: Page base: 3956
C: make extension PHP 7.1 aware
N: Extended GUI | TOOLS: new section => User Defined Files
N: Extended GUI | TOOLS: inclusion of user defined action buttons definitions file for STATUS | SYSTEM implemented
N: Extended GUI | TOOLS: inclusion of user defined logs definitions file for DIAGNOSE | LOG implemented
N: Extended GUI | TOOLS: logs & button samples (UPS and Webserver log, Plex Start/Stop example action buttons)
N: STATUS | SYSTEM: user defined action buttons implemented
N: DIAGNOSE | LOG: user defined logs implemented
N: Swedish translation
N: Ukrainian translation
C: updated Dutch translation
C: updated French translation
C: updated German translation
C: updated Greek translation
C: updated Spanish translation
C: updated Copyrights
C: STATUS | SYSTEM: CPU multicore display as in NAS4Free release 3330
F: STATUS | SYSTEM: => https://www.nas4free.org/forums/viewtop ... bb8#p75461
F: STATUS | SYSTEM: SSD Lifetime for Intel SSDs => viewtopic.php?f=71&t=6405&p=74468#p74321
F: STATUS | SYSTEM: SSD Lifetime for Plextor SSDs => https://www.nas4free.org/forums/viewtop ... bb8#p75727
F: STATUS | SYSTEM: empty CPU and LAN graphs => viewtopic.php?f=71&t=6405&p=74468#p74321
F: STATUS | SYSTEM: display of FTP user

Version 0.6 - 2016.12.10
N: command scripts rc format for NAS4Free 11.x compatibility
N: dedicated config file for Extended GUI to prevent problems during firmware upgrades
N: Extended GUI | CONFIGURATION: new switch => System notifications
N: Extended GUI | CONFIGURATION: new switch => Standby buttons
N: STATUS | SYSTEM: System notifications => popup & alarm history display for disk space / temperature, ZFS, CPU & UPS errors
N: STATUS | SYSTEM: drives spindown buttons => viewtopic.php?f=71&t=6405&start=390#p68719
N: STATUS | SYSTEM: include user defined buttons / functions => check for existing file buttons.inc in Extended GUI root directory
N: DIAGNOSE | LOG: include user defined log files => check for existing file logs.inc in Extended GUI root directory
C: index.php: Page base: 3305
C: Extended GUI | CONFIGURATION: removed Status | Graph view
C: removed compatibility code for older NAS4Free revisions < 10.3
F: improvements for Extended GUI startup to prevent problems during firmware upgrades
F: display error during scrubing / resilvering
F: SMART temperatures => partial for ada3 => viewtopic.php?f=71&t=6405&start=420#p69954
F: SMART temperatures => viewtopic.php?f=71&t=6405&start=420#p69662
F: SMART temperatures => viewtopic.php?f=71&t=6405&start=390#p68162
F: Pools duplication => viewtopic.php?p=66903#p66903
F: Pools duplication => viewtopic.php?f=71&t=6405&start=390#p67189
F: Dataset names => viewtopic.php?f=71&t=6405&start=390#p68026
F: Dataset names => viewtopic.php?f=71&t=6405&start=420#p70077

Version 0.5.3 - 2016.07.24
*******************************************************************************************
ATTENTION: version 0.5.3 and higher needs at least NAS4Free 10.3.0.3.2853
*******************************************************************************************
C: index.php: Page base: 2898
F: index.php: not updating on 10.3.0.3.2853 and higher
N: index.php: support for second UPS

Version 0.5.2.1 - 2016.03.31
C: index.php: Page base: 2451
C: index.php: new image path, compatible with releases < 2451
C: updated Greek translation
C: updated Russian translation

********************************************************************************************************************************
WARNING: version 0.5.2 shall only be used with N4F r2407 and newer due to massive changes in system code of r2407
older N4F releases must stay on Extended GUI v0.5.1.2, sorry for this inconvenience !
********************************************************************************************************************************
Version 0.5.2 - 2016.03.17
C: index.php: Page base: 2407
C: USB Automount - further improvements
N: STATUS | SYSTEM - USB Automount refreshes index.php to display newly mounted devices
N: STATUS | SYSTEM - display SSDs with lifetime values (percents)
N: STATUS | SYSTEM - display ZFS datasets
N: introduced language support
N: Dutch translation
N: French translation
N: German translation
N: Greek translation
N: Italian translation
N: Romanian translation
N: Russian translation
N: Spanish translation
F: index.php -> Fatal error: Cannot redeclare get_disk_usage() - due to changes in system code of r2332

Extended GUI 0.5.1.2 is fully compatible with N4F 10.2-r2115, 10.1 and 9.3 series!
Version 0.5.1.2 - 2015.12.02
C: index.php: Page base: 2118
C: index.php: added function html_textinfo and class HTMLTextInfo for compatibility reasons (9.3 and older 10.x releases) => viewtopic.php?f=71&t=6405&start=300#p62756
F: avoid multiple SSH entries if CIFS/SMB is disabled => viewtopic.php?f=71&t=6405&start=300#p62779

Version 0.5.1.1 - 2015.11.29
C: updated index.php to Page base: 2115
C: USB Automount - further improvements
C: USB Automount - description and prerequisite:
- loader.conf: fuse_load YES
- rc.conf: fusefs_enable YES
F: USB Automount - activation in WebGUI must recreate CONFIG2
F: USB devices and root, var and usr filesystems were not displayed on systems only with ZFS -> viewtopic.php?f=71&t=6405&start=150#p45291
F: save new command script path for updates with backuped config.xml

Version 0.5.1 - 2015.11.26
N: Web installer (new Extension Maintenance Tab for extension update / removal)
N: CPU temperature monitoring and reporting - monitor CPU temps and optional email reporting like degraded pools etc.
N: buzzer for degraded pools, CPU temperatures, button to clear alarms on STATUS | SYSTEM
N: spinner for USB Automount and CIFS/SMB purge on STATUS | SYSTEM
N: STATUS | SYSTEM - pool busy states (scrub, resilver) live display with tooltip (shows progress ...)
N: STATUS | SYSTEM - display /usr/local filesystem (as A_USR)
N: added Raspberry Pi to supported architecture
N: USB Automount: sysid 255 - exFAT - experimental !!!
N: USB Automount - take care of CD/DVDs -> no need to manage/mount CD/DVDs manually
C: USB Automount - allow disks without 'YourMountpointName.mounted' file, but stays though optional
C: updated diag_log.inc & index.php to Page base: r2067
C: STATUS | SYSTEM - correct display of disk columns
C: STATUS | SYSTEM - display USB mounted devices
C: STATUS | SYSTEM - display Operating System (root filesystem as A_OS)
C: STATUS | SYSTEM - display /var filesystem (as A_VAR)
C: STATUS | SYSTEM - display temporarely mounted USB devics -> USB Automount
F: degraded pool reporting

Version 0.5.0.1 - 2015.10.08
F: (some) disk SMART values were not shown correctly in rare/special cases

Version 0.5 - 2015.10.04
This is a new release which includes full N4F 10.x support (removed all dependencies of system files so it should be save for future os versions) and a complete redesigned logic which reduces disk accesses to an absolute minimum, especially to avoid unneccesary disk access at every refresh.
N: STATUS | SYSTEM - support for all RAID variants
N: combined Install / Update option
N: check if SMB / FTP are enabled to prevent error messages and lags
N: autodetect config.xml change
N: USB Automount: new sysid 6
C: installer: always take the current installation directory as rootfolder -> for restored config.xml
C: take care of systems without ZFS pools
C: clogdir for CONFIG, notifications.log etc
F: STATUS | GRAPH - take care about installed RRDGraphs extension
F: Purge - change file find from mtime (modification time) to atime (access time)
NOTE: the display of Operating System (root filesystem as A_OS) and /var filesystem (as A_VAR) is not yet implemented, will come with the next release!

Extended GUI 0.4.4.4 and below are intended for N4F 9.1 and 9.2 series but NOT for 10.x and 9.3 series!
Version 0.4.4.4 - 2015.01.06
FIX: STATUS | SYSTEM - support .eli encrypted devices -> viewtopic.php?f=71&t=6405&p=48538#p48361
FIX: STATUS | SYSTEM - Network hosts monitor, search for whole IP@ for correct display
FIX: USB Automount: drives with more than one partition
NEW: USB Automount: new sysid 12
CHANGED: STATUS | SYSTEM - UPS display for UPS slave
CHANGED: STATUS | SYSTEM - CPU temperatures in one row
CHANGED: STATUS | SYSTEM - Users monitor, display user names in color

Version 0.4.4
NEW: TOOLS section in EXTENSIONS | EXTENDED GUI for Purge and USB Automount
NEW: Purge: clean recycle bins of CIFS/SMB shares (.recycle directories) from deleted files
NEW: USB Automount: for USB disks and Flash drives
NEW: STATUS | SYSTEM - Function buttons
- Purge 1 day
- unmount/remount USB disks
NEW: STATUS | SYSTEM - display Operating System (root filesystem as A_OS)
NEW: STATUS | SYSTEM - display /var filesystem (as A_VAR)
NEW: STATUS | SYSTEM - enable/disable LAN graph
NEW: STATUS | SYSTEM - show disk temperatures even if disks are in standby (enable/disable experimental switch in configuration)
NEW: audible alarms for Extended GUI (optional - for users login/out, USB drives mount/unmount/errors)
CHANGED: STATUS | SYSTEM - Network hosts monitor, display IP@s AND host names (as defined in /etc/hosts)
FIX: STATUS | SYSTEM - support ZFS .nop devices
FIX: STATUS | SYSTEM - check for special case -> zvol from jail

Version 0.4.3.3
NEW: ZFS degraded warning email -> in case of degraded pools you can optionally get a warning email
NEW: STATUS | SYSTEM - Network hosts monitor -> get (ping) information which hosts are up (in a free configurable network range)
NEW: EXTENSIONS | EXTENDED GUI - system calls service status
NEW: save/restore notification log for embedded systems
CHANGED: STATUS | SYSTEM - disk space warning logic now based on used size AND used percent (usefull for systems with mixed big and small drives)
FIXED: DIAGNOSTICS | INFORMATION | DISKS: temperature shows allways n/a (started with N4F release 9.2.0.1-943)
FIXED: STATUS | SYSTEM - rowspan calculation for CPU temperature
FIXED: STATUS | SYSTEM - supports now ZFS pools on gpt partitions and device labels -> thanks to user ava1ar

Version 0.4.3.1
Initial public release

N: ... new feature
C: ... changes
F: ... bug fix



SCREENSHOTS

coming soon ...



ANY FEEDBACK / COMMENTS / IDEAS ARE APPRICIATED!!!

Regards
crest
Last edited by crest on 30 Aug 2016 06:49, edited 63 times in total.
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

dundermiflin
Starter
Starter
Posts: 30
Joined: 12 Oct 2013 14:11
Status: Offline

Re: [EXTENSION] Extended GUI

#2

Post by dundermiflin » 16 Apr 2014 09:14

ABSOLUTELY AWESOME !!!!!!.......

GREAT GREAT GREAT !!!!!!! :shock: :shock: :shock:

User avatar
crowi
Forum Moderator
Forum Moderator
Posts: 1184
Joined: 21 Feb 2013 16:18
Location: Munich, Germany
Status: Offline

Re: [EXTENSION] Extended GUI

#3

Post by crowi » 16 Apr 2014 10:13

The thanks go back to you CREST, for this great piece of extension :-D

Cheers,
crowi
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded

dundermiflin
Starter
Starter
Posts: 30
Joined: 12 Oct 2013 14:11
Status: Offline

Re: [EXTENSION] Extended GUI

#4

Post by dundermiflin » 16 Apr 2014 10:34

Help with this error please :

Image

I've looked into LOGS but I can't find anything, and now I can't mod or create any users

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 873
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] Extended GUI

#5

Post by crest » 16 Apr 2014 11:30

dundermiflin wrote:Help with this error please :
I've looked into LOGS but I can't find anything, and now I can't mod or create any users
This shouldn't have to do with the extension but you can easily check it. Switch to STANDARD view in the config page of the extension and save it. Then all WebGUI pages are the original one. If the problem persists then it must be something wrong with the user configuration (Error 1).

Regards
crest
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

dundermiflin
Starter
Starter
Posts: 30
Joined: 12 Oct 2013 14:11
Status: Offline

Re: [EXTENSION] Extended GUI

#6

Post by dundermiflin » 16 Apr 2014 12:16

crest wrote:
dundermiflin wrote:Help with this error please :
I've looked into LOGS but I can't find anything, and now I can't mod or create any users
This shouldn't have to do with the extension but you can easily check it. Switch to STANDARD view in the config page of the extension and save it. Then all WebGUI pages are the original one. If the problem persists then it must be something wrong with the user configuration (Error 1).

Regards
crest

the problem persist......can you provide some help ??

adduser, rmuser, and pw does not work in my SSH (seems they are not not installed)

User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 833
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Re: [EXTENSION] Extended GUI

#7

Post by ChriZathens » 16 Apr 2014 12:57

Congratulations once more, Crest!!!
One minor glitch (with the version from this post):

When disks are on standby, n/a shows normally next to "| Temp:"
Screen Snaper Image1.jpg
But if it can retrieve the temperature, then the degrees show in a new line
Screen Snaper Image.jpg
You do not have the required permissions to view the files attached to this post.
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S

Backup Nas: HP N40L (4x1TB HP branded Seagate disks in RaidZ configuration - 8GB ECC RAM)

User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 833
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Re: [EXTENSION] Extended GUI

#8

Post by ChriZathens » 16 Apr 2014 13:45

EDIT: This does not happen on my backup NAS, though.. :?

This is my main NAS
removed broken images

And the backup:
removed broken images

Go figure.... :(
Since I initially tried to upgrade the extension, and even after uninstall and reinstall it did not fix the issue, I uninstalled once more and I am rebooting my main NAS now (embedded, so all will be lost)
I will then install again and report back

EDIT2: After uninstalling the extension, rebooting the machine, installing again, the result is the same on my main NAS: the temp shows in a new line
Did the same on my backupNAS temps show as they should

Their only difference, as far as i can tell, is the fact that my main NAS has 2 pools, while the backup Nas only has 1 pool.. (The difference regarding the test version is the cosmetic change of the line between the pools. Perhaps there lies the bug somewhere??)
Last edited by ChriZathens on 16 Apr 2014 14:43, edited 1 time in total.
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S

Backup Nas: HP N40L (4x1TB HP branded Seagate disks in RaidZ configuration - 8GB ECC RAM)

User avatar
crowi
Forum Moderator
Forum Moderator
Posts: 1184
Joined: 21 Feb 2013 16:18
Location: Munich, Germany
Status: Offline

Re: [EXTENSION] Extended GUI

#9

Post by crowi » 16 Apr 2014 14:25

Strange..
Did you adjust the window size on the pre-release of the xtension?
Just tried if this happens on my machine as well.

Woke up the sleeping disks from standby/temp n.a. to:
exgui01.png
works...
You do not have the required permissions to view the files attached to this post.
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded

User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 833
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Re: [EXTENSION] Extended GUI

#10

Post by ChriZathens » 16 Apr 2014 14:46

I edited the previous post. On my main NAS there are two pools while on my BackupNAS (which displays correctly), I have only one pool
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S

Backup Nas: HP N40L (4x1TB HP branded Seagate disks in RaidZ configuration - 8GB ECC RAM)

xuesheng
Starter
Starter
Posts: 64
Joined: 23 Jun 2012 10:56
Status: Offline

Re: [EXTENSION] Extended GUI

#11

Post by xuesheng » 16 Apr 2014 14:56

Thank you for this extension, crest!

I had no trouble installing it on my embedded 64-bit NAS4Free 9.2.0.1 (revision 943) system.

The new STATUS page is a big improvement over the standard NAS4Free page. The extra information in the "Disk Space Usage" section is very useful.

User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 833
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Re: [EXTENSION] Extended GUI

#12

Post by ChriZathens » 16 Apr 2014 15:33

OK, just snooped a bit into the code and it appears that the addition of the line between the two pools is not the fault for this glitch..
I will keep searching...
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S

Backup Nas: HP N40L (4x1TB HP branded Seagate disks in RaidZ configuration - 8GB ECC RAM)

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 873
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] Extended GUI

#13

Post by crest » 16 Apr 2014 15:45

I am currently out. Will look at it at the evening ...
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 833
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Re: [EXTENSION] Extended GUI

#14

Post by ChriZathens » 16 Apr 2014 16:06

No hurries.
I have another feature request for you... :oops:
Checkbox to display UPS status...
And a tiny correction : in extended gui config page temperatur instances are missing an e
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S

Backup Nas: HP N40L (4x1TB HP branded Seagate disks in RaidZ configuration - 8GB ECC RAM)

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 873
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] Extended GUI

#15

Post by crest » 17 Apr 2014 08:53

Thank you guys for your feedback :D :D :D

@ChriZathens: I fixed the problem with the line wrap at the temperature column and yes, it happend through the last 'cosmetic' changes ;) (different behaviour with different browsers, I suppose you use Chrome?) fixed the typo and included the UPS request so that it will be only displayed if UPS is enabled. The changed version (0.4.3.1) is uploaded to my original post, so please update it and it should work correct now ...

@dundermiflin: I assume you tried to create users before and it was successful? which version/system of N4F (full/embedded) do you use?
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 833
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Re: [EXTENSION] Extended GUI

#16

Post by ChriZathens » 17 Apr 2014 12:30

Yeap!
All is fixed now!
Thanks again! Once more, you rock, man!
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S

Backup Nas: HP N40L (4x1TB HP branded Seagate disks in RaidZ configuration - 8GB ECC RAM)

User avatar
crowi
Forum Moderator
Forum Moderator
Posts: 1184
Joined: 21 Feb 2013 16:18
Location: Munich, Germany
Status: Offline

Re: [EXTENSION] Extended GUI

#17

Post by crowi » 17 Apr 2014 17:54

I just can agree to CriZathens statement:
Thanks again! Once more, you rock, man!
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 498
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

bugreport

#18

Post by MikeMac » 17 Apr 2014 20:48

crest wrote:The changed version (0.4.3.1) is uploaded to my original post
Thank you for interesting extention!

At my system there are two problems

Image

First is purely cosmetic - I have mounted second partition of system flash (embedded installation). One is 98% free, but total partition size is less then 5 Gb
So GUI shows red warning.
I suppose, logic for warning should be the folowing: free space is less then 5Gb (per user choise) AND less then 10% (per user choise)

second one is connected with my zfs pool (raidz2 on SAS controller)
Image

Or, may be it is due to I prefer pool on gpt partitions

Code: Select all

nas4free ~/ root~$ zpool status Pool
  pool: Pool
 state: ONLINE
  scan: scrub repaired 0 in 8h9m with 0 errors on Mon Mar  3 06:14:04 2014
config:

        NAME                STATE     READ WRITE CKSUM
        Pool                ONLINE       0     0     0
          raidz2-0          ONLINE       0     0     0
            gpt/D_Z300V843  ONLINE       0     0     0
            gpt/D_Z300W3TK  ONLINE       0     0     0
            gpt/D_W300DZ5A  ONLINE       0     0     0
            gpt/D_W300E0RC  ONLINE       0     0     0
            gpt/D_Z30053GL  ONLINE       0     0     0
            gpt/D_Z300PRXX  ONLINE       0     0     0
            gpt/D_Z300V7PE  ONLINE       0     0     0
            gpt/D_Z300V7AV  ONLINE       0     0     0

errors: No known data errors 
You do not have the required permissions to view the files attached to this post.

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 873
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: bugreport

#19

Post by crest » 18 Apr 2014 08:10

Thank you for trying the extension :D
MikeMac wrote: I suppose, logic for warning should be the folowing: free space is less then 5Gb (per user choise) AND less then 10% (per user choise)
Yes, makes sense. I will change the logic according to your proposal.
MikeMac wrote: second one is connected with my zfs pool (raidz2 on SAS controller)

Or, may be it is due to I prefer pool on gpt partitions

Code: Select all

nas4free ~/ root~$ zpool status Pool
  pool: Pool
 state: ONLINE
  scan: scrub repaired 0 in 8h9m with 0 errors on Mon Mar  3 06:14:04 2014
config:

        NAME                STATE     READ WRITE CKSUM
        Pool                ONLINE       0     0     0
          raidz2-0          ONLINE       0     0     0
            gpt/D_Z300V843  ONLINE       0     0     0
            gpt/D_Z300W3TK  ONLINE       0     0     0
            gpt/D_W300DZ5A  ONLINE       0     0     0
            gpt/D_W300E0RC  ONLINE       0     0     0
            gpt/D_Z30053GL  ONLINE       0     0     0
            gpt/D_Z300PRXX  ONLINE       0     0     0
            gpt/D_Z300V7PE  ONLINE       0     0     0
            gpt/D_Z300V7AV  ONLINE       0     0     0

errors: No known data errors 
Yes, that's the reason. Would you mind to send me the <zfs><vdevices> and <zfs><pools> part of your config.xml file so that I can change the extensions to cover also gpt partitions.
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

User avatar
ava1ar
NewUser
NewUser
Posts: 9
Joined: 18 Apr 2014 08:16
Location: New York City, USA
Status: Offline

Re: [EXTENSION] Extended GUI

#20

Post by ava1ar » 18 Apr 2014 08:22

Hi, crest!

Great extension! Thanks for bringing one more nice extension on NAS4Free!

I have same issue as MikeMac (I have pool on labels) and spent some time today to digg into the problem and make a patch to solve it. You can get it here: https://dl.dropboxusercontent.com/u/451 ... _gpt.patch. It was tested on my home setup with labels and VM setup with gpt partitions and looks like working fine. I also shared it with MikeMac - he has gpt-based setup and can test it on real hardware.

Steps to apply the patch:
1. Go to the extension folder
2. Get the patch:

Code: Select all

fetch https://dl.dropboxusercontent.com/u/4514366/label_gpt.patch
3. Apply the patch:

Code: Select all

patch < ./label_gpt.patch
4. Run

Code: Select all

extended-gui-install.php
and select "Update Extended GUI".
5. Navigate to GUI and refresh the status page.

Patch definitely requires more testing (i.e. it will not probably work on pool on gpt partitions without labels), but hopefully you will find it useful!
NAS: NAS4Free 9.2.0.1 - Shigawire (revision 972) x64 embedded
HP MicroServer N40L: RAID-Z1 on 5xWD20EFRX 2Tb (Red series), KVR1333D3E9SK2/16G, HP NC360T Dual Port Gigabit Ethernet Card (with LAGG on), HP MicroServer Remote Access Card

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 873
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] Extended GUI

#21

Post by crest » 18 Apr 2014 08:53

ava1ar wrote:Hi, crest!

Great extension! Thanks for bringing one more nice extension on NAS4Free!

I have same issue as MikeMac (I have pool on labels) and spent some time today to digg into the problem and make a patch to solve it. You can get it here: https://dl.dropboxusercontent.com/u/451 ... _gpt.patch. It was tested on my home setup with labels and VM setup with gpt partitions and looks like working fine. I also shared it with MikeMac - he has gpt-based setup and can test it on real hardware.
Great :D
Thank you for your contribution and the guide how to use the patch. I am curious if this works on MikeMac's setup.

I thought to go the way to get the devices from the config, therefore I wanted to get the zfs parts from his setup - perhaps this would cover all pools either they are using labels or not ... :?:
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

chrisf4lc0n
Advanced User
Advanced User
Posts: 265
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: [EXTENSION] Extended GUI

#22

Post by chrisf4lc0n » 18 Apr 2014 10:26

You are truly my Guru crest :)
Watercooling is just the beginning ;)

User avatar
crowi
Forum Moderator
Forum Moderator
Posts: 1184
Joined: 21 Feb 2013 16:18
Location: Munich, Germany
Status: Offline

Re: [EXTENSION] Extended GUI

#23

Post by crowi » 18 Apr 2014 11:28

HI Crest,

now it's getting weird but I have another feature request :-D
Is it possible to combine the view of the extended gui to dw5304's Nas4free console:
viewtopic.php?f=4&t=15

:oops:

That would be the ultimate killer... :-D

Cheers,
Crowi
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded

LrdBate
NewUser
NewUser
Posts: 14
Joined: 02 Jun 2013 11:18
Status: Offline

Re: [EXTENSION] Extended GUI

#24

Post by LrdBate » 18 Apr 2014 11:57

just a thumbs up from here, really cool work :D

Thanks Crest!

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 498
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: bugreport

#25

Post by MikeMac » 18 Apr 2014 18:37

crest wrote:Would you mind to send me the <zfs><vdevices> and <zfs><pools>

Code: Select all

	<zfs>
		<vdevices>
			<vdevice>
				<uuid>5360346d-7b2e-4f12-bdd5-adceb0ac85ab</uuid>
				<name>Pool_raidz2_0</name>
				<type>raidz2</type>
				<device>/dev/gpt/D_Z300V843</device>
				<device>/dev/gpt/D_Z300W3TK</device>
				<device>/dev/gpt/D_W300DZ5A</device>
				<device>/dev/gpt/D_W300E0RC</device>
				<device>/dev/gpt/D_Z30053GL</device>
				<device>/dev/gpt/D_Z300PRXX</device>
				<device>/dev/gpt/D_Z300V7PE</device>
				<device>/dev/gpt/D_Z300V7AV</device>
				<desc/>
			</vdevice>
			<vdevice>
				<uuid>5136e0e1-c149-42e3-8a11-48abe80229e8</uuid>
				<name>WD2T_disk_1</name>
				<type>disk</type>
				<device>/dev/ada0</device>
				<desc/>
			</vdevice>
		</vdevices>
<pools>
			<pool>
				<uuid>58605b2a-4935-461e-a69f-b835e08b554a</uuid>
				<name>Pool</name>
				<vdevice>Pool_raidz2_0</vdevice>
				<root/>
				<mountpoint/>
				<desc/>
			</pool>
			<pool>
				<uuid>4a661828-6e9c-4132-ba6d-77a40504e1e9</uuid>
				<name>WD2T</name>
				<vdevice>WD2T_disk_1</vdevice>
				<root/>
				<mountpoint/>
				<desc/>
			</pool>
		</pools>
crest wrote:I am curious if this works on MikeMac's setup.
Partially :) You see, a bit of improbement, a bit of degradation
Image
You do not have the required permissions to view the files attached to this post.

User avatar
ava1ar
NewUser
NewUser
Posts: 9
Joined: 18 Apr 2014 08:16
Location: New York City, USA
Status: Offline

Re: [EXTENSION] Extended GUI

#26

Post by ava1ar » 18 Apr 2014 21:20

MikeMac, thanks for feedback - it helped me to find a bug in my patch and fix it. Updated patch is available using same link. Here are examples of how it works:

Pool on RAW drives

Code: Select all

nas4free: ext # zpool status Pool2
  pool: Pool2
 state: ONLINE
  scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        Pool2       ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
            ada3    ONLINE       0     0     0
            ada4    ONLINE       0     0     0
            ada5    ONLINE       0     0     0

errors: No known data errors
pool2.jpg
Pool on GPT partitions

Code: Select all

nas4free: ext # zpool  status Pool
  pool: Pool
 state: ONLINE
  scan: none requested
config:

        NAME            STATE     READ WRITE CKSUM
        Pool            ONLINE       0     0     0
          raidz1-0      ONLINE       0     0     0
            gpt/DISK_1  ONLINE       0     0     0
            gpt/DISK_2  ONLINE       0     0     0
            gpt/DISK_3  ONLINE       0     0     0

errors: No known data errors
pool1.jpg
Pool on device labels

Code: Select all

nas: extgui # zpool status data
  pool: data
 state: ONLINE
  scan: scrub repaired 0 in 12h36m with 0 errors on Wed Apr 16 12:37:52 2014
config:

        NAME              STATE     READ WRITE CKSUM
        data              ONLINE       0     0     0
          raidz1-0        ONLINE       0     0     0
            label/zdisk1  ONLINE       0     0     0
            label/zdisk2  ONLINE       0     0     0
            label/zdisk3  ONLINE       0     0     0
            label/zdisk4  ONLINE       0     0     0
            label/zdisk5  ONLINE       0     0     0

errors: No known data errors
pool3.jpg
So, pool drives detection works fine now in all three cases (raw disks, labels, gpt partitions). No SMART data and temp for firsts and second drives displayed, because this are virtual drives in VIrtualBox, third case is from my home NAS.
You do not have the required permissions to view the files attached to this post.
NAS: NAS4Free 9.2.0.1 - Shigawire (revision 972) x64 embedded
HP MicroServer N40L: RAID-Z1 on 5xWD20EFRX 2Tb (Red series), KVR1333D3E9SK2/16G, HP NC360T Dual Port Gigabit Ethernet Card (with LAGG on), HP MicroServer Remote Access Card

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 498
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: [EXTENSION] Extended GUI

#27

Post by MikeMac » 18 Apr 2014 22:04

Now patch works, thank you!
But there is cosmetic problem with LAN/CPU graphs
Image

User avatar
ava1ar
NewUser
NewUser
Posts: 9
Joined: 18 Apr 2014 08:16
Location: New York City, USA
Status: Offline

Re: [EXTENSION] Extended GUI

#28

Post by ava1ar » 18 Apr 2014 23:39

Thanks, MikeMac.

Problem with graphs is not related to disks/pools. Issue is caused by wrong rowspan value for td, where graph is displayed (in your case it is 16, but should be 15). The logic, which is responsible for this calculation is in files/index.php lines 325-332. I suspect the issue caused by temperature related lines. In the GUI, only data from one sensor is displayed (temperature if not empty else temperature2 if not empty), but in your extension if both temperature and temperature2 are not empty, you will increase rowcounter twice, but in GUI only one row will be displayed. This is causing graph display issue MikeMac is reporting.

@crest

I suggest replacing lines

Code: Select all

if (!empty($cpuinfo['temperature'])) { ++$rowcounter; }
if (!empty($cpuinfo['temperature2'])) { ++$rowcounter; }
with

Code: Select all

if (!empty($cpuinfo['temperature']) || !empty($cpuinfo['temperature2'])) { ++$rowcounter; }
This should solve the issue.
Last edited by ava1ar on 19 Apr 2014 08:36, edited 1 time in total.
NAS: NAS4Free 9.2.0.1 - Shigawire (revision 972) x64 embedded
HP MicroServer N40L: RAID-Z1 on 5xWD20EFRX 2Tb (Red series), KVR1333D3E9SK2/16G, HP NC360T Dual Port Gigabit Ethernet Card (with LAGG on), HP MicroServer Remote Access Card

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 873
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] Extended GUI

#29

Post by crest » 19 Apr 2014 08:05

Thanks again folks :D

@Crowi: ... not at all, I thought of a kind of Monitor already and this will come but before I would like to finish my list of what I wanted to integrate to the extension ...

@ava1ar: thanks a lot for fixing this issue that fast !!! I will integrate the patch and fix the issue with the rowspan thing ...

Easter time will slow down the next steps a bit, so stay tuned ... ;)
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

User avatar
ava1ar
NewUser
NewUser
Posts: 9
Joined: 18 Apr 2014 08:16
Location: New York City, USA
Status: Offline

Re: [EXTENSION] Extended GUI

#30

Post by ava1ar » 19 Apr 2014 08:34

@crest

No problem, this was just my little help for your great job! Actually, MikeMac confirmed, that issue was caused due to temperatures lines - I shared patch with him (replacing 2 temperatures lines with one, as I wrote above). I believe he will report back after applying the patch.
NAS: NAS4Free 9.2.0.1 - Shigawire (revision 972) x64 embedded
HP MicroServer N40L: RAID-Z1 on 5xWD20EFRX 2Tb (Red series), KVR1333D3E9SK2/16G, HP NC360T Dual Port Gigabit Ethernet Card (with LAGG on), HP MicroServer Remote Access Card

Post Reply

Return to “Extensions / Add-ons”