[Plugin] Network Stats


dorgan

Recommended Posts

3 minutes ago, Migz93 said:

Sorry, I should've mentioned that initially.

6.10.0-rc1 so likely just an issue with the latest version of Unraid.

Yeah looks like that may be the case.  Unfortunately anytime I have upgraded to 6.10.0-rc1 my plex server starts to have issues playing my media files that are nfs mounted from my unraid box.  Unraid shows no io issues or cpu issues, but the load on my plex machine goes through the roof, and a simple downgrade to 6.9.2 fixes it, so I havent tried it for a 4th time yet, as I was waiting for the next RC to come out.

Edited by dorgan
Link to comment
  • 3 weeks later...

With the release of unraid 6.10-rc2 I took a leap and upgraded my server and was able to determine the issue.  It seems with 6.10 there are a bunch of dependancies that have been removed from unraid as they aren't used.  I've mentioned this in the unraid 6.10-rc3 forum post and it seems a further conversation is really needed around plugin dependency management.  I'll bump this again with them to see how I/we can go about fixing this without me just added all these additional system libraries to this plugin.  For now on my system I am utilizing the User Scripts plugin to execute the following script when the system starts up, which then gets the images working again.

 

The other thing I can do, is look into is parsing the text data that is available and creating my own images instead of vnstati, or just provide the table output.

 

Anyways, here is the script:

#!/bin/bash
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/l/gd-2.2.1-x86_64-1.txz
upgradepkg --install-new gd-2.2.1-x86_64-1.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/fontconfig-2.11.1-x86_64-2.txz
upgradepkg --install-new fontconfig-2.11.1-x86_64-2.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/l/harfbuzz-1.2.7-x86_64-1.txz
upgradepkg --install-new harfbuzz-1.2.7-x86_64-1.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/l/freetype-2.6.3-x86_64-1.txz
upgradepkg --install-new freetype-2.6.3-x86_64-3_slack14.2.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/libXpm-3.5.11-x86_64-2.txz
upgradepkg --install-new libXpm-3.5.11-x86_64-2.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/libX11-1.6.3-x86_64-2.txz
upgradepkg --install-new libX11-1.6.3-x86_64-2.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/libxcb-1.11.1-x86_64-1.txz
upgradepkg --install-new libxcb-1.11.1-x86_64-1.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/libXau-1.0.8-x86_64-2.txz
upgradepkg --install-new libXau-1.0.8-x86_64-2.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/libXdmcp-1.1.2-x86_64-2.txz
upgradepkg --install-new libXdmcp-1.1.2-x86_64-2.txz

 

Edited by dorgan
  • Like 1
Link to comment
  • 1 month later...
  • 1 month later...
On 12/30/2021 at 8:04 AM, xxx59712 said:

I got the following error on boot:

 

/bin/bash: line4: download_install: command not found
vnstatd: no process found

 

Is there a way to fix that?

 

Thanks.

 

Following up on this as i have the same issue!

Link to comment
  • 3 weeks later...
Posted (edited)

currently because of dependency changes from 6.9 to 6.10, this plugin isnt fully working by itself at least the image outputs arent.  in order to fix the outputs you would have to install the missing dependencies.  After discussion with others i dont think this plugin should do dependency management for this because of the dependencies its needs.  That being said here is a scrip tthat you can run install stall the missing dependencies.

 

#!/bin/bash
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/l/gd-2.2.1-x86_64-1.txz
upgradepkg --install-new gd-2.2.1-x86_64-1.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/fontconfig-2.11.1-x86_64-2.txz
upgradepkg --install-new fontconfig-2.11.1-x86_64-2.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/l/harfbuzz-1.2.7-x86_64-1.txz
upgradepkg --install-new harfbuzz-1.2.7-x86_64-1.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/l/freetype-2.6.3-x86_64-1.txz
upgradepkg --install-new freetype-2.6.3-x86_64-1.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/libXpm-3.5.11-x86_64-2.txz
upgradepkg --install-new libXpm-3.5.11-x86_64-2.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/libX11-1.6.3-x86_64-2.txz
upgradepkg --install-new libX11-1.6.3-x86_64-2.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/libxcb-1.11.1-x86_64-1.txz
upgradepkg --install-new libxcb-1.11.1-x86_64-1.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/libXau-1.0.8-x86_64-2.txz
upgradepkg --install-new libXau-1.0.8-x86_64-2.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/libXdmcp-1.1.2-x86_64-2.txz
upgradepkg --install-new libXdmcp-1.1.2-x86_64-2.txz

 

