INSTALL 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. Installation notes
  2. ==================
  3. Priviledges
  4. ===========
  5. symux needs read and write access to it's rrdfiles.
  6. monitoring needs:
  7. cpu, if, mem, io - symon can run as nobody
  8. pf - symon needs r/w on /dev/pf
  9. symon2web is a php4 application and needs access to the rrdfiles. Note that
  10. symon2web interprets the url for graphing parameters. It should never be exposed
  11. to untrusted users | the outside world.
  12. Real quick
  13. ==========
  14. make && make install && vi /etc/symux.conf /etc/symon.conf &&
  15. ~symon/symux/c_smrrds.sh all &&
  16. /usr/local/libexec/symux &&
  17. /usr/local/libexec/symon
  18. or grab the port and do
  19. make package
  20. pkg_add symon-mon-version.tgz on all monitored hosts
  21. pkg_add symon-mux-version.tgz on the loghost
  22. pkg_add symon-web-version.tgz on the loghost
  23. Less quick, but more verbose
  24. ============================
  25. - Install rrdtool where you want to run the gatherer.
  26. cd /usr/ports/net/rrdtool && make install
  27. - Install php4 where you want to run the web frontend.
  28. cd /usr/ports/www/php4 && make install
  29. - Building by hand: Check Makefile.inc for settings. Things to watch out for
  30. are:
  31. + PREFIX = Where does the installation tree start. Defaults to
  32. '/usr/local'.
  33. + BINDIR = Where should the daemons be put, relative to $PREFIX. Defaults
  34. to 'libexec'.
  35. + MANDIR = Where should the manuals be installed, relative to
  36. $PREFIX. Defaults to 'man'.
  37. + SHRDIR = Where are the example configurations to be installed. Defaults
  38. to 'share/symon'.
  39. Run make && make install
  40. - Building from the port:
  41. cd ~symon/ports/symon or cd /usr/ports/sysutils/symon
  42. make package
  43. cd /usr/ports/packages/$ARCH/All/
  44. pkg_add symon-mon-version.tgz on monitored hosts
  45. pkg_add symon-mux-version.tgz on the loghost | gatherer
  46. pkg_add symon-web-version.tgz on the loghost | webfrontend
  47. - Create an '/etc/symon.conf'. Note that there is an example configuration in
  48. $PREFIX/$SHRDIR.
  49. - Create a symux.conf on the gatherer host. You can specify alternative
  50. locations than '/etc/symux.conf' using 'symux -f <symux.conf>'.
  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 'symon2web'
  53. expects an '.../machine/*.rrd' style directory structure.
  54. - Fire up symon, symux. Check system logs for any failures.
  55. - Only if you need the webinterface: symon2web is installed in
  56. $PREFIX/$SHRDIR/. Copy the files to a convenient apache directory and modify
  57. the symon2web/datasources.inc to reflect your filelocations. datasources.inc
  58. also contains some settings on how the data is displayed.
  59. symon2web runs 'rrdtool' to generate graphs as requests for pictures come
  60. in. As of OpenBSD 3.2 apache is chrooted at /var/www. Make sure a statically
  61. linked rrdtool is available, or break the chroot. You were not planning of
  62. running this software on a machine tied to the internet anyway.
  63. + $symon2web["view"] = show all graphs for all machines ('all') or show
  64. only graphs for a single selected machine ('one').
  65. + $symon2web["magnify"] = to which format should the graph be magnified if
  66. clicked on. Values are:
  67. '' for no magnification,
  68. 'tiny' = 100 x 75,
  69. 'small' = 200 x 125,
  70. 'normal' = 300 x 225,
  71. 'big' = 600 x 450,
  72. 'huge' = 1024 x 640.
  73. + test your setup with test_config.php - this will try to run rrdtool and
  74. see if your rrd files are accessable by symon2web.
  75. Getting measurements without the web
  76. ====================================
  77. The client directory contains a perl module 'SymuxClient.pm' that can be used
  78. to read measurements as they come in at the symux host. A sample Perl program
  79. called 'getsymonitem.pl' shows how to use the module.
  80. Example:
  81. hoard$ getsymonitem.pl 127.0.0.1 2100 127.0.0.1 "cpu(0)" "idle"
  82. 93.40
  83. Historical data can be gathered using rrdfetch(1) from symux's rrd files.
  84. Portability
  85. ===========
  86. This package is an OpenBSD application. You might be able to make symux and
  87. symon2web run on POSIX compliant unixes, but the monitoring application itself
  88. (symon) is OpenBSD specific.
  89. Willem Dijkstra <wpd@xs4all.nl>
  90. $Id: INSTALL,v 1.9 2002/11/29 10:50:28 dijkstra Exp $