In this article, we will cover a case study of one of our higher education customers using eG Enterprise for proactively monitoring Moodle applications and troubleshooting them to ensure service availability and performance for their staff and students.

What is Moodle?

Moodle applications in education Moodle is a free and open-source learning management system (LMS) and course management system (CMS) written in PHP and distributed under the GNU General Public License. The system is used to construct VLEs (Virtual Learning Environments) and create online curricula and courses widely used by traditional educational institutions

It is also used to deliver training materials for commercial organizations. For example, with Moodle, you can easily create courses, where each course has a number of resources and activities. A resource might be a PDF file or an external link on the web relevant to a course being taught. An activity might be a forum, a quiz or a wiki. Within a course, resources and activities can be organized into logical topics or into weeks on a calendar.

Facilitating Online Education and Collaboration

Moodle is one of many components of the online education system of an educational institution. Figure 1 depicts the other systems that Moodle interacts with:

  • An authentication/identity provider (e.g., Active Directory or LDAP) is used to control user accounts across all the institution’s systems.
  • A student information system (SIS) is a database of all students, which programs they are studying and what courses they need to complete, as well as a summary of all the courses they have completed.
  • A document repository (e.g., Alfresco) to store files and track workflow as students and teachers collaborate.
  • An ePortfolio where students can assemble assets, build a CV (resume), and provide evidence that they have met the requirements of a course.
  • A reporting or analytics tool.

The Moodle application architecture

Figure 1: How Moodle interfaces with other systems in educational institutions

Moodle is open source or free software (GPL). It is written in PHP and runs on most common web servers like Apache, Nginx, etc. It requires a database, and can be used with MySQL, MariaDB, PostgreSQL, Microsoft SQL Server or Oracle.

Why is Moodle Monitoring Important?

Many educational institutions have built their course delivery around the Moodle platform. It is now a core service critical to delivering on their commitments to students. With the necessity of remote learning throughout the pandemic, it has become increasingly important for educational institutions to ensure high-availability.

Additionally, schools needed performant access to Moodle but the ability to collect data continually. The final requirement was tracking KPIs (Key Performance Indicators) to demonstrate that they are continually meeting their commitments to student services.

Monitoring of latency and page load times for Moodle applications

Figure 2: Real user monitoring dashboard showing performance of Moodle applications

Two aspects govern the efficiency of an LMS/CMS: the user interface and the system’s performance. If the interface is logically designed and intuitive, then users will quickly learn it. If the application is performant and responds quickly to user actions, then they will remain focused on their activities.

Performance is mainly measured by latency or page load time. Load time is the length of time between a user action (e.g. clicking on a link) and the corresponding response is received (being shown the page the link refers to). Continuous monitoring can detect abnormal situations and allow the Moodle administrator to take remedial action. Historical usage and performance metrics can be used to generate trends and used for effective capacity planning.

Since web server logs have details of each request and the time taken, by analyzing the logs, it is possible to determine that Moodle is slow. However, it is not simple to determine why the slowdown may have occurred.

Key Components of a Moodle Application Deployment

Figure 3 below shows the different components supporting a Moodle application deployment.

Key components of a Moodle application deployment

Figure 3: How the key components of the Moodle application architecture interact with one another

The user request is sent over a network to a web server (2). The web server receives the request and passes it to Moodle. Moodle then parses the request and determines the actions it needs to take to fulfill the request.

Normally this involves creating an HTML document from the result of several queries to a backend database server – in this example, a Maria database server (3). The database server parses the queries from Moodle and searches its datastore (4). The data files and other static artifacts (e.g., images) are accessed via a file system which is stored on a hard drive (5).

There are a variety of factors that may impact Moodle performance. These include the network connectivity of the user, the performance of the webserver, processing bottlenecks in the Moodle application, or slowness in the database server or in the file system/storage device used. End-to-End monitoring is required to get a handle on the performance of each tier. Additionally, it will help to pinpoint the reason why a Moodle application may be slow.

eG Enterprise: Providing End-to-End Moodle Application Monitoring

Application and infrastructure monitoring for Moodle applications

Figure 4: Application and Infrastructure monitoring for Moodle

eG Enterprise is ideally suited to address the monitoring requirements of educational institutions that are reliant on Moodle applications. With eG Enterprise you get converged application and infrastructure monitoring from a single pane of glass:

Synthetic Monitoring of Moodle Performance

The eG Enterprise Web Application Simulator enables different Moodle workflows to be recorded and played back. The workflows configured simulate sequences of user actions. The simulator begins with login in and then performs a number of common tasks such as registering for classes and accessing content. Synthetic monitors can be set up from different geographic locations, including on campus, satellite campuses, and remotely from both local and out-of-state locations.

Synthetic monitoring of moodle applications

