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