Changes

From SME Server
Jump to navigationJump to search
984 bytes added ,  22:10, 16 January 2017
Line 3: Line 3:  
== Bandwidthd for SME Server ==
 
== Bandwidthd for SME Server ==
 
{{Level|Easy|The instructions on this page can be followed by a beginner.}}
 
{{Level|Easy|The instructions on this page can be followed by a beginner.}}
 
+
{{ #smeversion: smeserver-bandwidthd }}
 
=== Maintainer ===
 
=== Maintainer ===
 
[[User:Unnilennium|Jean-Philippe Pialasse]]<br/>
 
[[User:Unnilennium|Jean-Philippe Pialasse]]<br/>
Line 28: Line 28:       −
=== Installation ===
+
=== Installation 8.X, 9.X===
   −
{{Warning box | This is still in development and testing phase}}
+
  yum install smeserver-bandwidthd --enablerepo=smecontribs
 
  −
  yum install smeserver-bandwidthd --enablerepo=smedev,smecontribs
      
then  
 
then  
Line 43: Line 41:  
and wait for your db to start collecting data (at least 3 minutes)
 
and wait for your db to start collecting data (at least 3 minutes)
   −
===DB command===
+
===Configuration with db command===
there is no panel yet you can manage the contrib by the db configuration, it is quite simple
+
There is no server manager panel, you can easily configure the contrib with a db command (see examples below)
   −
  # config show bandwidthd
+
To display current settings
 +
  config show bandwidthd
 +
Which will show something like
 
  bandwidthd=service
 
  bandwidthd=service
 
     DbName=bandwidthd
 
     DbName=bandwidthd
Line 56: Line 56:       −
Available options are below:
+
Available settings showing the db key property and value are listed below:
 +
 
 +
ie in the first example subnet is a property and disabled is a value, note that a default property & value is not listed in the database entry, but is in effect.
 +
 
    
* 'subnet' : default is "disabled", you can put there a subnet that is not your LAN or WAN or authorized SME network
 
* 'subnet' : default is "disabled", you can put there a subnet that is not your LAN or WAN or authorized SME network
Line 84: Line 87:       −
After changing one of these settings, you need to apply it:
+
To change a setting use the following db command syntax
 +
db configuration setprop bandwidthd property value
 +
or in the special case only for the configuration db, this can be abbreviated to
 +
config setprop bandwidthd property value
 +
where property and value are obtained from the list of options above.
 +
 
 +
eg to change webaccess
 +
config setprop bandwidthd webaccess public
 +
eg to change login page name
 +
config setprop bandwidthd Name 'My Monitoring Login Page'
 +
 
 +
After changing any setting, you need to apply it:
 
  signal-event conf-bandwidthd
 
  signal-event conf-bandwidthd
   Line 99: Line 113:  
then edit /etc/bandwidthd-adsl.conf : change sensor to "adsl" and dev to "ppp0" or your network interface you want to monitor.Adjust what you want, and I suggest you to put off to graph and falt to cdf
 
then edit /etc/bandwidthd-adsl.conf : change sensor to "adsl" and dev to "ppp0" or your network interface you want to monitor.Adjust what you want, and I suggest you to put off to graph and falt to cdf
 
  cp -a /etc/rc.d/init.d/bandwidthd /etc/rc.d/init.d/bandwidthd-adsl
 
  cp -a /etc/rc.d/init.d/bandwidthd /etc/rc.d/init.d/bandwidthd-adsl
  chckconfig --add bandwidthd-adsl
+
  chkconfig --add bandwidthd-adsl
 
  ln -s /etc/rc.d/init.d/bandwidthd-adsl /etc/rc.d/rc7.d/S85bandwidthd-adsl
 
  ln -s /etc/rc.d/init.d/bandwidthd-adsl /etc/rc.d/rc7.d/S85bandwidthd-adsl
 
  vim /etc/rc.d/init.d/bandwidthd-adsl
 
  vim /etc/rc.d/init.d/bandwidthd-adsl
Line 118: Line 132:  
Please raise bugs under the SME-Contribs section in [http://bugs.contribs.org/enter_bug.cgi bugzilla]
 
Please raise bugs under the SME-Contribs section in [http://bugs.contribs.org/enter_bug.cgi bugzilla]
 
and select the smeserver-bandwidthd component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-bandwidthd|title=this link}}.  
 
and select the smeserver-bandwidthd component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-bandwidthd|title=this link}}.  
 +
{{#bugzilla:columns=id,product,version,status,summary |sort=id|order=desc |component=smeserver-bandwidthd|noresultsmessage="No open bugs found."}}
 +
 +
===Changelog===
 +
Only released version in smecontrib are listed here.
 +
 +
{{ #smechangelog: smeserver-bandwidthd}}
 +
    
[[Category: Contrib]]
 
[[Category: Contrib]]
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,228

edits

Navigation menu