keronmarketing.blogg.se

Web monitor linux
Web monitor linux




web monitor linux

One way we can use this functionality is to write a script that takes some action when a limit is exceeded. We can learn more about the alert parameters on its man page. The –alert parameter needs six arguments: We can use it to alert us when the bandwidth usage exceeds a certain limit. Let’s generate a vertical summary with the eth0 interface statistics:Īnother useful vnstat functionality is the –alert parameter. If instead, we prefer a horizontal image, we can use the -hs parameter. We can use the -vs parameter to generate a vertical image with this information. The -hs and -vs parameters improve the -s parameter by adding the transfer rate of the last 24 hours.

web monitor linux

The -s parameter generates a basic summary with the last days’ bandwidth usage and the last months’ bandwidth usage. If we want, we can also generate a summary using the -s, -hs, or -vs parameters.

web monitor linux

We can see that the image has similar content to what we obtained in the console.

#Web monitor linux how to

Let’s see how to generate an image called monthly.png with the monthly bandwidth usage of the eth0 interface: $ vnstati -m -i eth0 -o monthly.png Also, we have to specify the output file with the -o parameter followed by the filename. So, we can see the usage of the eth0 interface on a monthly basis using the -m -i eth0 parameters. The vnstati command parameters are similar to the vnstat command parameters. This is a great tool that displays the bandwidth usage in a png image. If we prefer to visualize the information in a picture, we can use the vnstati command. Let’s use the -d and the -i eth0 parameters to see the statistics on a daily basis: This way, we can print the information only from the interface connected to the internet. If we have more than one network interface, we can specify it with the -i parameter followed by the interface name. We can do this using the parameters -h, -d, -m, and -y, respectively. We can also see the information by the hour, day, month, and year. As we’re currently in July, vnstat estimates that we’ll receive and transfer approximately 187GiB this month. The estimated column is an estimation of how much we’ll use in that period based on the previous usage. It informs us that the eth0 interface received 166GiB and transmitted 428 MiB during July, the current month. Today 14.51 MiB / 860.97 KiB / 15.36 MiB / 23.10 MiBĪs we see, we got the statistics from the last two months and for each interface.






Web monitor linux