Xymon Mailing List Archive search

Hobbit 4.2 - new alfa release

9 messages in this thread

list Henrik Størner · Sun, 23 Apr 2006 23:24:09 +0200 ·
It could have been a beta, but I decided to play it safe :-)

There's a new trial version of Hobbit 4.2 available at
http://sourceforge.net/project/showfiles.php?group_id=128058&package_id=140220&release_id=407174

There are now man-pages in place for all of the programs and
config files you'll need to know about :-) Meaning that there
are still a few man-pages missing, but none that really matter.

This version fixes a number of bugs from the previous alfa-release:
* hobbitd_client should no longer crash when receiving reports from AIX,
  HP-UX or Solaris hosts;
* The interface statistics should work for most operating
  systems. Darwin (Mac OS X) is missing.
* The critical systems editor no longer requires the hobbit/etc/
  directory to be writable by your webserver userid;
* The client-local.cfg file is now installed on the Hobbit server;
* Memory reports from Darwin clients should work.

New stuff, compared to the initial alfa release:
* File- and directory-checks. This was triggered by requests
  to get a warning if a logfile was empty. Instead of making
  this a special-case issue, I decided to implement a new 
  "files" status column which uses client data to check 
  file- and directory meta-data (owner, permissions, size 
  etc.) You can also track the size of directories or files 
  in a graph.
* New "ports" column. The client reports the netstat output,
  and you can check on the number of TCP ports used by various
  services. Mirko Saam provided a lot of the code for this (thanks!)
* Processes can be counted, and graphed.
* The legend for monitored processes (and logs) can be changed,
  so you can provide a meaningful description of the process
  instead of just the regular expression you use to match the
  process line in the "ps" output.
* Eventlog report can select hosts based on the page path 
  where they appear.

If you install this version / upgrade from a previous
trial version or 4.1.2, please note that some files may
require manual updating:

* hobbitserver.cfg (add ",files,procs,ports" to TEST2RRD;
  ",files,procs,ports,ifstat" to GRAPHS; "ports,procs,svcs"
  to CLIENTSVCS).
* hobbitgraph.cfg (missing YAXIS in mysql*, new
  apache3-multi, ifstat, files, procs, ports). It's
  probably easiest to save any local graph definition 
  you've made, copy over the new hobbitd/etcfiles/hobbitgraph.cfg,
  and merge you local additions back into the file.
- hobbitcgi.cfg (new settings for nkedit, nkview, ackinfo)
- bb-services (modified ssh definition)
- hobbit-clients.cfg (only comments)
- hobbitlaunch.cfg (fixed path for bbcombotest from 
  server/ext/ to server/bin/)
- ~hobbit/server/www/menu/menu_items.js (change the
  "NK view" item to point "Critical systems", and make
  it point at the "cgi-bin/hobbit-nkview.sh" URL; 
  add the new "Edit critical systems" and make it point
  to the "cgi-secure/hobbit-nkedit.sh" URL).
 

So please beat this one up badly, and let me know what's missing before
I can release this for real.


Thanks,
Henrik
list Frédéric Mangeant · Mon, 24 Apr 2006 09:44:48 +0200 ·
quoted from Henrik Størner
Henrik Stoerner a écrit :
So please beat this one up badly, and let me know what's missing before
I can release this for real.
  
Hi Henrik

as with all 4.2 pre-releases, when starting the client in "local" mode, 
it still complains about the lack of hobbitd_client in ~client/bin :

/BB/hobbit/client/bin/hobbitclient.sh: line 54: 
/BB/hobbit/client/bin/hobbitd_client: No such file or directory

Making a symlink pointing to /BB/hobbit/server/bin/hobbitd_client works.

-- 

Frédéric Mangeant

Steria EDC Sophia-Antipolis
list Thomas Pedersen · Mon, 24 Apr 2006 10:02:13 +0200 ·
Does the graph include CPU and memory used by the process ?
quoted from Henrik Størner

Henrik Stoerner wrote:
* Processes can be counted, and graphed.
* The legend for monitored processes (and logs) can be changed,
  so you can provide a meaningful description of the process
  instead of just the regular expression you use to match the
  process line in the "ps" output.
list Henrik Størner · Mon, 24 Apr 2006 10:33:59 +0200 ·
quoted from Thomas Pedersen
On Mon, Apr 24, 2006 at 10:02:13AM +0200, Thomas wrote:
Does the graph include CPU and memory used by the process ?

Henrik Stoerner wrote:
* Processes can be counted, and graphed.
* The legend for monitored processes (and logs) can be changed,
 so you can provide a meaningful description of the process
 instead of just the regular expression you use to match the
 process line in the "ps" output.
No, it only counts the number of processes.


