JNetload

Current version: 2.0

The server application of jNetload displays the load average of a network connection (eth0/ISDN/DSL). This data is transmitted to network clients that visualize it with a histogram.
The idea of this program was taken of xisdnload, which shows the same just for the local system in a X11 window.

In version 2.0 the view of the histogram works faster and there were added some options to configure. In addition to the client applet this version contains also a client application that can made accessible through Java Web Start.

jNetload is distributed under the GNU Lesser General Public License. Use this program at your own risk.

Screenshots

Download

Install

Server

Save the file jnetloadServer.jar to /usr/local/jnetload/
and jnetloadd.conf to /etc/. Adjust the configuration to your needs.

You could start the server application with the following command:

java -classpath [path_to_JDKClasses]:/usr/local/jnetload/jnetloadServer.jar de.gensthaler.jnetload.server.Server

resp.

java -jar jnetloadServer.jar

Start with the option --help to get information about the options of jNetload (for example to control a different network device then ippp0).

To start the server application on every boot of your system automatically,

  1. save the file jnetloadd to /etc/init.d/,
  2. change the file rights to executable
    cd /etc/init.d
    chmod 755 jnetloadd
  3. and create symbolic links in the directory of the runlevels where you want to start and shutdown it:
    cd /sbin/init.d/rc3.d
    ln -s ../jnetloadd S99jnetloadd
    ln -s ../jnetloadd K01jnetloadd
  4. The following link makes the script easier to access:
    ln -s /etc/init.d/jnetloadd /usr/sbin/rcjnetloadd
  5. Add your options for the server application to the file jnetloadd.

Client-Applet

Save the file jnetloadClientApplet.jar in a directory that is accessible over your web server.
To include the applet in a webpage, insert the code of jnetloadClientApplet.html in your page and adjust the arguments to your system configuration if you don't want to use the default values.

For overriding the default values, remove the remark tags <!-- and --> and enter your options. The parameter 'serverName' has to be changed to the hostname or the IP of the computer where the jNetload server application is running and from where the applet is loaded.

Webstart-Client

If Webstart is not already included in your Java installation ( > J2SDK-1.2), please install from Sun Microsystems. Test Webstart with the demos of Sun Microsystems. For starting Webstart application through a link on a web page you possibly have to add to your web browser the mime type application/x-java-jnlp-file jnlp with the command to start the Webstart program.

On your web server make the files jnetloadClientApplication.jar and jnetloadClientWebstart.jnlp accessable and adjust the paths in the jnlp file.

Finally you have to add to the configuration of your web server the mime type for JNLP (Apache: /etc/httpd/mime.types): application/x-java-jnlp-file jnlp

The file jnetloadClientWebstart.html contains an example how to include a Webstart link in your homepage.