www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

MRTG Monitor and graphics report wrong value (too low)

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell
View previous topic :: View next topic  
Author Message
francesco_ita



Joined: 16 Mar 2017
Posts: 3

PostPosted: Thu Mar 16, 2017 10:35 am    Post subject: MRTG Monitor and graphics report wrong value (too low) Reply with quote

Hi,
I've just installed Zeroshell 3.7.1.
I'm using it just for connectivity failover for now.
I've set it up with 1 eth (eth00) and 2 gateway that are in the same lan. One is the ADSL Router and the other one is a router with a 4G SIM inside.
One is Active and the other in Standby.
When I open the MRTG statistics and graphics it shows a very low value for every kind of graphics (load balancing or network interface)
For example if I'm doing any kind of Internet traffic from a computer that is using Zeroshell as its gateway and I get more than 10mbit/s bandwidth from Internet to this pc, MRTG show only few kbit/s (such as 6 kbit/s instead of at least 10.000kbit/s).
I've not installed SNMP because for what I understood MRTG should get bandwidth from itself, right?
I've also very low value on the top of the Zeroshell webpage (near to CNtop button)

Thank you for any suggestion on how to solve this.

Francesco
Back to top
View user's profile Send private message
iulyb



Joined: 02 Jun 2016
Posts: 103

PostPosted: Thu Mar 16, 2017 2:43 pm    Post subject: Reply with quote

Hi,

I had some issues myself with the bitrate scrit but for me is working decent.
http://www.zeroshell.org/forum/viewtopic.php?t=6937&highlight=
The bitrate script use contrack to calculate total traffic.
On the other hand the mrtg script is really tright forward and use
Code:
TX=`cat /sys/class/net/$INTERFACE/statistics/tx_bytes`
Back to top
View user's profile Send private message
francesco_ita



Joined: 16 Mar 2017
Posts: 3

PostPosted: Thu Mar 16, 2017 3:46 pm    Post subject: Reply with quote

I see that if it's the Zeroshell that does the traffic (such as when it downloads the Antivirus updates) both the throughput at the top of the screen and the graphics MRTG of the network ETH00 are correct and I can also see this connection in the CNTop.
If the traffic is done by another client of the network that is using the Zeroshell as its gateway I see that connection (from local IP to public IP) in the CNTop only for some seconds at the beginning with a very low kbit/s value, than it disappears from the connection list, even if it's still working and doing traffic, and both the throughput and the MRTG graphics doesn't count that traffic.
Is this beaviour normal or not? It seems that the traffic that pass through the Zeroshell without been analyzed but it's only routed to one of the 2 gateway that I have is not counted.
All the other Zeroshell's features are disabled, I'm using it only for failover the Internet traffic using to 2 gateway.

Thank you!
Back to top
View user's profile Send private message
francesco_ita



Joined: 16 Mar 2017
Posts: 3

PostPosted: Fri Mar 17, 2017 8:41 am    Post subject: Reply with quote

Problem solved.
I could not see the traffic in monitor or statistics because the NAT was disabled.
In this way everything was working good and the load balance / failover between the 2 internet connection was good but only the outgoing packets passed through the Zeroshell, the Internet incoming packets went directly from the router to the client, without passing throught the Zeroshell.
Now I've enabled the NAT and obvsiously also the incoming packets now goes from the router to the Zeroshell and the to the client.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group