home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume11 / watcher / part01 / Ideas < prev    next >
Encoding:
Text File  |  1987-09-27  |  1.3 KB  |  37 lines

  1.     Repace number with int or float.  Currently watcher treats all
  2.         numbers as floats.  There is some code already there
  3.         that could handle the different types.  The %d for a
  4.         float is counterintuitive.  This would be fixed by
  5.         making %d int and %f float like printf.
  6.  
  7.     Use yacc's union rather than YYSTYPE default.  This would
  8.         probably help portability.
  9.  
  10.     Print alias in pp output.  Currently it isn't printed.  No real
  11.         reason for this.
  12.  
  13.     Multiple ok values for string fields.  Sometimes there may be
  14.         more than one string value which is considered "ok".
  15.         Watcher should be able to handle this.  Possible
  16.         syntax:
  17.  
  18. (/usr/ucb/ruptime | fgrep -f /usr/local/lib/watcher/UnmHosts) { ruptime }
  19.     2 status%s 1 machine%k 7 loadav%d:
  20.         loadav 0 10;
  21.         status "up", "slow", "dead".
  22.  
  23.     Positive and/or negative deltas make a difference.  Currently
  24.         watcher only notices things which increase.  It would
  25.         probably be useful to watch for things that drop also.
  26.         Possible syntax:
  27.  
  28. (df -i | /usr/ucb/tail +2 | grep -v tmp) { 'df no tmp' }
  29.     1-9 filesystem%k 41-42 spaceused%d 64-65 inodesused%d 1-9 device%k:
  30.         spaceused -15%;
  31.         spaceused 0 89;
  32.  
  33.     Right to left parsing as option instead of always l-r.  It may
  34.         be easier at times to specify that the useful info is
  35.         located in the fifth from the right column rather than
  36.         the eit`ghth from the left.
  37.