Edited by dorgan
Fixing typo
  • Like 4
Link to comment
  • 3 weeks later...

Installing the dependencies worked for me. There is however a typo in the above script which has to do with the install of freetype-2.6.3. Find the line below in the above script and you will notice it's slightly off from what I've shown below. Replace that line with what I've included below.

 

It will now install all dependencies properly or you can install freetype after the script has run by itself. Look at the install output in your terminal and notice that freetype has not installed properly.

 

upgradepkg --install-new freetype-2.6.3-x86_64-1.txz

 

If you're doing it after running the script, then just use this at the command line. Then refresh the browser window and the graphs should show up.

 

#!/bin/bash
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/l/freetype-2.6.3-x86_64-1.txz
upgradepkg --install-new freetype-2.6.3-x86_64-1.txz

 

Edited by outrigger999
  • Like 4
Link to comment
  • 1 month later...
  • 1 month later...

Hey Guys,

 

installed the dependencies. 

but didnt changes the view. 

 

Quote
On 3/11/2022 at 7:36 PM, dorgan said:
https://slackware.uk/slackware/slackware64-14.2/slackware64/x/libXau-1.0.8-x86_64-2.txz

 

is there any thing else to do ?

 

Link to comment

Here is the updated 'script"

 

#!/bin/bash
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/l/gd-2.2.1-x86_64-1.txz
upgradepkg --install-new gd-2.2.1-x86_64-1.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/fontconfig-2.11.1-x86_64-2.txz
upgradepkg --install-new fontconfig-2.11.1-x86_64-2.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/l/harfbuzz-1.2.7-x86_64-1.txz
upgradepkg --install-new harfbuzz-1.2.7-x86_64-1.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/l/freetype-2.6.3-x86_64-1.txz
upgradepkg --install-new freetype-2.6.3-x86_64-1.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/libXpm-3.5.11-x86_64-2.txz
upgradepkg --install-new libXpm-3.5.11-x86_64-2.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/libX11-1.6.3-x86_64-2.txz
upgradepkg --install-new libX11-1.6.3-x86_64-2.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/libxcb-1.11.1-x86_64-1.txz
upgradepkg --install-new libxcb-1.11.1-x86_64-1.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/libXau-1.0.8-x86_64-2.txz
upgradepkg --install-new libXau-1.0.8-x86_64-2.txz
wget https://slackware.uk/slackware/slackware64-14.2/slackware64/x/libXdmcp-1.1.2-x86_64-2.txz
upgradepkg --install-new libXdmcp-1.1.2-x86_64-2.txz

 

  • Like 1
Link to comment
  • 3 weeks later...

Now that we are on the cusp of 6.11 stable being released, this plugin will probably get marked as being incompatible with OS versions 6.10.0+

 

On 3/11/2022 at 1:36 PM, dorgan said:

i dont think this plugin should do dependency management for this because of the dependencies its needs. 

 

The truth of the matter is that on 6.10 the dependencies don't exist, and need to be installed.  The current method chosen (have the user manually install the dependencies) would be more or less akin to Unassigned Devices (or even worse UD+) not including the extra packages they require and asking the user to install them manually themself.

 

If a plugin requires something not included in the OS, then it really should install it and not force the user to do package management themself.

  • Upvote 2
Link to comment
  • 2 weeks later...
On 7/31/2022 at 6:28 AM, Squid said:

Now that we are on the cusp of 6.11 stable being released, this plugin will probably get marked as being incompatible with OS versions 6.10.0+

 

 

The truth of the matter is that on 6.10 the dependencies don't exist, and need to be installed.  The current method chosen (have the user manually install the dependencies) would be more or less akin to Unassigned Devices (or even worse UD+) not including the extra packages they require and asking the user to install them manually themself.

 

If a plugin requires something not included in the OS, then it really should install it and not force the user to do package management themself.

Yup these links are going to keep changing. Would be best to wrap them into the app or find a repo that's going to keep them static with periodic updates. Still a useful plugin but definitely needs some massaging to work.

Link to comment
On 8/18/2022 at 1:35 AM, nullr1 said:

Yup these links are going to keep changing. Would be best to wrap them into the app or find a repo that's going to keep them static with periodic updates. Still a useful plugin but definitely needs some massaging to work.

