INSTALL 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Installation notes
  2. ==================
  3. Privileges
  4. ==========
  5. symux needs read and write access to its rrdfiles.
  6. symon needs to interface with your kernel. Depending on your host system this
  7. leads to different privilege requirements:
  8. OpenBSD: - sysctl: cpu, debug, if, io, mbuf, mem, proc, sensor
  9. - rw on /dev/pf for pf
  10. NetBSD: - sysctl: cpu, debug, if, io, mbuf, proc
  11. - r on /dev/sysmon for sensor
  12. FreeBSD: - sysctl: all
  13. Linux: - r on /proc/net/dev: if
  14. - r on /proc/stat: cpu
  15. Real quick on OpenBSD
  16. =====================
  17. (cd /usr/ports/net/rrdtool && make install) &&
  18. make &&
  19. make install &&
  20. vi /etc/symux.conf /etc/symon.conf &&
  21. ~symon/symux/c_smrrds.sh all &&
  22. /usr/local/libexec/symux &&
  23. useradd -d /var/empty -L daemon -c 'symon Account' -s /sbin/nologin _symon
  24. /usr/local/libexec/symon
  25. or grab the port and do
  26. make package
  27. pkg_add symon-mon-version.tgz on all monitored hosts
  28. pkg_add symon-mux-version.tgz on the loghost
  29. Install the seperate syweb package to show the data stored in the rrd files.
  30. Less quick, but all OSes
  31. ========================
  32. - Install rrdtool on the host that will also run your symux gatherer.
  33. BSDs: cd /usr/ports/net/rrdtool && make install
  34. - Check Makefile.inc for settings. Things to watch out for are:
  35. + PREFIX = Where does the installation tree start. Defaults to
  36. '/usr/local'.
  37. + BINDIR = Where should the daemons be put, relative to $PREFIX. Defaults
  38. to 'libexec'.
  39. + MANDIR = Where should the manuals be installed, relative to
  40. $PREFIX. Defaults to 'man'.
  41. + SHRDIR = Where are the example configurations to be installed. Defaults
  42. to 'share/symon'.
  43. + RRDDIR = $RRDDIR/include should yield rrd.h.
  44. BSDs: Run make && make install
  45. Linux: Run pmake && pmake install
  46. - Create an '/etc/symon.conf' for each monitored host and one symux.conf for
  47. the gatherer host. See the manual pages on how to specify alternative
  48. configuration file locations, if necessary. Note that there are example
  49. configurations for both in $PREFIX/$SHRDIR.
  50. - Create the rrd files where the incoming symon data is to be
  51. stored. $PREFIX/$SHRDIR/c_smrrds.sh is your friend. Note that syweb expects
  52. an '.../machine/*.rrd' style directory structure somewhere under /var/www.
  53. - Both symon and symux will daemonize if started normally. Start them with
  54. debugging on initially to iron out any configuration problems:
  55. $PREFIX/$BINDIR/symux -d &
  56. $PREFIX/$BINDIR/symon -d
  57. - Remove -d flags and check system logs for any failures.
  58. - Only if you need the webinterface: download and install syweb.
  59. Getting measurements without the web
  60. ====================================
  61. The client directory contains a perl module 'SymuxClient.pm' that can be used
  62. to read measurements as they come in at the symux host. A sample Perl program
  63. called 'getsymonitem.pl' shows how to use the module.
  64. Example:
  65. nexus$ getsymonitem.pl 127.0.0.1 2100 127.0.0.1 "cpu(0)" "idle"
  66. 93.40
  67. Historical data can be gathered using rrdfetch(1) from symux's rrd files.
  68. Portability
  69. ===========
  70. This package was originally built as an OpenBSD application. It now has
  71. rudimentary support for FreeBSD, NetBSD and Linux.
  72. Willem Dijkstra - wpd@xs4all.nl
  73. $Id: INSTALL,v 1.16 2005/01/14 16:15:21 dijkstra Exp $