Need tests : nethserver-linux-dash

(Stéphane de Labrusse) #1

I’m working on a tiny module based on [linux-dash][1], to monitor in real time what’s happening in your nethserver. it is based on php scripts, available on a git remote repository and each time you launch the event signal-event nethserver-linux-dash-update you will update it.

yum install

First only admin is allowed but you can add more users, linux-dash is restricted to the local network, but you can open it to the www if you want.

# config show linux-dash 
  • add more users (at first only admin is allowed)

    config setprop linux-dash Users user1,user2,user2
    signal-event nethserver-linux-dash-update

  • allow it to www (public/private)

    config setprop linux-dash access public
    signal-event nethserver-linux-dash-update

  • stop the web service (enabled/disabled)

    config setprop linux-dash status disabled
    signal-event nethserver-linux-dash-update

  • change the url name
    config setprop linux-dash Name plop
    signal-event nethserver-linux-dash-update

After that you can see your server-activity (bandwithd, cpu, nethwork, accounts…) in real time, go to https://IP/linux-dash (if you don’t have changed the url) or go to dashboard->applications->linux-dash (think to set a password to the admin user)

(Roberto Sitzia) #2

Really interesting @stephdl thank you.

I like NethServer dashboard but sometimes it is too static, what you have adjusted seems to be a good hint.
Theorically every section of NethServer’s dashboard should be dynamic but with different refresh typology: by time interval, by event.
I think that there are technical limitations but, for instance:

  • backup section should refreshed/updated by event (post backup)
  • hardware related sections by time interval or in real time as in linux-dash

A refresh spot like the one in linux-dash (top right corner) could be a good start.

(Stéphane de Labrusse) #3

Thank for your interest, I thought that for now it is lacking for Neth some monitoring modules and if possible easy to take in hand…nagios, cactus, zabbiz can’t be used by all guys on this earth, and at least they need some end customisation after the installation. I have done a little module like that with glances, but glances can’t be password protected before september 2015 :frowning: Of course i’m speaking about the web glances.

Therefore I’m also looking after Munin, it is quite simple, written in Perl (I do love Perl) I want to have a go on it but if you know other monitoring solutions, I listen you

I’m the maintainer of sme9admin and I do know the work I put inside, only to adapt from sme8admin, I don’t want to maintain a contrib like that, it is too much time consuming, I would prefer use something already done :stuck_out_tongue:

Just for a matter of interest I have corrected a bug concerning the https redirection if you change the url Name and the cleaning of linux-dash folder, please upgrade or reinstall as the first post.

(Alessio Fattorini) #4

Like it, very useful for those who do not like the shell. It’s a nice overview of my system, particularly appreciated the panel ping speed

(Stéphane de Labrusse) #5

Personnally the killer feature is the bandwithd in real time but i have not tested it in real gateway environment.

Does all nics are found by the web app

(Giacomo Sanchietti) #6

I like it, it’s very simple and readable!

And I agree with you that the dashboard is a too static, but it’s quite hard to implement something more dynamic taking care of the modular behavior.

Just for the record, NethServer already have two statistics modules:

  • nethserver-ntopng for network traffic (including bandwidth in real time)
  • nethserver-cgp + nethserver-collectd for any other kind of metrics

(Stéphane de Labrusse) #7

Clap, Clap felicitation, it is really nice

i would add that with collectd you have two web applications, you can test them

  • nethserver-collectd-web (I love this one)
  • nethserver-cgp

If I can advice it could bring good values if with these web applications , you can add :

  • be password protected to users
  • allow public access if enabled
  • force https redirection

that could be a good training for someone who aims to be developer.

(Alessio Fattorini) #8

I moved 2 posts to a new topic: What do you think about cockpit?