2
** Copyright (C) 2009-2011 Softwink, Inc.
3
** Copyright (C) 2009-2011 Champ Clark III <champ@softwink.com>
5
** This program is free software; you can redistribute it and/or modify
6
** it under the terms of the GNU General Public License Version 2 as
7
** published by the Free Software Foundation. You may not use, modify or
8
** distribute this program under any other version of the GNU General
11
** This program is distributed in the hope that it will be useful,
12
** but WITHOUT ANY WARRANTY; without even the implied warranty of
13
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
** GNU General Public License for more details.
16
** You should have received a copy of the GNU General Public License
17
** along with this program; if not, write to the Free Software
18
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
* Gives the user basic operation of the sagan binary. Also displays
24
* information of compile time options
29
#include "config.h" /* From autoconf */
38
void sagan_usage(void)
40
fprintf(stderr, "\n--[Sagan version %s | Help/usage screen]--------------------------------\n\n", VERSION);
41
fprintf(stderr, "-h, --help\t\tHelp (this screen).\n");
42
fprintf(stderr, "-d, --debug [type]\tTypes: syslog,load");
44
#if defined(HAVE_LIBMYSQLCLIENT_R) || defined(HAVE_LIBPQ)
45
fprintf(stderr, ", sql");
49
fprintf(stderr, ", smtp");
52
#ifdef HAVE_LIBLOGNORM
53
fprintf(stderr, ", normalize");
57
fprintf(stderr, ", plog");
60
fprintf(stderr, ".\n");
62
fprintf(stderr, "-D, --daemon\t\tMake process a daemon (fork to the background).\n");
63
fprintf(stderr, "-U, --user\t\tRun as user (defaults to 'sagan').\n");
64
fprintf(stderr, "-c, --chroot\t\tChroot to username 'sagan's home.\n");
65
fprintf(stderr, "-f, --config\t\tSagan configuration file to load.\n");
66
fprintf(stderr, "-p, --program\t\tRun Sagan in syslog-ng's 'program' mode.\n\n");
69
fprintf(stderr, "* PostgreSQL support is included\n");
72
#ifdef HAVE_LIBMYSQLCLIENT_R
73
fprintf(stderr, "* MySQL support is included\n");
77
fprintf(stderr, "* libesmtp (SMTP) support is included\n");
80
#ifdef HAVE_LIBPRELUDE
81
fprintf(stderr, "* Prelude (libprelude) support is included\n");
84
#ifdef HAVE_LIBLOGNORM
85
fprintf(stderr, "* liblognorm (log normalization) support is included\n");
89
fprintf(stderr, "* PLOG (syslog sniffer) support is included\n");