Opsview watchdog is a process management component. It manages the starting, stopping and restarting of opsview components. It is a dependency of every opsview components which is required to run a process to operate. The process is launched by opsview watchdog and it monitors the process it has launched. If the process dies or stops abruptly, Watchdog will try to restart the process and log errors in syslog.
The Watchdog installs opsview-agent package.
This is deployed when installing Opsview Monitor.
opsview-watchdog using the following command:
sudo /opt/opsview/watchdog/bin/opsview-monit # on system reboot watchdog will start itself automatically
Watchdog service files are now managed by the package manager, removing the package would leave the watchdog service file behind. Purging the package will remove it. The package manager managed config files are as follows:
Watchdog service files are now managed by the package manager. When removing the package, if the files listed have been modified by the user before; they will be left behind after rpmsave extension has been added to them. When upgrading the package, if the files listed have been modified by the user before; the modified file on the disk will remain and the new config file from the upgrading package will be written to the disk with the rpmnew extension. Users will have to:
- Manually restore the file with the rpmsave extension.
- Rename the rpmnew to the config file name if they want to use the new config for the package.
Start, stop, and restart the service using:
sudo systemctl <start|stop|restart> opsview-watchdog