Nginx is serving webpages from ubuntu server. Once or twice in a week I get warning mail from the cloud server provider says
The amount of transferred data has exceeded the limit:
The amount of transferred data has exceeded the limit: hourly: (1:00 - 02:00) IP / Subnet Server name Limit (MB) Traffic (MB) xx.xx.xx.xxx Niren 200 238.264
So I want to monitor the internet traffic in ubuntu server for particular period say with the above warning I want to know how the traffic exceed the limit in specified time duration(1hr-2hr). I want to know what are the IP's trying to access server in that duration.
Cloud server provider:
Hetzner, Server OS:
Ubuntu-1404-trusty-64-minimal, Web server:
update: I tried vnstat but it shows hourly, weekly, daily or monthly traffic details, but I wanted to know what are the IP's tried to access server in specific duration this is not possible with vnstat.