"Fossies" - the Fresh Open Source Software Archive

Member "xload-snmp-0.5/INSTALL" (17 Mar 2003, 1672 Bytes) of package /linux/privat/old/xload-snmp-0.5.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 Requirements:
    3 
    4 To build xload-snmp you need to have the headers and libs for Net (UCD) SNMP
    5 as well as the regular X11 stuff. Net SNMP is available at
    6 http://net-snmp.sourceforge.net
    7 
    8 Installation:
    9 
   10 Is straightforward. Do:
   11 
   12 ~$ xmkmf -a
   13 ~$ make
   14 ~# make install install.man
   15 
   16 USAGE:
   17 
   18 The new executable will do everything the old xload did, plus some new
   19 SNMP-related flags. A typical invocation to monitor the load of the host
   20 systhug would look like:
   21 
   22 ~$ xload -peername 'systhug' -community ~/.server-load -oid 'laLoadFloat.1'
   23 
   24 Or an alternative with the -factor option:
   25 
   26 ~$ xload -peername 'systhug' -community ~/.server-load -oid 'laLoadInt.1' \
   27    -factor 100
   28 
   29 Read the manpage for more details.
   30 
   31 TODO:
   32 
   33 I'm not really experienced with SNMP, or Xt, so there should probably be
   34 lots of crossbar testing with various SNMP servers to make sure it works
   35 like it should.
   36 
   37 We don't yet deal with return values which might be strings. i.e. a string
   38 result of "1.000" should be acceptable. If we get a string that's not a
   39 number we should gracefully... exit? not plot?
   40 
   41 64 bit integer return values are also not tested. The value into which we
   42 are storing the returned SNMP data is a double, I'm just not sure how it
   43 will react to a 64 bit return value.
   44 
   45 Binary packages.
   46 
   47 I've found a GtkStripChart widget. If it's any good I might try switching
   48 to Gtk. Why? I think it would be neat if you could mouse over a point on
   49 the histogram and a tool tip would tell you what _time_ that point was
   50 plotted. This would probably be easier to do by adding to or subclassing
   51 GtkStripChart than by staying with Athena. Gtk would allow me an escape
   52 from Athena and Xt lossage in general.
   53