Quantcast
Channel: rakudave.ch
Viewing all 35 articles
Browse latest View live

Introducing: jNetMap - network monitoring

$
0
0

News: jNetMap has its own site now: rakudave.ch/jnetmap.

This post will no longer be maintained!

I'm happy to (finally) present a new tool: jNetMap

jNetMap will ping all registered devices every x minutes, updating it's status according to the result of the ping. Alternatively you can also monitor a specific port, such as port 80 for webservers. Available devices are green, unavailable devices are red. Gray means "unknown" and orange "not found".

To start drawing a new map, select "add", enter the details and hit enter. You can connect the devices by right-clicking on a device and selecting "connect". The rest is pretty self-explanatory I guess...
You can also save and open existing maps so you don't have to redraw everything ^^
It also supports arguments, e.g. "java -jar jNetMap.jar some/where/some.netmap" will open the "some.netmap" when starting the application. This also works for the "open with..." option in any OS.

I'm working an a complete rewrite of jNetMap for the 0.5 release. This project has grown to much and the current framework is not able to carry more features. Please be patient, it may take a while :-)
I was also able to take over the project space over at sourceforge.
More...

» Download

Version 0.3.3.5 (25. Jul 2009)

executable .jar file (crossplattform)
requires Java version 1.6.0.13 or later
Ubuntu/Debian available .deb-file 

» User Manual

PDF File (right-click, save as ...) 
» get the source code zip  (released under the GPLv3)
  

  Feedback, suggestions & feature requests: public(at)rakudave(dot)ch


Tutorial Video

Known Issues:

  • The .jar doesn't work out-of-the-box on Mac OS X.
    fix: Change Java-version manually in the preferences.
  • Some Windows systems seem to have problems performing network scans.
    fix: set timeout to 1000ms or higher (50ms works fine on Linux).
  • Machines that are pingable in the console don't show up in jNetMap
    status: unable to reproduce

Report a bug: bugs(at)rakudave(dot)ch with "jNetMap" in the subject line

hak5 about jNetMap (version 0.1.6)

from episode 5-15

Thanks
 

  • Hak5 / Darren Kitchen for some media attention
  • Rick Weller for many good ideas (custom icons, password protection, draggable canvas)
  • godane for packaging jNetMap for archlinux
  • Austin St. Aubin for his bugreports and ideas (background images, notes)
  • Softpedia for featuring jNetMap on their site
  • Christoph Korn for packaging jNetMap for get-deb.ch (Ubuntu, Debian)

Change History:

Version 0.3.3 (25.07.09)
new: choose background color
fixed: "export image" only exported visible area
fixed: statistics background not drawn correctly
Quickfix 0.3.3.5: export function failed to return to normal drawing mode

Version 0.3.2
new: Notes (Edit > Add Note)
changed: Switches now support names
fixed: ping intervall didn't save correctly
fixed: ignore triggers didn't save correctly

Version 0.3.1
new: background images (for floor plans etc.)
fixed: line label deleted on switch insert, now transfered to new line
fixed: history item saved although no real change was made (now checks for real changes first)
fixed: clean URLs when using help etc.

Version 0.3
new: automatically checks for and downloads updates (can be turned off)
fixed: triggers won't fire on startup
fixed: alignment didn't always work when the canvas has been moved
fixed: devices were deselected when dragging the canvas
fixed: initial network scan didn't ask for timeout value

Version 0.2.9
new: removing a line will recursively remove all connected via-points as well
fixed: via-points could have more than 2 lines (will now be ignored for connecting if lines >=2)
fixed: connecting to empty space creates new viapoint (now only if 1 item is selected)
fixed: via-points were multiselecteble
fixed: invoking port-scanner via tool-menu failed to send the IP of the selected device along to the scanner

Version 0.2.8
new: via-points (enables bent lines)
changed: line ends rounded (looks better with bends)
fixed: switch coloring not reliable when exclusively connecting two switches
fixed: menu entries disabled incorrecly
fixed: ping-timeout not read correctly

Version 0.2.7
new: multi-connect
new: remove a password (Protect > enter current password > ok > new? cancel > remove? yes)
changed: Preferences > Max. undo has a up/down control instead of a slider
changed: Doucumentation updated
changed: Settings window now static
fixed: incorrect passwords would not reprompt
fixed: "See dokumentation" pointed to main site, now points to download anchor

Version 0.2.6
new: tray icon and menu
new: minimize to tray
new: password protected files (Edit > Protect)
new: option to remember window size/position
new: user manual (pdf, see download section)
fixed: scan would add already added devices (now excluded based on IP)
fixed: proper "free software" disclamer in both source and "about"-dialog

Version 0.2.5
(massive changes, skipping subsubversions 3 and 4)
new: extensive preferences
new: custom icons
new: images stored as base64 strings
new: middle-click to directly connect devices
changed: removed "switch (managed)" and "UPS (managed)", use "preferences > icons"
changed: major relocation of code (most to the new preferences)
changed: triggers merged with preferences window
fixed: triggers didn't work when pinging
fixed: trigger arguments treated as env.vars
fixed: preference file only written on quit, not on save
fixed: triggers fired on application startup
fixed: missing images resulted in blank icons, now replaced with "other"-icon

