Posted by Rambler in I2P (edited )

/u/term99 has moved his bash I2P+ Monitor from his http://linuxfarm.i2p site to GitLab as linked above.

Check it out. Definitely nice for stats-at-a-glance, which is how I use it.


Monitor Java I2P+ from your terminal This simple script will display the console sidebar from the WebUI in Java I2P+ Examples below

$ ./monitor_i2p.sh --remote http://127.0.0.1:8657
Version:	0.9.48-11+
Uptime:		12.00/h .50/d
Clock Skew:	-4ms
RAM:		2496 / 3072M
Bandwidth:	5.0 / 5.0MBps
5 Min Avg:	5.1 / 5.1MBps
Lifetime:	5.1 / 5.1MBps
Transferred:	219.84G / 217.94G
Status:		OK
Active Peers:	4643 / 6608
Fast Peers:	158
High capacity:	541
Integrated:	1985
Unreachable:	2181
Banned Peers:	241
Known Peers:	9510
Clients:	12 / 9
Exploratory:	6 / 3
Part. Tun:	10067
Total Tun:	10097
Concurrency:	0 / 19ms
Share Ratio:	146
Job lag:	4ms
Message Delay:	68ms
Tunnel lag:	723ms
$ ./monitor_i2p.sh --remote http://127.0.0.1:8657 -U -b -m
Uptime:		12.00/h .50/d
Bandwidth:	5.4 / 5.4MBps
Transferred:	222.02G / 220.1G
$ ./monitor_i2p.sh --help
monitor_i2p.sh - Java I2P+ Terminal Monitoring
-u Display Upgrade
-U Display Uptime
-v Display Version
-C Display Clock Skew
-b Display Current Bandwidth
-5 Display 5 Min Avg Bandwidth
-l Display Lifetime Bandwidth
-m Display Total Transferred
-k Display Known Peers
-a Display Active Peers
-f Display Fast Peers
-h Display High Capacity Peers
-i Display Integrated
-u Display Unreachable Peers
-b Display Banned Peers
-c Display Client Tunnels
-e Display Exploratory Tunnels
-p Display Participating Tunnels
-t Display Total Tunnels
-s Display Share ratio
-j Display Job lag
-d Display Message delay
-r Display RAM
-S Display I2P+ Status
-L Display Tunnel lag
-y Display Concurrency
-B Display Backlog
-A Display all < DEFAULT >
--raw Will display :
--proxy Use proxy --proxy 192.168.1.12:4444 otherwise no setting will default 127.0.0.1:4444 for .i2p sites.
--remote Will use remote location of I2P+ Console, please only specify (http|https)://location:port.
Using remote will always result in an update and not use a cached version of ./mon_i2p.html.
Command: ./monitor_i2p.sh
Will display all Sidebar Stats from https://localhost:7667
Command: ./monitor_i2p.sh -U -b -m
Will display:
Uptime:		9.00/h .37/d
Bandwidth:	210.7 / 173.8KBps
Transferred:	6.04G / 3.61G

monitor_i2p.sh uses a caching system, it will only download an update if the $index(/tmp/mon_i2p.html) is older than 28 seconds, this can be forced to update every time the command is used by using --remote https://127.0.0.1:7667 no other arguments needed. You may specify arguments before or after --remote or --proxy. Using -A will display all output(default setting).

4

Comments

You must log in or register to comment.

Rambler OP wrote

The main router:

Version:	0.9.48-13+
Uptime:		.16/h 4.00/d
RAM:		499 / 618M
Bandwidth:	4.60 / 4.50MBps
5 Min Avg:	4.4 / 4.3MBps
Lifetime:	3.9 / 3.9MBps
Transferred:	1.26T / 1.25T
Status:		OK
Active Peers:	3725 / 4685
Fast Peers:	150
High capacity:	460
Integrated:	2058
Unreachable:	1493
Banned Peers:	194
Known Peers:	8589
Clients:	62 / 64
Exploratory:	10 / 9
Part. Tun:	6374
Total Tun:	6519
Concurrency:	1 / 21ms
Share Ratio:	18
Job lag:	5ms
Message Delay:	56ms
1