Control Panel Plugin v3.2.1



Recommended Posts

I always want to be able to manage all plugins in a single page. For this goal i start to develop a WebGui page but it goes beyond my plan :) . So:

This a plugin to manage all known (working) plugins on a single page like plugin manager.

 

Features:

- start, stop, restart, update apps&plgs.

- Installation status of plg

- running status of plg

- app & plg versions both remote & local if possible in the original plg.

- related last x lines of (configurable in cfg file) syslog lines.

- *new* open syslog in new window

- last x lines of (configurable in cfg file) app specific log (if exists) lines.

- *new* open app specific log in new window

- link to the plugin console/gui

- link to the developers forum link.

- link to plugins settings page.

- hide not installed plgs

- download plgs

- install/reinstall plgs

- version check and update for control panel

- output section for logs & standart output (expandable)

 

Integrated Plugins:

Plugin NameAuthorLatest Tested Version        Comment

- Sick Beard (Influencer) 2.4

- Transmission (Influencer) 1.6

- BTSync (overbyrn) 1.6

- OpenSSH (overbyrn) 1.3a

- Denyhosts (overbyrn) 1.2a

- Serviio (mayhem2408) 1.2.1

- *new* MySQL Server *beta* (ikosa)0.2.2- Extended Integration -

- MySQL Server (p1lot) 20130227- Limited Integration -

- Apc Ups Daemon (SeeDrs) 3.14.3

- Cache Directories (mayhem2408) 1.6.7

- VSFTP

- SABnzbd (Influencer) 2.5.3

- Couch Potato (Influencer) 2.3.6

- Gate One (overbyrn) 1.0b

- Plex Media Server (spidi)

- Plex Updater (Benni-Chan) 1.7

- Dropbox (overbyrn) 1.3a

- OpenVPN Server (Peter_sm) 1.1.25

- *new* Air Video Media Player *beta* (overbyrn)1.2a

- *new* OpenVPN Client *beta* (Peter_sm)2.7.20

- *new* Subsonic *beta* (jangjong)4.8-6.0jj

- *new* Headphones *beta* (Influencer)2.5.1

- *new* XBMC Salud *beta* (bobbintb)1.2

- *new* VirtualBox *alpha* (theone)0.5.2- i couldn't install completely to test -

- *new* Beets Music Tagger *beta* (overbyrn)1.4b

- *new* Logitech Media Server *beta* (overbyrn)1.6a- aka Squeezebox, SlimServer and SqueezeCenter -

- *new* NZBGet *beta* (overbyrn)1.6a

- *new* shellinabox *beta* (prostuff1)0.2

- *new* tvheadend *alpha* (WW)0.2- no dvb card: not tested deeply -

- *new* ProFTPD *beta* (SlrG)0.5g

- *new* HTPC Manager *beta* (Influencer)1.0

- *new* Maraschino *beta* (Influencer)1.1

- *new* CrashPlan *beta* (SeeDrs)0.2

- *new* CrashPlan GUI *beta* (cleight)1.0.9

- *new* Swap File *beta* (theone)0.5.3

- *new* Dynamic DNS *beta* (Benni-chan)0.98.1-1

- *new* TeamSpeak3 *beta* (WARLOCK)0.7

- *new* MiniDLNA *beta* (Bagpuss)1.0

- *new* YAMJ *beta* (theone)0.3.2

 

 

- *new* uTorrent *beta* (p4xel)0.3.7

- *new* Darkstat *beta* (Influencer)1.0

- *new* Mylar *beta* (Influencer)1.2

- *new* Gamez *beta* (Influencer)1.2

- *new* Newznab *alpha* (Influencer)1.2.3- can't run it to test -

- *new* Logmein Hamachi *alpha* (cleight)1.0.5- can't run it properly to test -

- *new* iStat Server *beta* (ajax3712)1.1

- *new* LazyLibrarian *beta* (WW)0.1

- *new* EncFs *alpha* (nick5429)0.1-beta- can't test it deeply -

- *new* PlexConnect *beta* (sacretagent)1.0.4

- *new* pyLoad *beta* (botez)0.4

- *new* MP3FS *beta* (Zeron)0.32.3

- *new* S.N.A.P *beta* (dlandon)1.3

- *new* MovieGrabber *beta* (binhex)1.0.0

 

If you know any other working plugin I'll try to add.

 

Download Link:

Download Plugin

 

Installation:

1) download the file to /boot/config/plugins
2a) Run "installplg /boot/config/plugins/control_panel-ikosa.plg" via telnet-session
or
2b) Reboot

 

Changelog

v3.2.1
- plugin settings page link fixed
- to fix broken links icons hosted in dropbox

v3.2.0
- utorrnet icon link fix (thanks to sacretagent)
- Reinstall Plugin function added.

