[rtg] rtg db is not updating the changes

Sekhar radhiilu at yahoo.com
Fri Aug 11 11:55:14 EDT 2006


thanks for your reply but i am surprised why database is not updating automatically and we have to do manually it is not good for any admins if they have 1000's of interfaces where they need to chage daily description change no one want to do manually all those things.
   
  any one or rtg developers can help how to update the database also if we add or remove any routers or interfaces.
   
  Thanks

Chris Boyd <cboyd at gizmopartners.com> wrote:
  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



 		
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gizmo.fireflynetworks.com/pipermail/rtg/attachments/20060811/e8343db3/attachment.htm


More information about the RTG mailing list