Figure 5: Slice and dice analysis of visitor activity and experience when accessing Moodle applications

Simple color-coded overlays indicate the health of each step of the workflow. When errors or slowdowns occur, components will turn red, and alerts are triggered.

This synthetic monitor continually simulates real users accessing applications, even at times of the day or night when there may be no real users accessing systems. Failures can, therefore, be detected before real users are affected, and the corresponding services can be repaired before students are affected and IT help desk tickets avoided.

Real User Monitoring of Moodle Applications

Using Javascript injection, eG Enterprise monitors the real experience of users when they access Moodle applications. The monitors detect page load time, Javascript errors, slowness of specific URLs, or from specific locations, and steps taken to mediate the issue.

While synthetic monitoring only simulates a few specific accesses, real user monitoring (RUM) tracks all web pages and all accesses. In this way, it provides a more realistic measure of performance. This monitoring approach exploits the fact that today’s web browsers have extensive instrumentation built-in and collect very detailed information about each page visit by a user.

PHP Application Monitoring

While RUM tells you that user experience may be impacted, if the issue is in the application stack, IT admins need to know where the problem lies – is it due to PHP code, external web accesses, database queries, etc. This is where PHP application transaction tracing comes in. Using instrumentation injected into the application on the server-side, eG Enterprise traces all user requests. Slow requests and details of transaction processing for these requests are collected for further analysis.

Moodle PHP transaction breakdown

Figure 7: Details of transactions showing the time spent in PHP code vs. database queries. Drilldowns provide additional details.

Monitoring the performance of PHP application transactions via Moodle

Figure 8: Slow, error, and stalled transactions are reported for all URLs so IT admins can easily determine what the problematic URLs are

By comparing the response times across pages accessed, IT admins can determine which URLs/pages are slower compared to others.

Web Server Monitoring

Sometimes problems may not be in the application code. The issue can begin with the technologies hosting the application. The Apache/Nginx webserver front-ending Moodle applications need to be monitored. eG Enterprise provides insights into request processing by the web servers, using the webserver APIs. Common questions that can be answered using these metrics include:

  • Has the web server restarted recently?
  • Has the webserver been configured with sufficient worker processes to handle the incoming load?
  • How many requests are currently being processed by the server?
  • Has the workload on the webserver changed suddenly?

eG Enterprise also processes web server logs to record performance per website accessed. Since requests to the webserver may be for non-PHP pages as well (HTML, images, etc.), the results of this test indicate if there is an issue serving content to users. With the metrics collected with this approach, IT admins can determine if users are seeing many errors.

Figure 9: Monitoring of transactions to web sites hosting the Moodle applications

Similar support is available for other popular web server technologies including Microsoft IIS and Nginx, see: Web Server Monitoring & Performance Monitoring Tools

MariaDB Database Monitoring

MariaDB is just one of a number of the most popular databases covered by eG Enterprise’s comprehensive suite for database monitoring, offering a choice of both agent-based and agentless monitoring. From the same web console, IT admins can also track the health of their Maria database servers. Slow queries, queries that block other queries, or ones that are running for a long time can be easily detected.

Maria DB monitoring for Moodle apps

Figure 10: MariaDB Connection Errors are continually monitored and correlated with the whole infrastructure.

Converged Application and Infrastructure Monitoring with eG Enterprise

Besides the different user experience and application component metrics that eG Enterprise collects, IT admins can also monitor the underlying infrastructure tiers – network, storage, virtualization, cloud, etc. from the same web console. After all, if there is an infrastructure slowdown it will affect the application stack and hence, to pinpoint why a Moodle application is slow, it is imperative to have an end-to-end view of the infrastructure. This is where eG Enterprise’s converged application and infrastructure monitoring from one console helps IT admins of educational institutions.

Color-coded service topology maps make it simple to visualize a Moodle application deployment. Drilldowns are available for each tier so the right IT admin can be involved in troubleshooting, and they have access to real-time and historical performance metrics so they can use empirical evidence to determine how to rectify a problem.

Topology view of a Moodle deployment

Figure 11: Service topology map providing an at-a-glance view of the Moodle application deployment

eG Enterprise for Educational Institutions

Many leading educational institutions around the world are using eG Enterprise to monitor the performance and availability of key applications such as Moodle, Blackboard, and Peoplesoft. Universities also widely use remote access technologies like Citrix and VMware Horizon. eG Enterprise has specialized capabilities in this area as well.

Proactive IT monitoring is a strategic investment for an educational institution that results in IT efficiencies and improved student and staff satisfaction and overall better educational outcomes. You can learn more about eG Enterprise’s support for Education and our customer case studies on our Education Solutions pages.

To learn more about how eG Enterprise can help your institution, contact us or start your free trial today. 

Learn More