Regards,
Henrik
list Dominique Frise · Mon, 24 Apr 2006 10:45:04 +0200 ·
quoted from Frédéric Mangeant
Henrik Stoerner wrote:
...
...
So please beat this one up badly, and let me know what's missing before
I can release this for real.
I can't get LOG exclude/ignore pattern working :-(

- the man page of hobbit-clients.cfg says:

...
MSGS STATUS COLUMN SETTINGS
      LOG logfilename pattern [color [excludepattern]]
...

- but the comments in hobbit-clients.cfg say:
...
LOG filename match-pattern [ignore-pattern] [color] [TEXT=displaytext]
...

Which one is correct?


Dominique
list Dominique Frise · Mon, 24 Apr 2006 15:28:25 +0200 ·
quoted from Dominique Frise
Dominique Frise wrote:
Henrik Stoerner wrote:
...
...
So please beat this one up badly, and let me know what's missing before
I can release this for real.
I can't get LOG exclude/ignore pattern working :-(

- the man page of hobbit-clients.cfg says:

...
MSGS STATUS COLUMN SETTINGS
     LOG logfilename pattern [color [excludepattern]]
...

- but the comments in hobbit-clients.cfg say:
...
LOG filename match-pattern [ignore-pattern] [color] [TEXT=displaytext]
...

Which one is correct?


Dominique

My own reply ;-)
Finally got it working (what a pain!)

It would greatly help debugging LOG directives if this tag was supported by the 
hobbitd_client --test mode...


Two more ideas for the beta release
- SunOS client
   Here is a the df command I use in hobbitclient-sunos.sh

   df -kl | egrep "^Filesystem|^/dev/|^swap" | egrep -v "/var/run|volatile|cdrom"

   This one does the right job under Solaris 8/9/10 (probably 7 too)

- All clients
   It would be good to be able to manage the client-side modules
   launch centraly (actually localy managed in clientlaunch.cfg)

Cheers,

Dominique
University of Lausanne
list Henrik Størner · Mon, 24 Apr 2006 23:09:35 +0200 ·
quoted from Dominique Frise
On Mon, Apr 24, 2006 at 03:28:25PM +0200, Dominique Frise wrote:
- the man page of hobbit-clients.cfg says:
...
MSGS STATUS COLUMN SETTINGS
    LOG logfilename pattern [color [excludepattern]]
...
- but the comments in hobbit-clients.cfg say:
...
LOG filename match-pattern [ignore-pattern] [color] [TEXT=displaytext]

Which one is correct?
Sorry about that - the man-page was right, as I suppose you found out.

I've corrected this, and also allowed for a more readable format
"LOG logfilename MATCH=pattern IGNORE=excludepattern COLOR=color"
so you can have the parameters in random order.
quoted from Dominique Frise
It would greatly help debugging LOG directives if this tag was supported by 
the hobbitd_client --test mode...
Got it - I've implemented this now.
quoted from Dominique Frise
Two more ideas for the beta release
- SunOS client
  Here is a the df command I use in hobbitclient-sunos.sh

  df -kl | egrep "^Filesystem|^/dev/|^swap" | egrep -v "/var/run|volatile|cdrom"

  This one does the right job under Solaris 8/9/10 (probably 7 too)
I'll check this out.
quoted from Dominique Frise
- All clients
  It would be good to be able to manage the client-side modules
  launch centraly (actually localy managed in clientlaunch.cfg)
Let me think about this.


Regards,
Henrik
list Dominique Frise · Tue, 25 Apr 2006 08:40:14 +0200 ·
quoted from Henrik Størner
Henrik Stoerner wrote:
...
...
It would greatly help debugging LOG directives if this tag was supported by 
the hobbitd_client --test mode...

Got it - I've implemented this now.
Thanks a lot Henrik but...

[bb at iris bin]$ ./hobbitd_client --test
Hostname (.=end, ?=dump, !=reload) []: iris
Test (cpu, mem, disk, proc, log, port): log
log filename: /var/adm/messages
To read log data from a file, enter '@FILENAME' at the prompt
log line: Apr 22 11:01:21 iris krtld: [ID 472681 kern.notice] WARNING: 
mod_load: cannot load module 'fcsm'
log line:
Log status is green

Hostname (.=end, ?=dump, !=reload) [iris]:

After entering the first line and return, there is no status feedback.
The second empty line gives green.

Am I missing something?


Dominique
UNIL - University of Lausanne
list Jim Boone · Tue, 25 Apr 2006 10:26:23 -0700 ·
quoted from Henrik Størner
- ~hobbit/server/www/menu/menu_items.js (change the
 "NK view" item to point "Critical systems", and make
 it point at the "cgi-bin/hobbit-nkview.sh" URL; 
 add the new "Edit critical systems" and make it point
 to the "cgi-secure/hobbit-nkedit.sh" URL).
 

When upgrading from 4.0.4 the menu_items.js file is not replaced.

- Jim