We are in the process of migrating this forum. A new space will be available soon. We are sorry for the inconvenience.

Bug in RTM install script, and therefore in installed RTM


gregoryfenton
22-11-2011, 16:35
Quote Originally Posted by Neil
Hi
It is now fixed, if we do send anything this year I will make sure you get something.
Thanks for noticing it.
This is me doing the happy dance!
\o\ \o/ /o/
Get down and boogie little ascii men

Neil
22-11-2011, 16:04
Hi

It is now fixed, if we do send anything this year I will make sure you get something.

Thanks for noticing it.

gregoryfenton
22-11-2011, 13:52
Glad to have been of service.

I only noticed the bug because part of my ovh manager was unpopulated so I went and found the script and fixed it.

Neil
22-11-2011, 13:40
Hi

Thanks, getting this double checked first ;-)

Neil

gregoryfenton
21-11-2011, 14:26
file
Code:
ftp://ftp.ovh.net/made-in-ovh/rtm/install_rtm.sh
Code:
chomp(@netstatTable = `netstat -tlenp | grep LISTEN | awk \'{print \$4"|"\$9}'`);
Should read
Code:
chomp(@netstatTable = `netstat -tlenp | grep LISTEN | awk \'{print \$4"|"\$9}\'`)';
The effect of this bug is that the Real Time Monitoring > Software information tab in the OVH Manager does not get populated.

Tested and it now shows up nicely after the OVH server cron updates

Should end users wish to change the affected file directly it is
Code:
/usr/local/rtm/scripts/hour/listen_ports.pl
and the line needs to be changed differently from the above:
Code:
chomp(@netstatTable = `netstat -tlenp | grep LISTEN | awk '{print \$4"|"\$9}'`)';
specifically you need to remove the \ after awk

A quick bash one liner to do the patch in place is
Code:
sed -i 's/awk \\/awk /g' /usr/local/rtm/scripts/hour/listen_ports.pl


Can I have a nice present this year for finding this bug?