Icinga/Nagios setup to monitor Alfresco Community/Enterprise 5.x
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
images Adding new screenshots with PNP4Nagios graphs. Sep 1, 2018
jmx Adding Alfresco Enterprise template and JMX. Renaming. Sep 6, 2017
objects Added support for Alfresco Search Services (SOLR) and php4nagios inst… Aug 22, 2018
pnp Adding pnp4nagios templates for Icinga hosts and services Aug 22, 2018
scripts Fix vagrant image according the new changes: Alfresco Search Services… Aug 25, 2018
Dockerfile Minor changes. Aug 25, 2018
LICENSE.md Initial commit Aug 7, 2017
README.md Minor changes: Add link and update setup Sep 1, 2018
Vagrantfile Minor changes. Aug 25, 2018


Nagios setup for Alfresco

Table of Contents


A well known example for Alfresco monitoring via JMX is available here, but the most interesting information for this is related to Enterprise Edition (EE). General direct monitoring commands (not JMX-based) may be used for Community Edition (CE) too. We can obtain additional monitoring information for Alfresco Community via OOTB Support Tools webscripts (System Performance, Active Sessions and SOLR).

Nagios-Icinga configuration for Alfresco Community

The files involved in Nagios/Icinga configuration for Alfresco Community are the following:

  • objects/hosts-alfresco.cfg (Alfresco hosts definition)
  • objects/commands-ootb.cfg (Nagios commands)
  • objects/services-ootb.cfg (Non NRPE services)
  • objects/commands-ass.cfg (Nagios commands for Alfresco Search Services)
  • objects/services-ass.cfg (Non NRPE services for Alfresco Search Services)
  • nrpe/nrpe-ootb.cfg (NRPE services)
  • nrpe/nrpe.cfg (For nrpe-server - only if NRPE)

By the way, shell/python scripts are usually placed at /usr/lib/nagios/plugins/

  • scripts/check_ootb_performance_stats.sh
  • scripts/check_ootb_active_sessions.sh
  • scripts/check_ootb_solr.sh
  • scripts/check_manager_jmxproxy.sh (JMX monitoring)
  • scripts/check_alfresco_solr.py

For using this setup you need some dependencies like curl, jshon, python-nagiosplugin or python-urllib3 in your Nagios Server.

Note: If you plan to use NRPE config, you need to configure your Alfresco Server as a Nagios NRPE server.

OOTB Support Tools webscripts

With OOTB Support Tools addon for Alfresco Community Edition, it is possible to extract useful information about JVM, threads, logged users or SOLR via curl command, for generating alerts and graphs in Nagios. We can use the JSON information from the available webscripts of the addon:

  • JVM Used Memory
  • Number of Threads
  • Number of active database connections
  • Number of logged users
  • Number of tickets
  • Process Load
  • System Load
  • SOLR numDocs (for any core)
  • SOLR deletedDocs
  • SOLR Health
  • SOLR indices size (for any core)

Nagios Alfresco

For consuming OOTB webscripts, you need to create a dedicated user for Alfresco Monitoring, for example monitor, with admin rights (belonging to ALFRESCO_ADMINISTRATORS group). Take into consideration that this password is used in Nagios scripts. You should use SSL in http requests, or running monitoring processes locally in Alfresco server via NRPE protocol (safer).

Previously you need to install OOTB Support Tools addon in your Alfresco CE server.

JMXProxy servlet

With JMX Proxy Servlet enabled in Alfresco Community, you may get JMX information about Garbage Collector, Memory, Threads or Operating System in your Tomcat instance. The essential info may be obtained from OOTB Support Tools webscripts too, but other important parameters from Operating System or Garbage Collector may be extracted this way. Please note that this JMX information is related to the default mbeans in a Tomcat container, and not related to the Alfresco JMX objects contained in Alfresco Enterprise (aka Alfresco Content Services).

For illustrating this, we will monitor the number of opened file descriptors in the operating system. It is also an alternative to Jolokia or check_jmx methods.

Nagios-Icinga configuration for Alfresco Enterprise

The files involved in Nagios/Icinga configuration for Alfresco Enterprise are the following:

  • jmx/hosts-alfresco.cfg (Alfresco hosts definition)
  • jmx/commands-jmx.cfg (Nagios commands)
  • jmx/services-jmx.cfg (Non NRPE services)

By the way, check_alfresco script and check_alfresco.jar is usually placed at /usr/lib/nagios/plugins/

Finally, you need to have Java installed on your Nagios-Icinga server for executing check_alfresco script, and to enable JMX in Alfresco Server. For more details, you can check Alfresco docs

Nagios Alfresco

Alfresco Search Services

Alfresco Search Services are monitored via check_alfresco_solr.py script by Alexandre Chapellon. The python script helps to monitor index, handlers, FTS and caches values. It is valid both for Alfresco Community and Alfresco Enterprise.

Nagios ASS

You may find more details in Alfresco Premier Services blog post:

Using Dockerfile

You can check this basic Nagios/Icinga setup using Docker in Ubuntu 16.04 LTS. It includes a template for using it in Alfresco Enterprise via check_jmx, and also in Alfresco Community via OOTB Support Tools webscripts and JMXProxy. You need to enable JMX in Alfresco Enterprise, and to install OOTB Support Tools addon and JMXProxy in Alfresco Community targets.

  1. Clone this project
$ git clone https://github.com/zylklab/alfresco-nagios
$ cd alfresco-nagios
  1. Configure Alfresco templates in Dockerfile according to your Alfresco repository targets to monitor.
## Icinga Config
ENV ICINGA_CONFIG /etc/icinga/objects
ENV ICINGA_PLUGIN /usr/lib/nagios/plugins

## Alfresco Community Template
ENV ALF_HOST alf-ce.melmac.net 
# Alfresco admin user for monitoring
ENV ALF_USER monitor
# Alfresco JMXProxy manager user

## Alfresco Enterprise Template
ENV ACS_HOST alf-ee.melmac.net 
# JMX User
ENV JMX_USER monitorRole
ENV JMX_PASS change_asap 

## Alfresco Search Services
ENV ASS_HOST ass.melmac.net
  1. Run docker commands
$ sudo docker build -t zylklab/icingalf .
$ sudo docker run -i -t zylklab/icingalf
  1. Login http://docker-server-ip/icinga (by default with icingaadmin/admin credentials.

Note: Take into consideration that email alerts are not configured. You should configure postfix and Icinga/Nagios contacts.

Using Vagrantfile

Other way of testing this setup is via Vagrantfile. This creates a Virtualbox VM based on Ubuntu 14.04 LTS and it provisions the needed Icinga installation and configuration. The template variables for the Alfresco targets are included in scripts/icinga-provision-script.sh

$ git clone https://github.com/zylklab/alfresco-nagios
$ cd alfresco-nagios
# Edit scripts/icinga-provision-script.sh for setting Alfresco target vars
$ vagrant up
$ vagrant ssh
# Once you finish you may exit VM, vagrant halt (or even vagrant destroy -f)

Then login in http://vagrant-server-ip/icinga (or http://localhost:8080/icinga) with icingaadmin/admin credentials

Tested on

  • Alfresco 2017XXGA + OOTB Support Tools Addon >0.1
  • Alfresco 5.0.25 EE
  • Nagios/Icinga 3
  • PNP4Nagios 0.6.0
  • Docker version 1.12.6
  • Vagrant 1.8.1
  • Ubuntu 14.04 LTS