[rtg] rtgpoll failed: using btoneill's targetmaker
Yu Safin
calanet at gmail.com
Tue Nov 14 12:41:45 PST 2006
On 11/14/06, bill fumerola <billf at mu.org> wrote:
> On Tue, Nov 14, 2006 at 03:21:37PM -0500, Yu Safin wrote:
> > This is what I get when I run rtgpoll.
> > I am running SLES 10. I will read about strace to see how I can use it.
>
> you might not need it quite yet:
>
> > caplan:/usr/local/rtg/bin # ./rtgpoll -d -vvv -t /opt/rtg/etc/targets.cfg
> >
> > caplan:/usr/local/rtg/bin # tail -10 /var/log/localmessages
> > Nov 14 15:01:54 caplan rtgpoll: RTG version 0.8.1 starting.
> > Nov 14 15:01:54 caplan rtgpoll: Daemon detached
> > Nov 14 15:01:54 caplan rtgpoll: Checking another instance with pid 27266.
> > Nov 14 15:01:54 caplan rtgpoll: PID 27266 is no longer running. Starting
> > anyway.
> > Nov 14 15:01:54 caplan rtgpoll: Using RTG config file
> > [/usr/local/rtg/etc/rtg.conf].
> > Nov 14 15:01:54 caplan rtgpoll: Initialize hash table pointers: 20000 bytes.
> > Nov 14 15:01:54 caplan rtgpoll: Reading RTG target list
> > [/opt/rtg/etc/targets.cfg].
> > Nov 14 15:01:54 caplan rtgpoll: Successfully hashed [0] targets, (0 bytes).
> > Nov 14 15:01:54 caplan rtgpoll: Error updating target list.
>
> /opt/rtg/etc/targets.cfg had no targets that succeeded. is it the same
> targets file you were previously using? does it have all the required
> fields for a successful poll?
>
> --
> - bill fumerola / billf at FreeBSD.org
>
>
>
I ran BTONEILL's targetmaker that produced the /opt/rtg/etc/targets.cfg file.
At the time I was running RTG 0.7.4 and it came to my attention that
the targets.cfg I was using required the newer cvs version.
So I did a "make clean" on the RTG 0.7.4 version, downloaded the cvs
version and proceeded to install.
I have never seen a valid targets.cfg since I am new to both RTG and
BTONEILL's rtgtargmkr replacement so I apoligize for not being a big
help.
Please take a look at the following file and tell me if it is not correct.
It was produced by targetmaker. I do have a server by the name of
lnxcapd at the address specified of 172.22.130.10. My community's
name is "public" and the snmpd daemon supports version 2.
In the mean time, should I try to run rtgtargmkr.pl to see what it produces.
caplan:/usr/local/rtg/bin # more /opt/rtg/etc/targets.cfg
# Generated 11/14/2006 13:57 by ./targetmaker
# START lnxcapd
host 172.22.130.10 {
community public;
snmpver 2;
};
# END lnxcapd
More information about the RTG
mailing list