INSTALL 3.4 KB

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