Harvester-services.sh often leaves corrupted files which block Reaper
search cancel

Harvester-services.sh often leaves corrupted files which block Reaper

book

Article ID: 255352

calendar_today

Updated On:

Products

Network Flow Analysis

Issue/Introduction

Even if using to stop the processes via /opt/CA/NFA/Tools/harvester-services script to shutdown the harvester services gracefully this doesn't prevent that has corrupted files

 

Environment

Release : All

Cause

Some BAD or corrupted file remains on folders even after stop processing via script

Resolution

Variable processes can cause corruption files as they are written in the ReaperWork folder like reboots, full drives, recycle harvester services and etc

To prevent this issue you can put in harvester-services.sh file this entries after   echo "Starting Harvester services..."

start()
{
   echo "Starting Harvester services..."

# remove corrupted file
   rm -rf /opt/CA/NFA/Netflow/datafiles/ReaperWork
   rm -rf /opt/CA/NFA/Netflow/datafiles/ReaperInput/*.BAD

   /etc/init.d/nfa_harvester start
   #/etc/init.d/nfa_vnadatacollector start
   /etc/init.d/nfa_dataretention start
   /etc/init.d/nfa_poller start
   /etc/init.d/nfa_collpollws start
   /etc/init.d/nfa_proxies start
   /etc/init.d/nfa_filewebservice start
   /etc/init.d/nfa_reaper start