v3.1.0
- extended support for S.N.A.P (thanks very much dlandon for making this possible)
- control panel icon link moved to dropbox

-v3.0.0
- a new look
- option to sort by name
- added MP3FS support (limited)
- added S.N.A.P support (limited)
- added MovieGrabber support
- minor fix for openvpn client install check
- plex self log changed to Plex Media Server.log

v2.5.0
- added uTorrent support
- added Darkstat support
- added Mylar support
- added Gamez support
- added Newznab support (cant run it to test)
- added Logmein Hamachi support (cant run it properly to test)
- added iStat Server support
- added LazyLibrarian support
- added EncFs support (cant test it deeply)
- added PlexConnect support
- added pyLoad support

v2.4.1
- install check fix for virtualbox

v2.4.0
- added Swap File support
- added Dynamic DNS support
- added TeamSpeak3 support
- added MiniDLNA support
- added YAMJ support
- some major fixes for virtualbox

v2.3.1
- file existance check added for selflogs
- crashplangui selflog changed to crashplan selflog
- shellinaboxs syslog commented to prevent refreshing

v2.3.0
- added Logitech Media Server (aka Squeezebox, SlimServer and SqueezeCenter) support
- added NZBGet support
- added shellinabox support
- added tvheadend support (no dvb card: not tested deeply)
- added ProFTPD support
- added HTPC Manager support
- added Maraschine support
- added CrashPlan support
- added CrashPlan GUI support
- some plugins install check logic changed to look php files instead of cfg files
- VsFTPD install check logic changed because ProFTPD crash that logic when installed
- VsFTPD icon changed because ProFTP removes it when installed

v2.2.1
- dropbox icon link fixed
- Plex Plg file exist issue fixed

