c75e6d7329
RTG is a flexible, scalable, high-performance SNMP statistics monitoring system. It is designed for enterprises and service providers who need to collect time-series SNMP data from a large number of targets quickly. All collected data is inserted into a relational database that provides a common interface for applications to generate complex queries and reports. RTG includes utilities that generate configuration and target files, traffic reports, 95th percentile reports and graphical data plots. These utilities may be used to produce a web-based interface to the data. * Runs as a daemon, incurring no cron or kernel startup overhead * Written entirely in C for speed, incurring no interpreter overhead * Multi-threaded for asynchronous polling and database insertion * Inserts data into a relational database where complex queries and reports may be generated * Performs no data averaging in order to support billing, etc. * Can poll at sub-one-minute intervals Based on a submission from Tim Kornau via bernd@ and used at bsws (hence high initial PKGNAME=...p5) - requested by henning@.
31 lines
989 B
Plaintext
31 lines
989 B
Plaintext
$OpenBSD: patch-src_rtg_h,v 1.1.1.1 2008/07/19 13:52:22 sthen Exp $
|
|
--- src/rtg.h.orig Thu Sep 25 17:56:04 2003
|
|
+++ src/rtg.h Thu Nov 24 11:58:31 2005
|
|
@@ -26,8 +26,8 @@
|
|
/* Define CONFIG_PATHS places to search for the rtg.conf file. Note
|
|
that RTG_HOME, as determined during autoconf is one path */
|
|
#define CONFIG_PATHS 3
|
|
-#define CONFIG_PATH_1 ""
|
|
-#define CONFIG_PATH_2 "/etc/"
|
|
+#define CONFIG_PATH_1 "/etc/rtg/"
|
|
+#define CONFIG_PATH_2 ""
|
|
|
|
/* Defaults */
|
|
#define DEFAULT_CONF_FILE "rtg.conf"
|
|
@@ -37,6 +37,7 @@
|
|
#define DEFAULT_LOWSKEWSLOP .5
|
|
#define DEFAULT_OUT_OF_RANGE 93750000000ull
|
|
#define DEFAULT_DB_HOST "localhost"
|
|
+#define DEFAULT_DB_PORT 3306
|
|
#define DEFAULT_DB_DB "rtg"
|
|
#define DEFAULT_DB_USER "snmp"
|
|
#define DEFAULT_DB_PASS "rtgdefault"
|
|
@@ -78,6 +79,7 @@ typedef struct config_struct {
|
|
unsigned int interval;
|
|
unsigned long long out_of_range;
|
|
char dbhost[80];
|
|
+ unsigned int dbport;
|
|
char dbdb[80];
|
|
char dbuser[80];
|
|
char dbpass[80];
|