So viewing anything to do with viewing living network information won't be coming from your group anymore, correct? I have been trying to check NETDATA but having small problems setting it up. When I load it, it only shows 10 minutes of history. I would want to see history of course. Is there a way NETDATA can pick a point date/day and start accumulating there and use the array to hold the data? Or, there could be another program out there. Soom I will be re-replacing all old 6g hardware with 12G hardware, higher end network lines and better quality everything. Maybe there is a better type "NETDATA? out there, or possible a whole new type of program.

 

Link to comment

I have now marked this plugin as being deprecated across all versions of the OS.  If at some point in the future @dorgan includes the required packages needed to run this plugin and does his own package management without forcing the user to sort it all out, this deprecation will be reversed.

 

If you already have this plugin installed, then be aware that you are doing your own package management, and there is always the possibility that whatever packages you are manually installing to run this plugin may (or may not) have adverse affects on the OS.  It is entirely up to you whether or not to uninstall this plugin and revert whatever package management scripts you may have been using.

  • Like 1
Link to comment
11 hours ago, Squid said:

I have now marked this plugin as being deprecated across all versions of the OS.  If at some point in the future @dorgan includes the required packages needed to run this plugin and does his own package management without forcing the user to sort it all out, this deprecation will be reversed.

 

If you already have this plugin installed, then be aware that you are doing your own package management, and there is always the possibility that whatever packages you are manually installing to run this plugin may (or may not) have adverse affects on the OS.  It is entirely up to you whether or not to uninstall this plugin and revert whatever package management scripts you may have been using.

Thanks

 

Link to comment
On 8/21/2022 at 12:02 PM, Squid said:

I have now marked this plugin as being deprecated across all versions of the OS.  If at some point in the future @dorgan includes the required packages needed to run this plugin and does his own package management without forcing the user to sort it all out, this deprecation will be reversed.

 

If you already have this plugin installed, then be aware that you are doing your own package management, and there is always the possibility that whatever packages you are manually installing to run this plugin may (or may not) have adverse affects on the OS.  It is entirely up to you whether or not to uninstall this plugin and revert whatever package management scripts you may have been using.

 

So sad to see so many Dynamix going away for non-development.  I had mentioned this issue some time back in the Dynamix thread with no reply. 

 

Same with the TEMP and FAN control plugins.  Which is MUCH NEEDED and SHOULD BE already part of the unRAID system.  Yet...Nope.  Just another dead plugin(s).  I am not even sure unRAID is being looked after these days.  :(  (IMHO) 

Link to comment
2 hours ago, David Bott said:

 

So sad to see so many Dynamix going away for non-development.  I had mentioned this issue some time back in the Dynamix thread with no reply. 

 

Same with the TEMP and FAN control plugins.  Which is MUCH NEEDED and SHOULD BE already part of the unRAID system.  Yet...Nope.  Just another dead plugin(s).  I am not even sure unRAID is being looked after these days.  :(  (IMHO) 

This is not a dynamix plugin.

 

But I believe there may be hope, I just havent had time to really look into things.  Unfortunately with 6.10 they removed a bunch of these dependencies that vnstati needs to run, its what generates the images.  So I am thinking if I can parse the output from just vnstat then maybe i can get this working again.  So I'm not tapping out yet.  Stay tuned for more!!!

  • Like 1
Link to comment

OK everyone motivated me to get off my behind and really update this plugin.  Update coming this week. It's a work in progress, but I have figured out a can get a json response from the cli tool and will use that to display some out put.  This initial release will just be text, but I'll look into putting back in much better looking graphs and such in a future release.

image.thumb.png.0dc36d9fb19cc136adee6e29441dc850.png

  • Like 1
Link to comment
Posted (edited)

@Squid the dependency problem exists only when I was trying to use the vnstati commend, which is what was actually generating the images.  While that will still get installed with the vnstat package I am no longer going to rely on it/use it, thus removing the requirement to install other packages.

Edited by dorgan
typo
Link to comment

Hi...So...Hummm...Where do we find this updated plugin?  I ask for doing a search for Network Stats only shows munin-server.   

 

I had thought it was part of the dynamix ecosystem as it showed up under STATS and is now gone once I removed the depreciated plugin.  STATS  is the Dynamix System Statistics page where network showed...Thus thought it was dynamix. 

 

Thank you for your efforts. 

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.