FileCloud Watchdog Service

FileCloud Watchdog Service is an service for Windows that automatically monitors the availability of Apache Webserver and the MongoDB Databases and can restart them if they become unavailable or unresponsive. 

  • FileCloud watchdog service is only available starting from v12.0
  • FileCloud watchdog service monitors OpenOffice service starting from v13.0


Installation

  1. Open a Windows Administrator Command Prompt
  2. Navigate to c:\xampp folder (change it to the path XAMPP folder exists)
  3. Run the following to register the service

    cloudwatchdog.exe /registerService /displayName="FileCloud Watchdog Service"
  4. Start the service

    net start cloudwatchdog

Uninstall

  1. Open a Windows Administrator Command Prompt
  2. Navigate to c:\xampp folder (change it to the path XAMPP folder exists)
  3. Run the following to register the service

    net stop cloudwatchdog
  4. Start the service

    cloudwatchdog.exe /unregisterService

Default Configuration

To change parameters related to the watchdog, adjust the values in the cloudwatchdog.ini file in the xampp folder. 

frequency (in seconds) controls how fast the watchdog checks the availability of services
serverurl determines the URL to use to check availability 

; Settings for FileCloud Watchdog
[settings]
frequency=60
serverurl=http://127.0.0.1

 

OpenOffice Configuration


To monitor the open office service, add the following entries to the ini file and adjust accordingly:
Make sure the oowatchdogcheck.php and oowatchdogsample.txt files are present in the resources\backup folder.

; Settings for FileCloud Watchdog
[settings]
frequency=60
serverurl=http://127.0.0.1
ooservicename=ooservice
ooscriptpath=c:\xampp\htdocs\resources\backup\oowatchdogcheck.php

Troubleshooting

A log for FileCloud Watchdog Service is inside the XAMPP folder under the filename 'cloudwatchdog.log'