plainblack.com
Username Password
search
Bookmark and Share
Subscribe

wremonitor.pl - what it does

wremonitor.pl is one of three scripts that is suggested to be setup as a cron. See WRE installation wiki for details.

The purpose of this wiki is my attempt to document what wremonitor.pl does.

From what I can tell, it's purpose is monitor the healthyness of your webgui installation by looking at mysql, mod perl, mod_proxy and spectre adminsitrative services. It will restart services if needed amongst other things to be discovered. In summary, it performs the following:

  1. wreMonitor monitors mysql first by trying to ping the service. If it doesn't respond, it tries to restart the service.
  2. wreMonitor monitors modperl by killing off runaway processes.
  3. wreMonitor monitors modproxy by first trying to ping the service. If it doesn't respond, it tries to restart the service.
  4. wreMonitor monitors spectre by first trying to ping the service. If it doesn't respond, it tries to restart the service. If all is well, it then checks to see if there are too many workflows, or workflows taht have too high of a priority.
  5. wreMonitor also logs it's own activies in /data/wre/var/logs/wremonitor.log

configuration

wremonitor.pl uses the settings found in /data/wre/etc/wre.conf

  • wreMonitor->items->mysql
  • wreMonitor->items->modperl
  • wreMonitor->items->modproxy
  • wreMonitor->items->spectre

Allow you to enable/disable the monitoring any of the above listed services.

  • wreMonitor->notify.

determins the email that notifications are sent to. Frequencey is about every 3 minutes.

  • wreMonitor->mysqlAdministrativelyDown
  • wreMonitor->modperlAdministrativelyDown
  • wreMonitor->modproxyAdministrativelyDown
  • wreMonitor->spectreAdministrativelyDown

The above settings are not configuration settings, but rather used and modified by wreservice to mark whether the respective services have been brought down or not. They do not affect the activies of wreservice.

After changing any of the configuration settings, you'll need to ???

Keywords: WRE

Search | Most Popular | Recent Changes | Wiki Home
© 2018 Plain Black Corporation | All Rights Reserved