[rtg] rtg db is not updating the changes

Chris Boyd cboyd at gizmopartners.com
Fri Aug 11 10:55:58 EDT 2006


Sekhar wrote:
> Hi,
>
> I have installed 0.7.4 in my system and it is working fine.I have a
> big problem when add any new router or switch to routers file every
> time i am running rtgtargmkr.pl file to get the targets.cfg file this
> is working fine but the related database is not updating.If i add a
> new customer to my router intrface that interface is not showing
> database for this i have to do manually.when i run rtgtargmkr.pl
> script it will tell us table and id need to update but it does't do
> automatically.
>
> This is problem with RTG or i am missing something.
>
> Any one is having some script please help me
>
> Thanks
>   
I use 0.7.4 on FreeBSD, and perform the following steps if I add a new 
router, switch, or interface:

    Run rtgtargmkr.pl
    Find the current poller PID (it's not in /var/run/)
    Kill it
    Restart the poller

Crude script to start the poller on FreeBSD 4.x follows:

#!/bin/sh
echo -n ' rtg '

case "$1" in
start)
        /usr/local/bin/rtgpoll -t /usr/local/etc/rtg/targets.cfg &
        ;;
stop)
#        kill -9 `cat /var/run/rtg.pid`
        ;;
*)
        echo "Usage: `basename $0` {start|stop}" >&2
        exit 64
        ;;
esac

exit 0

Then, if rtgtargmkr did not pick up the interface description (HP, 3Com 
and Intel make it difficult to set the description OID correctly where 
rtg can find it), I have to log into the database and manually update 
the descriptions as suggested by rtgtargmkr.

Hope this helps,

--Chris



More information about the RTG mailing list