v2.2.0
- added mysql (ikosa) support
- added Air Video Media Player support
- added Open Vpn Client support
- added Subsonic support
- added Headphones support
- added XBMC Salud support
- added VirtualBox support (alpha because i couldn't test it)
- added Beets Music Tagger support
- some changes made to the old version of mysql plugin to identify and non working options disabled
- added wildcard support in plugin file name, when installing and existance checking.
- logic order fix for app & plg version check
- now added support for serviio's both flash & cache versions, script decides itself the version by looking is there a cache mount point or not.
- last two columns order changed inorder to match version cloumns
- remote version check moved to dropbox because of the contruction in wiki page
- download link changed
- sickbeard install check method changed
- serviio install check method changed inorder to match all versions
- support for long version info added (like sicbeard & headphones)
- app logs path added to the header section
- new feature: open app log in new window
- new featrue: open syslog in new window

v2.1.0
- added Plex Media Server support
- added Plex Updater support
- added Dropbox support
- added OpenVPN Server support
- Control Panel icon and forum link added
- fix missing Gate One icon when not installed
- Denyhosts daemon log replaced with hosts restricted
- cmd outputs now seen both on progressframe and control panel log section
- some cosmetic touches to get the same look in stock gui, SF and new webGui
- link to settings page added to text "Installed"
- tooltip added for forum thread link
- added install check for syslog and app specific log to fix "cat : no such file" error on terminal screen
- command added to create control_panel.log file to fix "cat : no such file" error 
- some other minor and forgotten fixes

V2.0.2:
- transmission app version added
- unknown cmds changed to not available
- serviio plg link fixed
- mysql plg link removed
- log option added to download commands
- now not installed plgs also have icons

v2.0.1:
- webgui port fix for non standart users (other than 80)
- donwload link changed (2.0.0 users will see an unknown version update)

v2.0.0:
- new feature: download plgs
- new feature: install plgs
- new feature: version check and update for control panel
- output section added for logs & standart output
- added Gate One support
- configuration section added to change settings in control_panel.cfg file
- table is now created by a loop
- minor fix about undefined constant php error
- undefined variable errors fixed
- added "not available" expression to app&plg versions that are not defined in the original plg
- added "not available" expression to app log that are not defined
- added vsftp local app version
- vsftp running status defined
- icon link changed
- plugin link moved to dropbox for easy update
- And other minor fixes

v1.2.1:
- fix file not found error for users with apcupsd package without plugin.

v1.2:
- added SABnzbd support(beta)
- added Couch Potato support(beta)
- file not found bug fix for not installed plugins
- some bug fixing about app update check
- some fixes for new webGui including vstfp.page parse error
- vsftp icon path fix for new webGui

v1.1:
- most of the variables defination bind to plg installation status
- new feature: hide not installed plgs (old users add this line to control_panel.cfg file 'SHOW_UNINSTALLED="NO"')
- some html errors corrected
- forum link moved to plg name
- controls hided if plg not installed
- author line hided if plg not installed

 

Known Issues: (if you know smtg about these, pls let me know)

Known Issues:
- IE10 empty cells borders missing
- IE10 forum link opens in new window not in new tab
- serviio start & restart buggy (same as in the original plg at least for me)
- cache directories start cmd is buggy (same as in the original plg at least for me)
- Maraschino version file not exists for a reason and update app button shows unnecesseryly
- shellinabox causes control panel to refresh nonstop. (there is a syslog entry have scrpit tag in it)
- manual refresh needed after start & restart of SNAP

 

PS: This is my first plugin. I'm not an expert on linux or unraid plugin development and I inspired some talented developers (named above) plugins. All credit goes to them.

 

And also dont forget that this is a developing plugin that can have errors in it. However it is not likely to have any harmfull errors because this plugin basicly uses the original plugins commands/codes. Use it with your own risk.

 

Appearance with new webGui:

new_webgui_resized.jpg

 

Appearance with stock webGui:

stock_gui_resized.jpg

Link to comment
  • Replies 240
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Doesn't seem to play well with the new WebGUI.. otherwise it looks very promising....

 

Warning: parse_ini_file(/boot/config/plugins/serviio/serviio-webui.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 49 Warning: parse_ini_file(/usr/local/emhttp/plugins/serviio/Serviio.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 64 Warning: parse_ini_file(/boot/config/plugins/transmission/transmission.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 68 Warning: parse_ini_file(/usr/local/emhttp/plugins/transmission/transmission.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 83 Warning: parse_ini_file(/boot/config/plugins/apcupsd/apcupsd.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 86 Warning: parse_ini_file(/usr/local/emhttp/plugins/apcupsd/apcupsd.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 100 Warning: parse_ini_file(/boot/config/plugins/denyhosts/denyhosts.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 115 Warning: parse_ini_file(/usr/local/emhttp/plugins/denyhosts/denyhosts.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 132 Warning: parse_ini_file(/boot/config/plugins/ssh/ssh.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 136 Warning: parse_ini_file(/usr/local/emhttp/plugins/ssh/ssh.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 153 Warning: parse_ini_file(/boot/config/plugins/mysql/mysql.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 157 Warning: parse_ini_file(/usr/local/emhttp/plugins/mysql/mysql.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 161 Warning: parse_ini_file(/usr/local/emhttp/plugins/mysql/mysql.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 174 Warning: Error parsing

 

Link to comment

Thanks for good comments.

 

Doesn't seem to play well with the new WebGUI.

 

i didn't install the new WebGui yet. So i didn't test with it :(

But logs seems strange... if this is the case all plugins have to gave the same error.

did you try before upgrading the webgui?

Link to comment

Thanks for good comments.

 

Doesn't seem to play well with the new WebGUI.

 

i didn't install the new WebGui yet. So i didn't test with it :(

But logs seems strange... if this is the case all plugins have to gave the same error.

did you try before upgrading the webgui?

 

I removed the new WEBGUI and still got the same errors. I'm running RC16C. Couchpotatoe, sab, btsync, cachedirs, sickbard and plex addons if that helps troubleshoot any.

Link to comment

I removed the new WEBGUI and still got the same errors. I'm running RC16C. Couchpotatoe, sab, btsync, cachedirs, sickbard and plex addons if that helps troubleshoot any.

 

i guess it is about the plugins that is not installed. it cant find the config and page files of these plugins.

i try to simulate your situation but cant get these errorrs. Where did you get these errors?

Link to comment

I removed the new WEBGUI and still got the same errors. I'm running RC16C. Couchpotatoe, sab, btsync, cachedirs, sickbard and plex addons if that helps troubleshoot any.

 

i guess it is about the plugins that is not installed. it cant find the config and page files of these plugins.

i try to simulate your situation but cant get these errorrs. Where did you get these errors?

 

when I click on the icon in the settings page...

Link to comment

it doesnt'work for me too in a sense that i don't have all the plugins installed

so maybe the script should check first if the plugin is installed before scraping info and trying to show that non existing data ??

 

also sabnzbd and other influencers plugins are missing ....

 

here are the errors i get

 

Warning: parse_ini_file(/boot/config/plugins/btsync/btsync.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 27 Warning: parse_ini_file(/usr/local/emhttp/plugins/btsync/btsync.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 45 Warning: parse_ini_file(/boot/config/plugins/serviio/serviio-webui.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 49 Warning: parse_ini_file(/usr/local/emhttp/plugins/serviio/Serviio.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 64 Warning: parse_ini_file(/boot/config/plugins/transmission/transmission.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 68 Warning: parse_ini_file(/usr/local/emhttp/plugins/transmission/transmission.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 83 Warning: parse_ini_file(/boot/config/plugins/apcupsd/apcupsd.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 86 Warning: parse_ini_file(/usr/local/emhttp/plugins/apcupsd/apcupsd.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 100 Warning: parse_ini_file(/boot/config/plugins/denyhosts/denyhosts.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 115 Warning: parse_ini_file(/usr/local/emhttp/plugins/denyhosts/denyhosts.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 132 Warning: parse_ini_file(/boot/config/plugins/ssh/ssh.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 136 Warning: parse_ini_file(/usr/local/emhttp/plugins/ssh/ssh.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 153 Warning: parse_ini_file(/boot/config/plugins/mysql/mysql.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 157 Warning: parse_ini_file(/usr/local/emhttp/plugins/mysql/mysql.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 161 Warning: parse_ini_file(/usr/local/emhttp/plugins/mysql/mysql.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 174 Warning: Error parsing /usr/local/emhttp/plugins/webGui/FTP.page on line 6 in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 212

 

attached screenshot

control_panel.JPG.bec8f1d1df739f94b6066b7540354a75.JPG

Link to comment

it doesnt'work for me too in a sense that i don't have all the plugins installed

so maybe the script should check first if the plugin is installed before scraping info and trying to show that non existing data ??

 

yes it seems like thats the problem & i make the neccessry changes but sickbeard has an exception. To figure out what to do with sickbeard I m trying to simulate the errors you got. but can't. May be it is related to the browser. Which browsers did you test with?

I m testing with chrome 28, firefox 23 and IE 10

 

also sabnzbd and other influencers plugins are missing ....

soon i want to add sabnzbd, couch patato and maybe plex support but i need testers for these plugins.

Link to comment

google chrome -> Version 28.0.1500.95 m

firefox -> 22.0

 

 

all same outcome...

i don't mind testing but note i have 2 servers so some apps are on one server and the other one on the other server

aka movies /music apps and mysql are on the movies server which is on 12 hours a day

and tv stuff and downloaders (utorrent and sabnzbd ) are on the 24/24 running tv server

 

Link to comment

sacretagent & Bitz69 can you test the attached version.

i expect just serviio and sickbeard errors if not installed.

if so i ll update the file at the first post after deciding how to handle these 2 plgs exceptions.

 

PS:note that hiding not installed plgs feature is added.

delete boot\config\plugins\control_panel.cfg file before install

or add line below to the control_panel.cfg

SHOW_UNINSTALLED="YES"

control_panel_ikosa.txt

Link to comment

better :)

 

still have one parse error for servio

 

Warning: parse_ini_file(/boot/config/plugins/serviio/serviio-webui.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 56 Warning: Error parsing /usr/local/emhttp/plugins/webGui/FTP.page on line 6 in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 242

 

will install it in an hour on my other server too to see how it does there :)

 

Link to comment

sacretagent & Bitz69 can you test the attached version.

i expect just serviio and sickbeard errors if not installed.

if so i ll update the file at the first post after deciding how to handle these 2 plgs exceptions.

 

 

Warning: parse_ini_file(/boot/config/plugins/serviio/serviio-webui.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 56 Warning: parse_ini_file(/boot/config/plugins/apcupsd/apcupsd.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 104 Warning: parse_ini_file(/usr/local/emhttp/plugins/apcupsd/apcupsd.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 116 Warning: Error parsing /usr/local/emhttp/plugins/webGui/FTP.page on line 6 in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(61) : eval()'d code on line 242

 

Still have these Faults.

Link to comment

Still have these Faults.

 

is apcupsd installed? seedrs' plugin or just the package from unmenu/manual?

is simple features installed?

it's installed through unmenu. and as of 1.2 I only get these now,,

 

Warning: parse_ini_file(/boot/config/plugins/apcupsd/apcupsd.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/control_panel/control_panel.php on line 119 Warning: parse_ini_file(/usr/local/emhttp/plugins/apcupsd/apcupsd.page): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/control_panel/control_panel.php on line 131

Link to comment

It passed the install check because Apcupsd package is installed  but the plugin is not installed so some needed files are missing.

There must be some users in your condition installed just the package not the plugin and also not simple features.

I 'll put another control for this situation on next version.

 

Sent from my HTC Desire using Tapatalk 4

 

 

Link to comment

It passed the install check because Apcupsd package is installed  but the plugin is not installed so some needed files are missing.

There must be some users in your condition installed just the package not the plugin and also not simple features.

I 'll put another control for this situation on next version.

 

Sent from my HTC Desire using Tapatalk 4

It is fully installed.  It just happens to be installed via unMenu's package manager instead of using a plugin.

 

You should probably be checking for the existence of .plg files in /boot/plugins and /boot/config/plugins to figure out what ones they have installed.

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.