Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| howto:simple_network_monitoring [2008/08/01 12:35] – created 194.141.47.101 | howto:simple_network_monitoring [2016/09/10 15:22] (current) – fix image sakuhl | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== Simple network monitoring using Genmon plugin ===== | ||
| + | |||
| Follow is the code of script that can make this | Follow is the code of script that can make this | ||
| I recomment to save in you home directory with name netmonitor.sh (with +x permissions), | I recomment to save in you home directory with name netmonitor.sh (with +x permissions), | ||
| - | Screenshot: | ||
| - | [img]http:// | ||
| - | ---- | + | **Screenshot: |
| + | <code bash> | ||
| # | # | ||
| # | # | ||
| Line 24: | Line 26: | ||
| fi | fi | ||
| - | MY_output=`netstat -i|grep ${interface}|awk ' | + | MY_output=`netstat -i|grep $interface|awk ' |
| MY_icontheme="/ | MY_icontheme="/ | ||
| Line 36: | Line 38: | ||
| echo "< | echo "< | ||
| fi | fi | ||
| - | MY_ip=`/ | + | MY_ip=`/ |
| echo "< | echo "< | ||
| Hostname: ${HOSTNAME} | Hostname: ${HOSTNAME} | ||
| Line 44: | Line 46: | ||
| </ | </ | ||
| exit | exit | ||
| - | + | </ | |
| - | ---- | + | |