If your cron does not work, in many cases, that's because enviromental value.
You use rbenv
and created some ruby scripts. Now you want to set it to cron
.
43 19 * * * ruby your_ruby_script.rb
Gistlog supports github markdown style table. A table looks like this.
ft-Aligned | Center Aligned | Right Aligned |
---|---|---|
col 3 is | some wordy text | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
nprobe --collector-port 6789 --dump-path /nprobe
The best NetFlow generator flowgen
me@vaio:~/NetFlow-Generator$ time ./flowgen -p 5555 -i 1 --dstaddr 1.1.1.1 -n 1000000 10.40.8.240
collector = 10.40.8.240
count = 1000000
spoof = (none)
port = 5555
wait = 0 (msec)
interval = 1
root@tcpreplay:/tcpreplay# tcpreplay -i eth0 -K --mbps 10 smallFlows.pcap
File Cache is enabled
Actual: 14261 packets (9216531 bytes) sent in 7.03 seconds.
Rated: 1249999.6 Bps, 9.99 Mbps, 1934.15 pps
Flows: 1209 flows, 163.97 fps, 14243 flow packets, 18 non-flow
Statistics for network device: eth0
Attempted packets: 14261
Successful packets: 14261
#Symptom
# gem install rest-client
Fetching: unf_ext-0.0.7.1.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing rest-client:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
#Preparing a docker container
Use a docker container to setup pmacct. Port 5678/udp for receiving NetFlow.
$ docker run -d -h pmacct --name=pmacct -p 8889:8889 -p 5678:5678/udp -v /home/inoue/docker/pmacct:/pmacct -it ubuntu
Build essentials.
apt-get install build-essential checkinstall
#Open source NetFlow collector
##Over ten years players
###nfsen family - nfpcapd
nfsen has very stable and well-accumulated feature set. It provides full-stack of NetFlow feature. NetFlow collector daemon nfpcapd
, flow dump file operation tool nfdump
and Web front-end nfsen
. Community is still avtive.
###ntop-ng family - nprobe
###pmacct family- pmacctd
Momory table is something that I want to try.