INSTALL 2.9 KB

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