1. Subscriptions
  2. Services
  3. Hardware
  4. Support

ClearFoundation

Forums
Welcome, Guest
Monitoring
(1 viewing) 1 Guest
Go to bottomPage: 1234
TOPIC: Monitoring
#2923
Monitoring 2 Years, 1 Month ago  
Is there a good way to monitor current bandwidth / traffic?

I would like to see something like an iptraf graphical broken down to the ip address.

ie a chart that is updating every 5 seconds that shows

ip address upload download
192.168.1.100 0kbps (superimposed on graph) 3500 kbps
192.168.1.105 100kbps 300 kpbs

etc


I am currently using CC5.0, download but haven't started testing Clear.
This is something that Untangle can do, but I would rather use CC.
I am experiencing some internet slowdown issues that I need to troubleshoot, ie a cronjob on a desktop downloading updates, etc. It would be nice to see more detailed reports like this and more real time than a graph of events from 30 minutes ago.

Thanks
Joe Archibald
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3033
Re: Monitoring 2 Years, 1 Month ago  
HI Joe
install ntop this should give you all the info you need.

on the console type yum install ntop

hope it helps
Megrain
Senior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
The pillar of knowledge is like a mountain, it doesn’t matter how many times you climb it you'll discover something on your way. website
 
#3066
Re:Monitoring 2 Years, 1 Month ago  
It's a bit beta, but you could install app-jnettop module...it shows real-time traffic (download speed or total used).

Code:


yum --enablerepo=extras install app-jnettop



A new module will then show up in webconfig under "Network" settings, I think.

Ben
Ben Chambers
ClearFoundation
Posts: 178
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3068
Re:Monitoring 2 Years, 1 Month ago  
Ooo - looks interesting, however it only appears to be in the CC5.0 repo, not ClearOS5.1?

download.clarkconnect.com/community/5.0/...unsupported.i386.rpm
download.clarkconnect.com/community/5.0/...upported.v5.i386.rpm

EDIT: Tried to install on COS5.1 and it doesn't appear to work, you end up with another spurious Network Menu floating around, and the update button doesn't do much
Tim Burgess
Moderator
Posts: 4209
graph
User Online Now Click here to see the profile of this user
Last Edit: 2010/01/08 09:01 By timb80.
The administrator has disabled public write access.
 
#3103
Re:Monitoring 2 Years, 1 Month ago  
Hi Tim
the error points to cmd tool, here is the error "could not get hw address of interface any: no such device"
looks like a problem with centos 5.4 and jnettop. mybe you can find some info on the error.
Megrain
Senior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
The pillar of knowledge is like a mountain, it doesn’t matter how many times you climb it you'll discover something on your way. website
 
#4494
Re:Monitoring 2 Years ago  
Hi,

Have you succed in getting it to work?

The binary works under console but the web-app never print anything...

I don't know how to check what is going under the webconfig.

Is there a way to show what errors webconfig reports?
I really need this great app which looks cool under Clark Connect 5.0.

Thanks in advance.

Best Regards,
Julien.
Graphique Alliance
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4497
Re:Monitoring 2 Years ago  
I didn't suceed, (or at least not tried again)

Webconfig errors can be found in /var/log/webconfig
Tim Burgess
Moderator
Posts: 4209
graph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#4520
Re:Monitoring 2 Years ago  
Hi Guys,

Looks like there's a couple of changes in ClearOS 5.1 that prevent this from displaying correctly...it's quite easy to get it going even if you're using the ClarkConnect packages:

1. Menu

The menu system format has changed between ClarkConnect 5.0 and ClearOS 5.1. In the file
Code:

/var/webconfig/htdocs/menus/10-jnettop.en_US



I replaced the contents with:

Code:

Reports|Network|Traffic Watch|jnettop.php|status|7100



That's assuming you're using the English tags...if you're in another locale, change the appropriate file (i.e. French = 10-jnettop.fr_FR).

2. Webconfig

I think calling a javascript function in Webconfig's custom header widget is depreciated...adding the JS function call to the bottom of the page does the trick.

To the file:
Code:

/var/webconfig/htdocs/admin/jnettop.php



Add:
Code:

echo "<script type='text/javascript'>getStatus();</script>";



Just before the function "DisplaySummary()" closes. In other words, the end of the file would like something like this:

Code:


...
..
.
        WebTableClose('100%');
        echo "<script type='text/javascript'>getStatus();</script>";
}

// vim: ts=4
?>



That should be all that's required...you can now view jnettop's output in webconfig under "Reports --> Network --> Traffic Watch".

I'll see about making these updates and adding it to the extras repository for ClearOS so you don't have to go through the above brain damage, but for now, the above will have to do.

Ben
Ben Chambers
ClearFoundation
Posts: 178
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/02/01 12:39 By bchambers.
The administrator has disabled public write access.
 
#4523
Re:Monitoring 2 Years ago  
Sorry about the formatting above...seems we can't use HTML tags (like greater than less than) inside code tags.

Not sure what to do until we get this resolved at the "Joomla" level.

Dave, help me, please!

B.
Ben Chambers
ClearFoundation
Posts: 178
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4736
Re:Monitoring 2 Years ago  
Hi,

Thanks a lot Ben.

That was very helpful.

The Gui is now working.

Will test this deeper.

Thanks again.

Best Regards,
Graphique Alliance
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1234
  get the latest posts directly to your desktop