ezservermonitor-sh icon indicating copy to clipboard operation
ezservermonitor-sh copied to clipboard

Errors with Debian on WSL2

Open bwolfbarn opened this issue 3 years ago • 3 comments

Hello,

with Debian default installation on WSL2, last boot info is missing (module System), a wget error is returned (showed in Memory but related to Network) and we get also and we have device name error (module Network)

  System
  ...
  Uptime           0 day(s), 0 hours(s), 10 minute(s)
  Last boot
  Memory
  RAM           6179 Mb free of 6250 Mb
./eZServerMonitor.sh: line 258: wget: command not found
  Network
  IP LAN (lo)    127.0.0.1
  IP LAN (bond0)
  IP LAN (dummy0)
Device "sit0@NONE" does not exist.
  IP LAN (sit0@NONE)
  IP LAN (eth0)  xxx.xxx.xxx.xxx
  IP WAN

I may propose some adaptation if needed (ongoing test localy)

Kind regards, bwolfbarn

bwolfbarn avatar Dec 02 '20 18:12 bwolfbarn

Hello, Thank you for the information.

  1. For the "last boot", I don't have a solution with WSL2. The who command returns nothing...

  2. I don't have the error. Please install wget on your distribution.

  3. I corrected the error! You can download the new file from this repo.

Thank you again for your feedback.

Regards,

shevabam avatar Dec 02 '20 20:12 shevabam

Hello Shevabam,

Thanks for the quick reaction.

  1. Indeed, who return nothing. May be shoud the last boot time be calculated from time since start. What do you think about ?
  2. Indeed, wget is needed to collect external IP. May be should we have a message when not installed (like we have for temperature related applications)
  3. Thank you. I will test it (suppose you limited to active port) Have a nice day. Kind regards,

bwolfbarn avatar Dec 03 '20 00:12 bwolfbarn

Hello,

  1. I will think how to do it, for the moment I do not know!
  2. It's fixed, I improved the detection of curl and wget

Thanks again!

shevabam avatar Dec 10 '20 19:12 shevabam