INSTALL 3.3 KB

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