monmux.conf 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # $Id: monmux.conf,v 1.16 2002/08/26 14:53:01 dijkstra Exp $
  3. #
  4. # Initial monmux.conf demonstrates how I configure monmux.
  5. #
  6. # hub <hubname> defines the destination of all monitored data described in this
  7. # configuration file.
  8. #
  9. # note that monmux listens for incoming mon traffic on udp 2100 and incoming
  10. # client connections on tcp 2100
  11. #
  12. mux 10.0.0.1:2100
  13. #
  14. # source <hostname> defines a source of monitored data.
  15. #
  16. source 10.0.0.1 {
  17. # All accepted formats have to be defined explicitly.
  18. #
  19. # cpu(x) - gather stats for cpu nr. x
  20. # mem - gather memory stats
  21. # if(x) - gather io stats for interface x
  22. # io(x) - gather io stats for disk x.
  23. accept { cpu(0), mem, if(xl0), if(de0),
  24. if(lo0), io(wd0), io(wd1),
  25. io(wd2), io(wd3), io(cd0)}
  26. # Define where data should be put
  27. #
  28. # Accepted sources that are not written out will be
  29. # discarded.
  30. write cpu(0) in "/export/mon/www/cpu0.rrd"
  31. write mem in "/export/mon/www/mem.rrd"
  32. write if(xl0) in "/export/mon/www/if_xl0.rrd"
  33. write if(de0) in "/export/mon/www/if_de0.rrd"
  34. write if(lo0) in "/export/mon/www/if_lo0.rrd"
  35. write io(wd0) in "/export/mon/www/io_wd0.rrd"
  36. write io(wd1) in "/export/mon/www/io_wd1.rrd"
  37. write io(wd2) in "/export/mon/www/io_wd2.rrd"
  38. write io(wd3) in "/export/mon/www/io_wd3.rrd"
  39. write io(cd0) in "/export/mon/www/io_cd0.rrd"
  40. }
  41. source 10.0.0.2 {
  42. accept { cpu(0), mem, if(sis0), if(sis1),
  43. if(lo0), if(wi0), io(wd0) }
  44. write cpu(0) in "/export/mon/4512/cpu0.rrd"
  45. write mem in "/export/mon/4512/mem.rrd"
  46. write if(sis0) in "/export/mon/4512/if_sis0.rrd"
  47. write if(sis1) in "/export/mon/4512/if_sis1.rrd"
  48. write if(lo0) in "/export/mon/4512/if_lo0.rrd"
  49. write if(wi0) in "/export/mon/4512/if_wi0.rrd"
  50. write io(wd0) in "/export/mon/4512/io_wd0.rrd"
  51. }