|
You are going to need to add RRDTool to the path variable of your collector. (You're also adding flow-tools.) The following commands will add the paths you need to your current session:
- export PATH=$PATH:/usr/local/rrdtool/bin
- export PATH=$PATH:/usr/local/netflow/bin
To add RRDTool and flow-tools to the bootup path on RedHat do the following: (This will ensure that the path remains when you reboot.)
- Open /etc/profile with your favorite editor
- Add the following lines below "pathmunge /usr/local/sbin"
- pathmunge /usr/local/rrdtool/bin
- pathmunge /usr/local/netflow/bin
- Save and Exit
So, the file should look like this when you are done. (As far as I know the "tabs" at the beginning of the pathmunge lines are optional, but it's always good to make it look nice and readable.)
# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
pathmunge /usr/local/rrdtool/bin
pathmunge /usr/local/netflow/bin
fi
Using the instructions above, you will add flow-tools and RRDTool to the path of your current session (so you don't have to reboot) and also add it to the permanent path so its still there the next time you reboot.
If you are running iptables or some other firewall, this is a great time to make sure that you have opened the port you will use to receive data from your router. Remember it is a UDP port, not a TCP port. The default is 2055.
|