Opened 8 years ago

Closed 5 years ago

Last modified 4 years ago

#7579 closed enhancement (not_a_bug)

Yet Another Network Traffic Daemon

Reported by: dirtyfreebooter <openwrt@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: yantd collectd alternative Cc:


I have an ISP that caps my overall bandwidth per month at 250GB. I tried using collectd to monitor my bandwidth usage, but it falls short since collectd just keeps a constant "rolling" history. There is no way with collectd to say let me see my bandwidth for a particular month, etc. An additional issue with collectd is that is requires a GUI to make the fancy graphs.

I've developed a simple network traffic daemon, originally based off ttraff from DD-WRT. It has a init.d script, UCI config, userspace daemon, and command line interface. It is hosted currently at (yantd - Yet Another Network Traffic Daemon for lack of a better name)

It features:

(1) An ultra tiny footprint, both on flash and in memory.
(2) UCI based configuration, can configure for multiple interfaces and more.
(3) Command line interface to display statistics.

Example output from the cli looks like this:

root@router:~# yantd-cli -m -r 2-7 /mnt/stats/yantd/router-eth1-201007.dat
   Day	             Received	          Transmitted
------	---------------------	---------------------
    02	            2833.0 MB	             990.8 MB
    03	            2020.3 MB	            1530.6 MB
    04	             349.4 MB	             772.2 MB
    05	            1185.7 MB	             171.8 MB
    06	            1527.6 MB	             280.1 MB
    07	             161.6 MB	              12.0 MB
------	---------------------	---------------------
Totals	            8077.7 MB	            3757.6 MB

Is it possible to get something like this put in 'packages' repository for regular use by OpenWrt users? Would there be an easy way for me to push updates to it once in the repository?

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by dirtyfreebooter <openwrt@…>

vnStat is a better package. My efforts would be better improving vnStat's UCI interface and scripts related to OpenWrt. This ticket can certainly be closed, I'll stop developing yantd in light of vnStat ;-)

comment:2 Changed 5 years ago by jogo

  • Resolution set to not_a_bug
  • Status changed from new to closed

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.