[rtg] Valid config for RTG HEAD
Matt Provost
mprovost at termcap.net
Mon Aug 14 18:18:26 EDT 2006
On Mon, Aug 14, 2006 at 08:18:18PM +0100, Peter Bristow wrote:
> Hi
> I have built RTG from CVS HEAD earlier today on an OpenBSD 3.9 box.
> I'm having troubles configuring rtg though. Are there any known
> problems with rtg from CVS at the moment?
> I have tried using the below config which is pretty much lifted from
> the docs however I'm getting problems.
>
> Interval 300
> HighSkewSlop 3
> LowSkewSlop .5
> #OutOfRange 93750000000
> #SNMP_Ver 1
> SNMP_Port 161
> DB_Host localhost
> DB_Database rtg
> DB_User rtg
> DB_Pass dbpass
> Threads 5
>
> host [127.0.0.1] {
> community [rocommunity];
> snmpver [2];
> target [.1.3.6.1.2.1.2.2.1.10.1] {
> bits [32];
> table [ifInOctets_2];
> id [1];
> speed [4500000000];
> descr "[description]";
> };
> };
>
> $ /usr/local/bin/rtgpoll -c rtg.conf -D -vv -t target.me
> RTG version 0.8.1 starting.
> Using RTG config file [rtg.conf].
> Initialize hash table pointers: 20000 bytes.
> Reading RTG target list [target.me].
> unexpected character: [targets failure on line 1 - syntax error
> last token parsed: 127.0.0.1]
> $
>
> Any guidance or known working example configs would be greatly recieved.
>
You don't need the brackets. Just "host 127.0.0.1 {" for the first line.
It's actually complaining about that when it says "unexpected
character:[" but it looks like it needs a newline there.
Matt
More information about the RTG
mailing list