User Tools

Site Tools


Writing /app/www/public/data/meta/watchdogs/installing_watchdog_on_a_server.meta failed
watchdogs:installing_watchdog_on_a_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
watchdogs:installing_watchdog_on_a_server [2016/09/22 17:04] mmccwatchdogs:installing_watchdog_on_a_server [2021/06/25 10:09] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Installing Watchdog on a server ======
  
 +Author: Eoin Joy   Edited by: Andrey Shevyakov, Colm Carew
 +
 +**Ensure that there is a mysqld running on the server as well and that there is a watchdog database present on the instance, if you need to install mysqld : [[databaseandnetworkmanagement:install_mysql|Install MySQL on a Server - REHL 6.6]]**
 +
 +Get the latest Watchdog release build from the artifactory (http://errigalartifactory.err:8080/artifactory)(as of this writing: WatchDog-REL-2.2.0.tar.gz). Alternatively, search for the latest Watchdog release build in "temp" folders in "home/%user%" directories of other servers and use sftp to transfer it (get).
 +
 +Transfer this to the server you wish to install on.
 +      scp WatchDog-REL-2.2.0.tar.gz scotty@qaerrigalapps1.crc:/export/home/scotty/temp
 +Unpack and move to the folder /export/home/scotty or /home/scotty
 +      tar -zxf WatchDog-REL-2.2.0.tar.gz
 +      mv Watchdog /export/home/scotty/
 +Edit the "ResourceConfig.groovy" file located in the "resources" directory. Most importantly, the "hostName" and "databaseURL" variables.
 +      vi /export/home/Watchdog/resources/ResourceConfig.groovy
 +Edit the new run.sh to point to the watchdog installation folder (e.g. /export/home/scotty/watchdog (server dependent)) and to have the java version used be 1.7.0_80
 +      vi /export/home/Watchdog/script/run.sh
 +Rename the installation folder "Watchdog" to "watchdog"
 +      mv Watchdog watchdog
 +Run the watchdog as a test
 +      sudo /export/home/scotty/watchdog/script/run.sh
 +Determine proper running of the watchdog, it should run through each resource in turn and determine whether to send an SNMP trap or clear, and at its finish will tell you if it sent any traps other than its heartbeat
 +Enable watchdog in crontab
 +      sudo crontab -e
 +      sudo */10 * * * * /home/scotty/watchdog/script/run.sh > /home/scotty/watchdog/logs/cronjob.log 2>&1