Recently in Perl Category

Loadbars v0.5.0

Derzeit habe ich einen "run" und hab schon wieder eine Loadbars Version released. Ja, ich versuche auch mal wieder etwas Anderes zu bloggen, versprochen!

v0.5.0.png

Dieses Release hat aber sehr viele kleine wichtige Aenderungen mit drin. Z.B. passt sich die Fenstergroesse automatisch der Anzahl der angezeigen Balken an. Es ist auch moeglich die Fenstergroesse mit den Cursortasten manuell zu beeinflussen. Der angezeigte Text wird automatisch ausgeblendet, wenn die Balken zu schmal sind, so dass kein Text mehr reinpasst und automatisch eingeblendet, wenn wieder genuegend Pixel vorhanden sind. Ein weiteres Keyfeature ist, dass (bisher nur rudimentaer) auch die Speicherauslastung visualisiert werden kann. Bisher leider nur RAM und SWAP Verbrauch. Die ganzen feinen Untergliederungen (Puffer, Paging usw) sind noch nicht drin, ist jedoch geplant.

Hier das Changelog:

 Release v0.5.0
* Add stats for rudimentary memory and swap usage (--showmem option or m hotkey)
* Remove --width and --inter options
* Add --barwidth option, each bar is barwidth pixels now
* Add --maxwidth option, which represents the max total window width
* Auto disable text display if text does not fit into window (maxwidth) pixels
* Auto re-enable text display if text does fit again into window 
* Key right increases window width by 100px and left decreases by 100px
* Key down increases window height by 100px and up decreases by 100px
* Set 'samples' default values from 1000 down to 500.
* No sporadic crashes on shutdown anymore
* Some internal tweaks, no separate event thread needed anymore. This fixes
  some sporadic bugs.

Update: Einfach git pull im master Branch durchfuehren (.deb kommen auch irgendwann mal, versprochen!)

Loadbars v0.4.0 ist da

Hiermit gibt es eine neue Featureversion von Loadbars.

Sat Jan 21 18:32:45 CET 2012
* Released v0.4.0
* Also show stats for idle, iowait, irq, softirq, steal and guest cpu time
* Some parameters have been renamed (see --help)
* Introduced extended mode (use --extended 1 at startup or 'e' hotkey)
* Modified the bar colors a little bit (see --help)
* Some Bugfixes

Und so seiht das aus, wenn auch irq (weiss) und iowait (purple) visualisiert werden (Screenshot im extended mode):

2012-01-21-162610_1250x230_scrot.png
Die Hilfe sieht nun wie folgt aus:

pb@venus:~/git/loadbars$ ./loadbars --help
Explanations:
    st = Steal in % [see man proc] (extended)
        Color: Red
    gt = Guest in % [see man proc] (extended)
        Color: Red
    sr = Soft IRQ usage in % (extended)
        Color: White
    ir = IRQ usage in % (extended)
        Color: White
    io = IOwait cpu sage in % 
        Color: Purple
    id = Idle cpu usage in % (extended)
        Color: Black
    ni = Nice cpu usage in % 
        Color: Green
    us = User cpu usage in % 
        Color: Yellow, dark yellow if to>50%, orange if to>50%
    sy = System cpu sage in % 
        Blue, lighter blue if >30%
    to = Total CPU usage, which is (100% - id)
    pk = Max us+sy peak of last avg. samples (extended)
    avg = System load average; desc. order: 1, 5 and 15 min. avg. 
    1px horizontal line: Maximum sy+us+io of last 'avg' samples (extended)
    Extended means: text display only if extended mode is turned on
Examples:
    loadbars --extended 1 --showcores 1 --width 600 --hosts localhost
    loadbars --hosts localhost,server1.example.com,server2.example.com
    loadbars --cluster foocluster (foocluster is in /etc/clusters of cssh)
--average <ARG> - Num of samples for avg. (more fluent animations)
--cluster <ARG> - Cluster name from /etc/clusters
--extended <ARG> - Toggle extended display (0 or 1)
--factor <ARG> - Set graph scale factor (1.0 means 100%)
--height <ARG> - Set windows height
--hosts <ARG> - Comma sep. list of hosts; optional: user@ in front to each host
--inter <ARG> - Set update interval in seconds (default 0.1)
--samples <ARG> - Set number of samples until ssh reconnects
--showcores <ARG> - Toggle core display (0 or 1)
--showtexthost <ARG> - Toggle hostname/num text display (0 or 1)
--showtext <ARG> - Toggle text display (0 or 1)
--sshopts <ARG> - Set SSH options
--title <ARG> - Set the window title
--width <ARG> - Set windows width
pb@venus:~/git/loadbars$ 


Release of Loadbars v0.3.1

Was hat sich dieses Mal getan?

Release of Loadbars v0.3.0

Loadbars v0.3.0 just has been released. Whats new? Not much but good things:


Mon Dec 26 14:46:25 CET 2011
* Releases v0.3.0
* Peak CPU load is not displayed by default anymore. User 'p' command or
the --togglepeak 1 startup option.
* Peak CPU load is now also displayd in text format (marked as pk)
* New option --cluster which brings rudimentary ClusterSSH config file
support. E.g. './loadbars --cluster server' reads cluster server from
the /etc/clusters file.

PerlDaemon v1.2.1 released

perlcamel.pngHiermit release ich Version v1.2.1 des PerlDaemons. Seit v1.2 hat sich nicht wirklich viel getan ausser ein paar Typos und Dokumentationsverbesserungen. Zudem ist das Projekt nun auch nach Git umgezogen.

