OSWatcher start on boot – Updated

Oracle have deprecated the OSW Service wrapper and you can no longer download it. Instead you now need to use a new OSW RPM that includes a service:

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=437232899459984&parent=DOCUMENT&sourceId=580513.1&id=2290852.1&_afrWindowMode=0&_adf.ctrl-state=1653t45bl1_183

The document talks about Oracle VM but this works on any linux version 6+ and it doesn’t need to be in a VM.

 

Old Instructions – Now Deprecated but leaving for awareness

Firstly, download the package from, you will need an Oracle Support login:

https://support.oracle.com/epmos/main/downloadattachmentprocessor?attachid=580513.1%3ARUNTIME&docType=HOWTO&action=download

Next, change the parameters in 2 different files (annoyingly this isn’t in the notes and the files aren’t linked! I have given feedback about this to Oracle):

vi  /etc/oswbb.conf
# Set OSW_ARCHIVE where the logs should be stored
# OSW_ARCHIVE='archive'
# Set OSW_COMPRESSION to the desired compression scheme
# OSW_COMPRESSION='gzip'
# Set OSW_HOME to the directory where your OSWatcher tools are installed
# OSW_HOME='/opt/oswbb'
# Set OSW_INTERVAL to the number of seconds between collections
# OSW_INTERVAL='30'
# Set OSW_RETENTION to the number of hours logs are to be retained
# OSW_RETENTION='48'
# Set OSW_USER to the owner of the OSW_HOME directory
# OSW_USER='root'

vi  /usr/libexec/oswbb-service/oswbb-helper
# Set OSW_ARCHIVE where the logs should be stored
# OSW_ARCHIVE='archive'
# Set OSW_COMPRESSION to the desired compression scheme
# OSW_COMPRESSION='gzip'
# Set OSW_HOME to the directory where your OSWatcher tools are installed
# OSW_HOME='/opt/oswbb'
# Set OSW_INTERVAL to the number of seconds between collections
# OSW_INTERVAL='30'
# Set OSW_RETENTION to the number of hours logs are to be retained
# OSW_RETENTION='48'
# Set OSW_USER to the owner of the OSW_HOME directory
# OSW_USER='root'

Now simply configure and start the service:

# /sbin/chkconfig oswbb on
# /sbin/service oswbb start

Leave a Reply