 |
Tools
->
Amberjack@JUMPERZ.NET
Overview

Amberjack@JUMPERZ.NET is a network/server monitoring tool. The demo is here.
This tool is developed just for fun. You should not use this tool on the production environment.
Features

- Published as open source code
- Witten in Java and JavaScript
- Requires a lot of CPU cycles :p
- Round robin database ( http://www.jrobin.org/ ) is used
- Simple configuration
- Cross platform
Download

Download those two files.
- jumperz_net_091.jar
( Java class files and source codes )
- amberjack.conf
 ( Configuration file example )
Requirements

- Java Runtime Environment( JRE ) 1.4 or Higher
Configuration

Before running Amberjack@JUMPERZ.NET, you need to modify the configuration file with your text editor.
The configuration file 'amberjack.conf' looks like this:
#
# Amberjack Configuration File
#
www_dir=/usr/local/apache/html/amberjack/
work_dir=/var/amberjack/
debug=true
title=Amberjack@JUMPERZ.NET
term=day,86400
term=week,604800
term=month,2419200
memory_free gauge /usr/bin/free -b | /bin/grep buffers/cache | /usr/bin/awk {'print $4'}
cpu gauge /bin/cat /proc/loadavg | /usr/bin/awk {'print $1'} | /usr/bin/perl -ne 'print $_*100;'
process_count gauge /bin/ls /proc | /bin/egrep '[0-9]+' | /usr/bin/wc -l | /usr/bin/tr -d ' '
tcp_established gauge /bin/netstat -na | /bin/grep -v 127.0.0.1 | /bin/grep ESTABLISHED | /usr/bin/wc -l
eth0 counter /bin/cat /proc/net/dev | /bin/grep eth0 | /usr/bin/awk {'print $9'}
disk_usage gauge /bin/df | /bin/grep '/dev' | /usr/bin/awk {'print $5'} | /usr/bin/perl -npe 's/[^0-9]//;' | /bin/sort -n | /usr/bin/tail -n 1
|
|
'www_dir' is the name of the directory to which the files ( html, js, gif, png ) will be generated. This directory need to be accessible via the web server.
'work_dir' is the name of the directory where the round robin database files are saved. This directory do not need to be seen via the web server.
'term' is comma separated. The name of the term ( for example, "day" ) and the value of the term ( for example, "86400". This means 60 * 60 * 24 ). The unit is seconds.
You can set multiple 'term' lines like the example above.
The rest part of the configuration file is tasks. Each line is tab/space separated. From left to right, 'name', 'type' and 'system command'.
'type' must be "gauge" or "counter". You can check the meanings here.
'system command' is just a system command that prints the value( must be a number ) to the standard out. If you use Linux, you can understand the meaning of the example above easily.
Usage

To run Amberjack@JUMPERZ.NET, type from the command line:
java net.jumperz.app.MAmberjack.MAmberjack /etc/amberjack.conf all
FAQ

Question: Is it inspired by Matrix?
Answer: Not Matrix, but Ghost In the Shell :)
|
|






|
|