Could 'napp-it' be adapted as a Web GUI for Mac?

Moderators: jhartley, MSR734, nola

Could 'napp-it' be adapted as a Web GUI for Mac?

Post by chriswayg » Mon Nov 05, 2012 4:47 am

napp-it is a nice open source web GUI for zfs on Solaris based OSs written in perl and running on Apache. Could it be adapted (minus the Solaris specific bits) to use as a management interface on Mac? Has anybody tried it? It seems to support version 28 pools and has some nice features. What do you think?

http://www.napp-it.org/index_en.html
A manually installable version is here: http://www.napp-it.org/doc/downloads/napp-it-0.8l3.zip

Chris
chriswayg Offline


 
Posts: 19
Joined: Sun Nov 04, 2012 8:27 am

Re: Could 'napp-it' be adapted as a Web GUI for Mac?

Post by grahamperrin » Mon Nov 05, 2012 10:59 am

Interesting, thanks.

A parallel topic: ZFSguru interface to ZFS on OS X

Neither the current nor the archived list for MacZFS mentions napp-it (comparatively: only one significant mention of ZFSguru).

Maybe useful, http://www.napp-it.org/downloads/mac_en.html

napp-it core on OSX

it should run as a tool to build a Web-UI

but i have no time to build at least a basic version (system, user, services)
if you can maintain such a version, see community
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: Could 'napp-it' be adapted as a Web GUI for Mac?

Post by chriswayg » Mon Nov 05, 2012 2:49 pm

Maybe I'll try this next, then: http://napp-it.com/manuals/web-gui/index.html, as the author wrote:
i have not the time to build base napp-it appliances for unix, mac or windows, but it should run if you have a webserver installed and cgi/perl enabled.


Edit: Well I tried it, but I didn't as far as with ZFSguru. It seems to be installed in the right (/var/web-gui/wwwroot/) location (according to the readme.txt), and Apache is configured accordingly. Added a napp-it user and added that to sodoers. Also checked that perl is working in webroot/.

But the main script gives an error and no web GUI:
(2)No such file or directory: exec of '/var/web-gui/wwwroot/cgi-bin/napp-it/admin.pl' failed
Premature end of script headers: admin.pl :?

Running it with a proper debugger like Komodo's to find out which files it cannot find should help, but I won't have time to set that up.

Now one reason could be, that it cannot find a file which the readme instructs to install: 'install mbuffer -> copy folder tools/mbuffer to /' Now mbuffer is not on my system and the included binary is a Solaris binary.

The author writes: 'Napp-it is a copy and run web application. Copy and run means, you just have to copy napp-it to your cgi-bin folder ... and set permissions of napp-it folder to 777 recursively...
...
1. napp-it core files in ..cgi-bin/napp-it/ admin.pl and admin-lib.pl
you will only need these two files to have napp-it running. napp-it will create all other needed folder on first login.'

This makes it sound quite easy, and somehow it should run. Any suggestions what else to try?
chriswayg Offline


 
Posts: 19
Joined: Sun Nov 04, 2012 8:27 am


Return to General Discussion

Who is online

Users browsing this forum: Bing [Bot] and 1 guest