What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

How to install YAMon on Asuswrt-Merlin ?

letgoodgrow

Occasional Visitor
Hello,

I've been searching for a reliable bandwidth monitoring solution, but nothing seems to work.
I'm not sure if the issues are due to limitations imposed by Asus or if the available scripts are just outdated.
Has anyone managed to get a script like that to work effectively?
I've encountered endless loop of errors while trying to install them.
Any help would be appreciated.
I also tried
 
Have you tried installing dn-vnstat after typing "amtm" within SSH?

Seemed to generally work for me when I tested it not long ago, and mounts a nice WebUI page for the stats.
Not sure what your goal is other than monitoring bandwidth, I saw there was also a Quota Monitoring script from Martineau here: https://www.snbforums.com/threads/edit-real-time-quota-monitoring-download-upload-data-used.50066/
 
Have you tried installing dn-vnstat after typing "amtm" within SSH?

Seemed to generally work for me when I tested it not long ago, and mounts a nice WebUI page for the stats.
Not sure what your goal is other than monitoring bandwidth, I saw there was also a Quota Monitoring script from Martineau here: https://www.snbforums.com/threads/edit-real-time-quota-monitoring-download-upload-data-used.50066/
thanks for sharing
| like the built in Traffic Analyzer Stats but its data get wiped randomly and it only show top 5 devices which isn't practical
YAMon shows missing files like setup.sh
 
| like the built in Traffic Analyzer Stats but its data get wiped randomly and it only show top 5 devices which isn't practical

I believe that the vnstat script uses vnstatd from Entware, and works independently of the built-in traffic Analyzer:
This is an implementation of vnStat for use on AsusWRT-Merlin routers. This effort was started to enable accurate measurement of data use in a local database (for privacy reasons), and as an alternative the internal monitoring tool, Traffic Analyzer > Traffic Monitor, which will periodically record false “17GB” usage bursts.

YAMon shows missing files like setup.sh

We can't really help without seeing what your trying to do or the messages your getting.
Please provide the steps your following and any screenshots where you get stuck.
 
YAMon shows missing files like setup.sh
FWIW it used to work seven years ago. :)

 
Last edited:
I believe that the vnstat script uses vnstatd from Entware, and works independently of the built-in traffic Analyzer:




We can't really help without seeing what your trying to do or the messages your getting.
Please provide the steps your following and any screenshots where you get stuck.
vnstat does not show stats like devices etc..
a part from that, I tried to install bwmon


I installed Entware through "AMTM"
then followed all the steps here
but when it come to viewing the html page it doesn't open

I checked on ssh :
ps | grep lighttpd
31342 admin 3328 S grep lighttpd
then checked:
ls /opt/share/www/bwmon/index.html
: No such file or directory
 
Last edited:
Try ls /opt/share/www/bwmon/
nice that one shows results, thanks for help
next: I tried
netstat -tuln | grep lighttpd
no results, ai says it means means Lighttpd isn’t listening on any port
so we made
lighttpd.conf and filled with some data inlucde the port 8081
and tried to start
killall lighttpd 2>/dev/null
lighttpd -m /opt/lib/lighttpd -f /opt/etc/lighttpd/lighttpd.conf
but failed
@RT-AX58U-8338:/tmp/mnt/ym/entware# lighttpd -m /opt/lib/lighttpd -f /opt/etc/lighttpd/lighttpd.conf
2025-06-24 00:57:13: (plugin.c.232) dlopen() failed for: /opt/lib/lighttpd/mod_indexfile.so /opt/lib/lighttpd/mod_indexfile.so: cannot open shared object file: No such file or directory
2025-06-24 00:57:13: (server.c.823) loading plugins finally failed
next try
opkg update
opkg install lighttpd-mod-indexfile
2025-06-24 01:04:25: (plugin.c.232) dlopen() failed for: /opt/lib/lighttpd/mod_indexfile.so /opt/lib/lighttpd/mod_indexfile.so: cannot open shared object file: No such file or directory
2025-06-24 01:04:25: (server.c.823) loading plugins finally failed
x_asus@RT-AX58U-8338:/tmp/mnt/ym/entware# opkg update
Downloading https://bin.entware.net/armv7sf-k3.2/Packages.gz

Updated list of available packages in /opt/var/opkg-lists/entware
x@RT-AX58U-8338:/tmp/mnt/ym/entware# opkg install lighttpd-mod-indexfile
Unknown package 'lighttpd-mod-indexfile'.
Collected errors:
* opkg_install_cmd: Cannot install package lighttpd-mod-indexfile.
 
nice that one shows results, thanks for help
next: I tried
netstat -tuln | grep lighttpd
no results, ai says it means means Lighttpd isn’t listening on any port
so we made
lighttpd.conf and filled with some data inlucde the port 8081
and tried to start
killall lighttpd 2>/dev/null
lighttpd -m /opt/lib/lighttpd -f /opt/etc/lighttpd/lighttpd.conf
but failed

next try
opkg update
opkg install lighttpd-mod-indexfile

Your problem is the installer for bwmon is not completing.
I am assuming your only getting this far when trying to install:

1750723115664.png


Instead of this:

1750723149593.png


Which is why I mentioned to include any messages your getting and any screenshots.

To fix it, modify the install.sh at this location:
Code:
/mnt/USBNAME/bwmon/server

Open the install.sh and modify this code at line 38 :
Code:
bc -v > /dev/null 2>&1
if [ $? -ne 0 ]; then
    echo "Installing bc ..."
    opkg install bc
else
    echo "bc is installed"
fi

To this:

Code:
if ! bc -v >/dev/null 2>&1; then
    echo "Installing bc ..."
    opkg install bc
else
    echo "bc is installed"
fi

And the install will complete.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top