In order to generate a working copy of the base code to start modifying from need to perform the following steps.

  1. Use the new install script to do a fresh install of the code.
  2. The new version of flowscan was not working properly and was not picking up Cflow.pm correctly. We suspected it was because of the wrong version of perl libaries being picked up. To solve this we moved the site_perl into a new folder called /opt/terapaths-monitoring/lib/perl5 and I made the PERL5LIB point to this new version i.e. /opt/terapaths-monitoring/lib/perl5/site_perl. This solved the problem of the program not picking up the correct version of perl libraries.
  3. Next problem was that flowscan was exiting. This was at line 59 which related to the syslog facility not being equal to STDOUT. The fork was failing because of that. We simply changed the syslog directive in the flowscan.cf file to STDOUT for now.
  4. Next problem was that the makedir method in JKFlow.pm was giving an error because it was running -e command on an empty directory name. Fixed that.
  5. Finally the JKFlow.xml configuration file by default does not have an entry for dbdir, so that was giving an error. This was solved by downloading the JKFlow.xml from BNL and replacing the old file with that.
  • No labels