INSTALL 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. Installation notes
  2. ==================
  3. Priviledges
  4. ===========
  5. symux needs read and write access to it's rrdfiles.
  6. symon needs:
  7. cpu, debug, if, io, mbuf, mem, proc, sensor - symon can run as nobody
  8. pf - symon needs r/w on /dev/pf
  9. Real quick
  10. ==========
  11. make && make install && vi /etc/symux.conf /etc/symon.conf &&
  12. ~symon/symux/c_smrrds.sh all &&
  13. /usr/local/libexec/symux &&
  14. useradd _symon
  15. /usr/local/libexec/symon
  16. or grab the port and do
  17. make package
  18. pkg_add symon-mon-version.tgz on all monitored hosts
  19. pkg_add symon-mux-version.tgz on the loghost
  20. Install the seperate syweb package to show the data stored in the rrd files.
  21. Less quick, but more verbose
  22. ============================
  23. - Install rrdtool where you want to run the gatherer.
  24. cd /usr/ports/net/rrdtool && make install
  25. - Building by hand: Check Makefile.inc for settings. Things to watch out for
  26. are:
  27. + PREFIX = Where does the installation tree start. Defaults to
  28. '/usr/local'.
  29. + BINDIR = Where should the daemons be put, relative to $PREFIX. Defaults
  30. to 'libexec'.
  31. + MANDIR = Where should the manuals be installed, relative to
  32. $PREFIX. Defaults to 'man'.
  33. + SHRDIR = Where are the example configurations to be installed. Defaults
  34. to 'share/symon'.
  35. Run make && make install
  36. - Building from the port:
  37. cd ~symon/ports/symon or cd /usr/ports/sysutils/symon
  38. make package
  39. cd /usr/ports/packages/$ARCH/All/
  40. pkg_add symon-mon-version.tgz on monitored hosts
  41. pkg_add symon-mux-version.tgz on the loghost | gatherer
  42. - Create an '/etc/symon.conf' for each monitored host and one symux.conf for
  43. the gatherer host. See the manual pages on how to specify alternative
  44. configuration file locations, if necessary. Note that there are example
  45. configurations for both in $PREFIX/$SHRDIR.
  46. - Create the rrd files where the incoming symon data is to be
  47. stored. $PREFIX/$SHRDIR/c_smrrds.sh is your friend. Note that syweb expects
  48. an '.../machine/*.rrd' style directory structure somewhere under /var/www.
  49. - Fire up symux and symon:
  50. /usr/local/libexec/symux && /usr/local/libexec/symon
  51. Check system logs for any failures.
  52. - Only if you need the webinterface: download and install syweb.
  53. Getting measurements without the web
  54. ====================================
  55. The client directory contains a perl module 'SymuxClient.pm' that can be used
  56. to read measurements as they come in at the symux host. A sample Perl program
  57. called 'getsymonitem.pl' shows how to use the module.
  58. Example:
  59. hoard$ getsymonitem.pl 127.0.0.1 2100 127.0.0.1 "cpu(0)" "idle"
  60. 93.40
  61. Historical data can be gathered using rrdfetch(1) from symux's rrd files.
  62. Portability
  63. ===========
  64. This package is an OpenBSD application. You might be able to make symux and
  65. syweb run on POSIX compliant unixes, but the monitoring application itself
  66. (symon) is OpenBSD specific.
  67. Willem Dijkstra - wpd@xs4all.nl
  68. $Id: INSTALL,v 1.13 2004/02/24 22:13:20 dijkstra Exp $