What happened to the network traffic indicator?

Moderator: BarryK

Post Reply
User avatar
Flash
Moderator
Posts: 897
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 46 times
Been thanked: 105 times

What happened to the network traffic indicator?

Post by Flash »

Older versions of Puppy Linux, if you rested the cursor on a certain icon in the tray, would show how many MB or GB of data had come through the Ethernet connection each way. EasyOS doesn't seem to have that feature. Is there an app I can download from somewhere that would add it?

I need it because somehow my Internet usage has greatly increased, according to my ISP, while I've changed nothing and I'm trying to figure out why.

Chaos coordinator :?
User avatar
BarryK
Posts: 2273
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 564 times

Re: What happened to the network traffic indicator?

Post by BarryK »

The old network tray monitor is still there, at /root/Startup/network_tray

You will need to right-click on it, choose "Properties", then tick the "Exec" checkboxes.
Then restart X.

I can't think why it would clash with the regular network monitor. Well, it will if try and use it for anything other than just monitoring.

What that old network monitor does, is read files in /var/local/sns
...um, but I see they are all zero.

Hmmm, the code that writes to those files is at line 118 in /etc/rc.d/rc.shutdown

I see a bug, line 121:

Code: Select all

# ip link show | grep -B 1 'link/ether' | grep -w 'UP' | cut -f 2 -d ' ' | tr -d : | head -n 1
eth0
# 

But this is my laptop, and active interface is wlan0. This would be a better method to find active interface:

Code: Select all

# getlocalip
lo: 127.0.0.1
wlan0: 192.168.43.132
# 
User avatar
Flash
Moderator
Posts: 897
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 46 times
Been thanked: 105 times

Re: What happened to the network traffic indicator?

Post by Flash »

Thanks, Barry.
The current_month file in my var/local/sns just says Dec, but the other files in that directory have numbers in them that might be correct. For instance, rx_bytes_month shows 1061905867.
I'm running 5.6.5 as of a few days ago, so that number probably isn't accurate for the month.

Chaos coordinator :?
User avatar
Keef
Posts: 250
Joined: Tue Dec 03, 2019 8:05 pm
Has thanked: 3 times
Been thanked: 67 times

Re: What happened to the network traffic indicator?

Post by Keef »

Looking at the output of:

Code: Select all

#  ip link show 
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,[b]UP[/b]> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether d0:67:e5:4d:bc:20 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,[b]UP[/b],LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 24:77:03:5e:03:28 brd ff:ff:ff:ff:ff:ff

This would seem to work better:

Code: Select all

 ip link show | grep -B 1 'link/ether' | grep -w 'state UP' | cut -f 2 -d ' ' | tr -d : 

Doesn't need the 'head' part as far as I can see.

User avatar
Flash
Moderator
Posts: 897
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 46 times
Been thanked: 105 times

Re: What happened to the network traffic indicator?

Post by Flash »

The contents of /var/local/sns/rx_bytes_month stayed the same between my last post and now, so it's not actually recording. Perhaps the contents of that file are what was there when Barry assembled EasyOS 5.6.5.

Chaos coordinator :?
Post Reply

Return to “EasyOS”