NAME

togatherd - SNMP data gatherer daemon


SYNOPSIS

  togatherd [options] configfile...


DESCRIPTION

togatherd collects data from SNMP devices regularly and saves them via the program rrdtool(1). The TGcgi(1) scripts use this data to display WWW pages with graphs of the data.


OPTIONS

-h|--help

Displays a short usage information and exits.

-f|--file

Names a configuration file. Can be given multiple times. Configuration files can be given as arguments on the command line too.

-l|--filefrom

Specify a file which contains the names of configuration files, one on each line.

-m|--mrtgconfig

Names a MRTG configuration file. togatherd can use MRTG config files to ease the transition from MRTG to ToGather. Only one MRTG config file can be given but you can use the MRTG option ``include: otherfile'' to merge several files to one. See reference in the MRTG documentation.

-n|--dontfork

Don't fork to background. Won't disconnect from the terminal and will display any messages on STDOUT/STDERR (instead of syslog).

-t|--test

Test only. Checks if the configuration is correct and reports errors. Won't touch the config cache so you can test a config file while another daemon is running on it.

-v|--verbose

Be verbose. Will tell you sometimes what it's doing. Accepts a number for the verbosity level (useful: 1-3).

-r|--rebuild

With this option togatherd will rebuild the config cache rergardless whether it thinks it hasn't changed or --test is set. Won't touch the cache if another daemon is running on the config file.

-u|--user

togatherd will switch its process owners user id to this user if given.

-g|--group

togatherd will switch its process owners group id to this group if given.


EXAMPLES

Check a configuration:

  togatherd -t -v /var/netstat/config.cfg

And start the daemon if it's correct:

  togatherd -u netstat -g netadm /var/netstat/config.cfg


CONTROL

togatherd can be control by some SIGNALs:

 SIGINT    causes togatherd to exit
 SIGTERM
 
 SIGHUP    reload the config file
 
 SIGUSR1   increase the verbosity level
 SIGUSR2   set the verbosity level to 0

You can use the program tgctl to send some of the SIGNALs to the daemon. See tgctl(1) for how to tell togatherd to reload a config or to stop.


NOTES

togatherd only collects data and populates the database (represented by some rrd files). It does not create any graphs or web pages like MRTG does. The ToGather package contains some CGIs to create web pages and graphs from the collected data.

The ToGather applications don't access a config file directly. Instead the file is parsed once and a 'cache' is created which allows faster access. The drawback is that at least the daemon togatherd needs write access to this cache file which usually means write access to the config files' directory.

Calling togatherd -t configfile after changing the configfile recreates the cache. Any other ToGather application shouldn't need write access to the cache file later.


SEE ALSO

ToGather(1), tg_config(1), tgweb.cgi(1), rrdtool(1)


AUTHOR

 Rainer Bawidamann, Rainer.Bawidamann@rz.uni-ulm.de
 University of Ulm, University Computer Centre


COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA