| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 | .\"  -*- nroff -*-.\".\" Copyright (c) 2001-2002 Willem Dijkstra.\" All rights reserved..\" .\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" .\"    - Redistributions of source code must retain the above copyright.\"      notice, this list of conditions and the following disclaimer..\"    - Redistributions in binary form must reproduce the above.\"      copyright notice, this list of conditions and the following.\"      disclaimer in the documentation and/or other materials provided.\"      with the distribution..\" .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS.\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE.\" COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE.\" POSSIBILITY OF SUCH DAMAGE..\" .Dd April 5, 2002.Dt SYMON 8.Os.Sh NAME.Nm symon.Nd system monitor.Sh SYNOPSIS.Nm .Op Fl vd.Op Fl f Ar filename.Pp.Sh DESCRIPTION.Nmis a lightweight system monitor that measures cpu, memory, debug,process, interface and disk statistics every 5 seconds. This informationis then spooled to.Xr symux 8for further processing. .Pp.Nmhas been designed to inflict minimal performance and security impact onthe system it monitors..Xr symux 8has performance impact proportional to the amount of streams it needs tomanage. Ideally.Xr symux should live on a different system and collect data from several .Nminstances in a LAN. .Lp.Nmpriviledge needs depend on the probes used. The cpu, mem, mbuf, disk,debug and interface probes will work even when symon runs as.Ar "nobody" . For pf, read and write access to .Pa /dev/pfis needed, so .Nm will have to run as.Ar "root"..LpThe options:.Bl -tag -width Ds.It Fl vShow version information..It Fl dStop .Nmfrom becoming a daemon and show debug information on stdout..It Fl f Ar filenameRead configuration from .Ar filenameinstead of .Pa /etc/symon.conf ..El.Sh CONFIGURATION.Nmobtains configuration data from .Pa /etc/symon.conf .The configuration file contains monitor stanzas that define whatresources should be monitored and to which.Xr symux 8the information should be streamed to..PpMultiple monitor statements to different muxes are allowed. Whitespace,newlines and text behind '#' are ignored. The format in BNF:.Pp.nfmonitor-rule = "monitor" "{" resources "}" "stream" ["to"] host [ port ]resources    = resource ["(" argument ")"] [ ","|" " resources ]resource     = "cpu" | "mem" | "if" | "io" | "pf" | "debug" |                "proc" | "mbuf" | "sensor"host         = ip4addr | ip6addr | hostnameport         = [ "port" | "," ] portnumberargument     = number | interfacename | diskname.fi.Sh EXAMPLEHere is an example .Ar symon.confthat monitors cpu, memory, pf, interfaces xl0/de0/lo0/wi0, diskswd[0-3]/cd[0-1], debug variables debug0 to debug19 and streams thatinformation to localhost on port 2100..Pp.nfmonitor { cpu(0),  mem, pf, if(xl0), if(de0),          if(lo0), if(wi0), io(wd0), io(wd1),           io(wd2), io(wd3), io(cd0), io(cd1),           io(ccd0), debug, proc(httpd) } stream to 127.0.0.1 2100.fi.Sh SIGNALS.Bl -tag -width Ds.It SIGHUPCauses.Nmto read .Pa /etc/symon.conf ..Nmwill keep the old configuration if errors occured during parsing of theconfiguration file..Sh FILES.Bl -tag -width Ds.It Pa /var/run/symon.pidContains the program id of the.Nmdaemon..It Pa /etc/symon.conf.Nmsystem wide configuration file. .El.Sh BUGSEvery monitored resource mentioned.Pa /etc/symon.conf gets queried. Mentioning, for example, cpu(0) twice for different muxes willresult in two distinct cpu(0) measurement actions..PpThe proc module is too simple: memory shared between two instances of the sameprocess is simply counted twice..Pp.Nm does not check whether resources mentioned in .Pa /etc/symon.confexist. .Sh AUTHORWillem Dijkstra <wpd@xs4all.nl>. Daniel Hartmeier <daniel@benzedrine.cx>contributed the pf probe and helped to port to big-endian architectures..Sh SEE ALSO.Xr symux 8  
 |