PerlDaemon ist ein universell einisetzbarer Daemon mit den folgenden Features:

  • Automatic daemonizing
  • Logging and logrotate support (SIGHUP)
  • Clean shutdown support (SIGTERM)
  • Pidfile support (incl. check on startup)
  • Easy to configure
  • Easy to extend

Viel Spass damit!

Loadbars v0.2.2 released

Nach ein paar Wochen Pause habe ich nun Loadbars in der Version v0.2.2 fertiggestellt. Das Changelog ist recht ueberschaubar:

* Sat Nov 19 11:54:51 CET 2011
* Released v0.2.2
* Added a 1px horizontal line to each bar which represent the max. peak
  of user and system cpu load of the last N samples (max. of the last 15 
  samples by default, it can be configured using --average)
* Default value for --average has been decreased from 30 to 15 sample 
  values

loadbars-v0.2.2.png

Danke an Ulli und Markus fuer die Idee mit dem Max-Peak!

Desweiteren ist dies das erste Release welches per Git "ausgerollt" wurde. Die aktuelle Version kann man sich aus dem master Branch wie unter http://loadbars.buetow.org/?site=Download beschrieben clonen.

Und das diff zur vorherigen Version kann man sich hier angucken: http://ssl.buetow.org/git/?p=loadbars.git;a=commitdiff;h=79989a4299b929e2111ae03cadc19a4a344b9869

Wer auf nummer Sicher gehen will, der kann sich auch den Tag v0.2.2 clonen, den ich per GnuPG signierte.

Viel Spass damit!

Loadbars v0.2.1 released

Nach einer weiteren knappe Woche habe ich gedacht Loadbars in der Version v0.2.1 zu releasen weil: "Release early and often".

Changelog: 

* Added grey separator lines between each hosts during CPU toggle mode * More intelligent CPU core numbering during CPU toggle mode * FreeBSD server support for CPU graphs has been tested and is working
using inprocfs mounted on /compat/linux/proc. * Changed licence to GPL 2 * Some more documentation * Some minor bugfixes

Loadbars v0.2.0 released

| 2 Comments
Nach nur kurzer Zeit habe ich nun die naechste Version von Loadbars freigegeben. Dieses Mal ist es sogar eine Majorversion, da sich grundlegend viel im Source geaendert hat. Insbesondere kann man die graphische SDL-Oberflaeche mit Hotkeys bedienen, womit die Command Line Shell wegfaellt. Sie war auch der Grund wegen vieler Bugs (die Libraries kamen nicht so recht mit den Perl-Threads zurecht, was dann auch mal zu komischen Verhaltensweisen fuehrte). Hier ist das Changelog:

Sa 6. Aug 22:04:15 CEST 2011
* Released v0.2.0 (new major version)
* No interactive CLI shell anymore but instead hotkeys for the 
 SDL interface (press h and see).
* Bugfixes (E.g. Loadbars does not hang anymore after typing commands)
* Major code refactoring

Loadbars v0.1.3.1 released

Hiermit release ich Loadbars in der Version 0.1.3.1. Dabei haben sich die folgenden Aenderungen ergeben:

lb-v0.1.1-thumb-400x66-343.png

* Fixed a segfault bug on SDL::Font using threads
* Added an advanced help option (h vs. H)
* Added new toggle option: Displaying bar number vs. hostname
* Some little code refactoring
* Some more minor bugfixes

Das Diff kann man sich auch angucken. 

Was ist Loadbars? Hier ein Auszug aus der Homepage:

Loadbars is a small Perl script which can be used to observe CPU loads of several remote servers at once in real time. It connects per SSH (using SSH public/private key auth) to several servers at once and vizualizes all server CPUs (summarized or each core separate) right next each other. Loadbars IS NOT the tool for collecting CPU loads and drawing graphs (per hour, day, week, month) for later analysis. There are enough other tools which can accomplish this (e.g. SNMP / RRDtool). However, those tools need some minutes until the first graphs are drawn. So Loadbars can be used to observe the current real time state in real time without waiting a few minutes first. Loadbars does not remember / historicize any load informations. Its just showing the current CPU usages like top or vmstat does.


    Wie gewohnt kann man sich den entsprechenden Tag aus dem Subversion-Repository beziehen.

    Released PerlDaemon v1.2

    perlcamel.pngI just released PerlDaemon v1.2. The changes are as follows: 

    Mo 13. Jun 11:40:49 CEST 2011
    * Added documentation (README file)
    * Added './control keys' which shows all the available properties

    Mo 6. Jun 09:03:57 CEST 2011
    * Added './control foreground' startup option
    * Added correct time carrying
    * Renamed TODO into WHISHLIST

    Do 2. Jun 11:09:25 CEST 2011
    * Added module load error handling

    Mo 30. Mai 21:29:20 CEST 2011
    * Implemented Time::HiRes job scheduling
    * Added passing of startup options. E.g.
    ./control start daemon.daemonize=no daemon.loopinterval=10
    starts perldaemon in foreground w/ a loopinterval of 10 seconds.
    It's possible to overwrite all defaults specified in perldaemon.conf

    Di 24. Mai 08:46:09 CEST 2011
    * Renamed modules config options

     

    And in code it looks like this. What's PerlDaemon? PerlDaemon is a minimal linux/unix daemon programmed in Perl supporting logrotating, starting, stopping and a minimal configuration file. It can be extended to fit any task.

    And here is the extra documentation which I wrote.

    Pages

    Powered by Movable Type 4.35-en

    About this Archive

    This page is an archive of recent entries in the Perl category.

    P. B. Labs is the previous category.

    PHP is the next category.

    Find recent content on the main index or look in the archives to find all content.