# # $Id: monmux.conf,v 1.16 2002/08/26 14:53:01 dijkstra Exp $ # # Initial monmux.conf demonstrates how I configure monmux. # # hub defines the destination of all monitored data described in this # configuration file. # # note that monmux listens for incoming mon traffic on udp 2100 and incoming # client connections on tcp 2100 # mux 10.0.0.1:2100 # # source defines a source of monitored data. # source 10.0.0.1 { # All accepted formats have to be defined explicitly. # # cpu(x) - gather stats for cpu nr. x # mem - gather memory stats # if(x) - gather io stats for interface x # io(x) - gather io stats for disk x. accept { cpu(0), mem, if(xl0), if(de0), if(lo0), io(wd0), io(wd1), io(wd2), io(wd3), io(cd0)} # Define where data should be put # # Accepted sources that are not written out will be # discarded. write cpu(0) in "/export/mon/www/cpu0.rrd" write mem in "/export/mon/www/mem.rrd" write if(xl0) in "/export/mon/www/if_xl0.rrd" write if(de0) in "/export/mon/www/if_de0.rrd" write if(lo0) in "/export/mon/www/if_lo0.rrd" write io(wd0) in "/export/mon/www/io_wd0.rrd" write io(wd1) in "/export/mon/www/io_wd1.rrd" write io(wd2) in "/export/mon/www/io_wd2.rrd" write io(wd3) in "/export/mon/www/io_wd3.rrd" write io(cd0) in "/export/mon/www/io_cd0.rrd" } source 10.0.0.2 { accept { cpu(0), mem, if(sis0), if(sis1), if(lo0), if(wi0), io(wd0) } write cpu(0) in "/export/mon/4512/cpu0.rrd" write mem in "/export/mon/4512/mem.rrd" write if(sis0) in "/export/mon/4512/if_sis0.rrd" write if(sis1) in "/export/mon/4512/if_sis1.rrd" write if(lo0) in "/export/mon/4512/if_lo0.rrd" write if(wi0) in "/export/mon/4512/if_wi0.rrd" write io(wd0) in "/export/mon/4512/io_wd0.rrd" }