Version 0.2.2
new: labels for lines (for additional info about this line, such as "cat5")
new: UPS (managed) icon
new: reset canvas (if you drag the canvas too far and can't find your icons anymore)
new: open any device in your browser (many devices have http config interfaces)
fixed: legacy support for .netmap files above v.0.1.5

Version 0.2.1
new: drag canvas (right mouse button, made for viewing large maps on small screens)
new: appropriate cursor icons
new: switch (managed) with configurable IP
new: adjustable scan timeout (way faster now)
fixed: negative ping intervals caused infinite ping loop (use 0 or less to stop timed scanning)
fixed: grid align algo failed after dragging the canvas
fixed: main window would show up after asking to scan
fixed: exception caused by non integer inputs
Maintainance release 0.2.1.1 (07.06.09)
fixed: failed to store settings in .jar file
new: settings stored in home folder (so you don't have to re-enter them every release)

Version 0.2
new: scan network for devices
new: undo/redo
new: keyboard shortcuts
new: recent files
new: remembers window size, current file and file history
new: asks to scan or load example on first launch
fixed: settings/add not disabled in menu when multiple devices were selected
fixed: remove/connect/disconnect/settings not disabled when nothing was selected
fixed: checkboxes in main menu out of sync with the actual state
fixed: displayed frame before settings were applied, flickered
fixed: background of statistics too high, blocked vie

Version 0.1.9
new: real PING using ICMP/ECHO
fixed: remembers ping interval as well
fixed: multi-select with right-click disabled settings/add

Version 0.1.8
new: triggers (execute commands when device changes its state)
(still a bit unstable, refrain from using <>&|"; etc., use scripts with parameters)
new: remembers settings (legend, stats, grid, triggers)
new: statistics
fixed: multi-select triggered when clicking on a device while another device was active
changed: reorganized some menus

Version 0.1.7
new: multi-select
new: multi-remove/disconnect/move/align
fixed: settings dialog now centered
fixed: align to grid no longer aligns to top-left
fixed: example file now hardcoded

Version 0.1.6
new: image export (thanks Hak5 for the inspiration)
new: save as...
fixed: better coloring mechanism
fixed: connecting three switches in a row resulted in gray middle switch

Version 0.1.5:
new: lines are selectable
new: remove single lines
new: insert switch into a line

Version 0.1.4
new: progressbar tooltip indicates which ip is beeing pinged
fixed: "rightclick -> add" positions the new device at the current mouse position
changed: renamed from "NetMap" to "jNetMap"

Version 0.1.3
new: progressbar
new: name
fixed: gui hanged when pinging
fixed: centered text

Version 0.1.2
new: align to grid
new: menu replaces buttons
fixed: line to switch always gray

Version 0.1.1
new: grid mode
new: legend
new: lines are colored half/half

Version 0.1
first release


TwitAction - Use twitter to trigger programs on your PC!

$
0
0

This is broken thanks to Twitter switching to OAuth. (Won't fix, sorry)

Define what keywords TwitAction should listen to and as soon as you twitter one of those keywords, the associated program will be executed. Click on the trayicon of TwitAction to hide it and it will sit quietly in your tray (on plattforms that support trays, that is). It might be advisible to start if from the console, as it relays all stdout info from the executed programs to the console, so you can see what's going on. (java -jar TwitAction.jar)
 


» Download

Version 0.1 (24.06.2009)

executable .jar-file (crossplatform)
requires Java 1.6.0.13 or later

» get source code

released under the GPLv3
using the jtwitter API (LGPL)

jsvnstat - interactive network traffic analysis

$
0
0

Update: Version 2.0 is here! See changes for details.

jsvnstat is a web frontend for vnstat. It is largely based on javascript, so you can easily switch views without reloading the entire page. The graph is interactive, just hover over a datapoint to see what I'm talking about.
You can switch between line- and bar-graphs. You can also change settings such as decimal numbers in the settings.php file.

» Demo

static, as there is no vnstat on this server ^^

» Download

version: 2.0, 27.07.2013

License: GPLv3
libraries under their respective licenses
 
now also on sourceforge:https://sourceforge.net/projects/jsvnstat 

Requirements
- vnstat installed and working
- vnstat database created (vnstat -u -i eth0)
- running webserver with PHP support
- vnstat executable from the web (check PHP security settings)

Installation
- Copy all provided files to your webserver
- Apply appropriate permissions (chown -R www-data some/where/jsvnstat)
- Adjust settings.php if necessary

License
jsvnstat is published under the GPLv3, libraries under their respective licenses.

Librariesused
flot and crir

JSuggestField - The JTextField that makes suggestions

$
0
0

JSuggestField behaves like "Google Suggest", but you can use it in Java. It extends JTextField, adding special features. You can use it just like any other JComponent.

JSuggestField s = new JSuggestField(this, suggestData);

Archive contains the JSuggestField-class and an example. Tested with jre 1.6

» Download

version 0.5, 1. November 2011
new: define how jSuggestField matches inputs,
case sensitivity and setHint() for displaying a 'type here' text
Licensed under the GLPv3

jNetMap has a new home

$
0
0

Good news everyone!

I was able to take over the project-page on sourceforge, so you can now access the latest builds of the bottom-up rewrites of jNetMap! Just head over to sourceforge.net/projects/jnetmap.

There's also a nice project page, which is somewhat more suitable for distributing software than a blog.

Average wind direction

$
0
0

Compas by 25icons.comHere's a little PHP snippet for averaging wind directions.
Turns out there is a reason they teach you math in school ;-)

//Expects: An array containing wind direction in degrees
//Returns: Average wind direction

function avgWind($directionArray) {
  $sinsum = 0; $cossum = 0;
  foreach ($directionArray as $value) {
    $sinsum += sin(deg2rad($value));
    $cossum += cos(deg2rad($value));
  }
  return ((rad2deg(atan2($sinsum, $cossum)) + 360) % 360);
}

Some of you might have noticed that this only makes sense if you collect your samples multiple times per minute. This implementation also doesn't take wind speed into consideration. If this is your intent, multiply the sin(..) and cos(..) in the loop with the wind speed at that time. And yes, averaging [0,180] will result in 90° although 270° would also be correct, hence my first remark.

jNetMap on GetDeb

$
0
0

Cool! jNetMap 0.3.3.5 is now on GetDeb.net

"GetDeb is an unofficial project with the mission to provide the latest open source and freeware applications for the current Ubuntu Linux release, in an easy to install manner."

Thanks to Christoph Korn for packaging/publishing

  1. Install the getdeb package
  2. sudo apt-get update
  3. sudo apt-get install jnetmap

jNetMap Splash Screen

$
0
0

This is a draft of the splash screen for the upcoming 0.5-release.
Suggestions and submissions are welcome!
 


jNetMap sneak peak

$
0
0

Here's a preview of what the GUI of jNetMap version 0.5 will probably look like

jNetMap - Release schedule

$
0
0

I plan to release jNetMap version 0.5 some when in February 2011.
It's going quite well so far; the ICMP-Ping problem has been addressed, the UI has received a major facelift, multi-language support is working, a "notification system" will be added and I hope that we'll be able to support basic plugins.
I also intend to add "ping-agents", i.e. small scripts that can be written in any language and run on a machine in a remote subnet, which will check and report the status of those remote machines. This should improve the "visibility" of subnets and also reduce "ping noise" across the network.

jNetMap 0.5 ALPHA release

$
0
0

The alpha version of jNetMap 0.5 is now available for download! As this is an alpha version, there are no guarantees and no support. Play with it and tell me what you think :-)
Plugins are working now (jspf), SNMP is built-in and the ICMP-Ping issue is fixed for good. There is also a revamped Port-Scanner, but the automatic device discovery is not ready yet and the same goes for the notification-system. So there's still a lot of work to be done 'till the final release.

jNetMap 0.5 RC1 is here

$
0
0

I'm happy to announce the release of jNetMap version 0.5 RC1! It should by mostly stable by now, and most features have been frozen. This release also marks the end of the official project "jNetMap rebuild" at my university. This does not mean that I'll abandon this project, it just means that I won't be able to dedicate quite as much time to the project as I did for the last 6 months.

Since the rebuild finally supports different languages, I'm looking for translators that are willing to translate ~130 lines of text. English and German are available to serve as a basis for your translation.

Also, you can write your own plugins for jNetMap; simply implement one of these Inrerfaces: RightClickAction, Notifier or SidebarPlugin (PingMethodPlugin will soon be supported as well). Have a look at the javadoc or browse the repository to find out more.

SVN Visualization

jNetMap 0.5 is here!

$
0
0

I happy to announce the final release of jNetMap 0.5!
All known bugs of the 0.5-RC2 version should have been fixed and all planned features have been implemented.

Upcoming features for 0.6 (probably):
- DHCP Support (auto-detect changed addresses)
- Reports, Summaries & Statistics
- Improved image-export
- Automatic reports via Email
- ...your suggestions...
This might take a while (~Q4), as I'm currently busy writing my Bachelor-Thesis...

Know some Java? Wanna help? Drop me a line or write your own plugin!

jNetMap 0.5.4 released

$
0
0

Version 0.5.4 is here! I'm releasing it now to address an issue related to the latest java updates, which may break map files when you save them on 0.5.3. So please update to 0.5.4 as soon as possible. But that's not the only thing - here's the full list:

+ Hungarian translation by Zoltan Fekete
+ support for spacers in the toolbar
+ added hamburger menu
+ added script support (device menu)
+ added dummy ping method
+ added colored arrows and dots to interface lists
+ added edge labels
+ implemented multi-threaded status updates (configurable)
+ added OUI information if MAC is set (properties and info panel)
+ added desktop actions to the launcher (linux)
+ added custom mime-type "application/x-jnetmap" (linux)
* fixed serialization problem with latest java versions

» Download «


Viewing all 35 articles
Browse latest View live