Prophidys / RTG2

Realtime Traffic Grapher 2
GNU General Public License v2.0
11 stars 9 forks source link

Common.php, rtgpoll, and targetmaker/ #31

Open Prophidys opened 9 years ago

Prophidys commented 9 years ago

From aaron.le...@gmail.com on March 22, 2012 12:21:11

Three issues we identified:

Added these to common.php- Line 1: <?php (there was no php) Added $configs[] = '/etc/rtg/rtg.conf'; then created symbolic link to /etc/etg.conf from /etc/rtg/rtg.conf because that is where the source code puts it.

rtgpoll issues: rtgpoll is hard set in the source code to point to /etc/rtg.conf instead of where the file gets put in the /etc/rtg/rtg.conf by the source rpm. Setting a symbolic link from the /etc/rtg/rtg.conf to /etc/rtg.conf fixed this issue.

targetmaker issues: Targetmaker calls the /usr/share/rtg/rtgmodules/StandardIf.pl script. In there we were failing to set the OOR value because of this code:

$highspeedoid = ".1.3.6.1.2.1.31.1.1.1.15.".$index; @result = rtg_snmpget( "$communities{$router}\@$router", "$highspeedoid" ); $ifspeedtemp = join ( ' ', @result );

$ifspeed = $ifspeedtemp * 1000000;

We commented out the # $ifspeed = $ifspeedtemp * 1000000; because the devices we were using do not support the high speed counters. Because this is not an "if" section, it was failing to set the OOR. We will need to tweak this so that it checks for both types of OIDs. What version of the product are you using? On what operating system? RTG Version 0.9 TargetMaker 0.8 Centos 6.2. We built ours based on the source RPMs

Original issue: http://code.google.com/p/rtg2/issues/detail?id=31

bewing commented 9 years ago

The second half of this issue is addressed by PR #47