DRSM Documentation Live demo Downloads

Web dashboard

The dashboard answers one question first: does anything need attention right now? Then it lets you drill from the whole estate down to one check on one host in two clicks.

It reads the report files that drsm_run.sh, system_report.sh and system_check.sh write, so it works with old and new setups. It needs PHP 7.2 or higher and loads no fonts or scripts from the internet. Try it in the live demo.

Overview

The Overview is the situational awareness page, built to read from across a room. It has two layouts, picked with the Meters and Cards switch at the top of the Overview and the Heat map (each viewer's choice is kept in a cookie). The site default is $PAGElayout, meters unless you set cards.

Meters (the default) shows the status banner, then one tile per group of reports, each with a round meter: the percent of its reports that are OK in the middle, and a ring split into a slice per state, so one error out of 60 reports is a thin red slice, not a red ring. The tiles are the sites, the host platforms (Linux hosts, Windows hosts, other devices), the group checks, the DRCM clusters, your own script reports, and each check category (core system, Linux and Windows agent checks, network, storage and so on). Select a tile for its reports, with the problem hosts under each one. When the page shows more than one site (All sites, or an organization with several sites), it shows one tile per site only, with the site's hosts and group checks in its ring; select a site tile for its own tiles and problem hosts, or open the site's status page from the list. The Sites / Sites and hosts switch beside it shows every tile, the problems and the host cards for all the sites at once, handy for a small setup; each browser keeps its choice, and $METERsitesOnly = false makes Sites and hosts the default. The heat map keeps each viewer's grouping the same way. A tile turns solid red only when most of it is in error ($METERsolidRed, 80% by default); below that it keeps a red top line, badge and ring slice, and the banner stays amber. Under the tiles are Needs attention and the host cards, with round CPU, memory, disk and load meters.

Cards is the layout of DRSM 1.31 to 1.34:

Overview page in the dark theme
Dark theme
Overview page in the light theme
Light theme

Organizations and sites

With hosts in more than one site, an Organizations page leads the menu. Each organization lists its sites, worst first. Each site card shows the worst state on a colored edge, host counts by state, a tile per host (select one for its report), and the monitor host that runs the site with the time it last reported. A site whose monitor host has stopped gets a Collector not reporting banner. Resource use colors each tile by the host's busiest resource instead.

Organizations page with two organizations and four sites, tier buttons, per tier host counts on each site card, and one site with its collector not reporting
Two organizations, four sites
Organizations page in the light theme
Light theme

The site picker in the top bar shows all sites, one organization or one site on every page. The Overview then lists the sites, Hosts adds Organization and Site columns, the heat map can group hosts By site, and Trends totals what each site has and needs. With a single site the pages look as before.

The tier filter (All, DEV, QA, OPS) on the Organizations, Heat map and Hosts pages shows one tier. It appears when the hosts have more than one tier and is remembered like the site picker. Site cards count each site's hosts by tier, the heat map and host table mark each host with its tier, and Organizations tiles name it in their tooltip.

Overview of the Head office site with the Site links menu open: the site's links with Grafana and Cache submenus, then the organization's links
Site links with nested submenus

To limit users to their own organizations or sites, list them in $AUTHscopes, see Login.

Heat map

In the Meters layout the heat map is a mosaic: one small square per check on every host, grouped By check type (the Overview tiles), By host or By site, with a round meter per group across the top. With more than one site shown it opens By site: select a site's meter or name for that site's own heat map. Errors pulse, warnings beat slower, a light wave runs across the squares, and the squares grow to fill the window, so it works as a wall display (full screen button in the top bar). Select a square to open that check. Resource use shows round CPU, memory, disk, load and swap meters for each host.

In the Cards layout the heat map puts every host against every check. Check status shows a status icon per plugin: a green check for OK, an amber triangle for a warning, a red cross for an error, and a gray question mark for unknown. Problem cells are shaded so they stand out. Select a cell to open that check in the host report. The bottom row shows the worst state in each column.

Heat map in check status mode, with green, amber and red status icons per host and plugin
Check status: hosts against plugins, worst first

Resource use shows CPU, memory, disk, load per CPU and swap as a percentage, colored from teal through green, amber and orange to red, so the busiest hosts stand out before they alert. Sort Worst first or A to Z.

Heat map in resource use mode, with CPU, memory, disk, load and swap percentages colored by level
Resource use from the latest plugin metrics

Hosts and host reports

The Hosts page is a table of every host, sortable by any column. Select a host for its report: details, gauges for CPU, memory, disk, load and swap, and a panel per plugin with the problems open first. Error and warning lines are highlighted, and Archived reports lists earlier runs.

Host report for db1 with resource gauges and an open core/memory panel showing a warning line
A host report, with the memory warning open

Connectivity

The Connectivity page has the connectivity (probe) and health reports for each host group, the same reports that go out in the alert emails.

Connectivity page with the group reports
Group connectivity and health reports

The Trends page answers two questions from the history of every report: how big does each host need to be, and what is normal for it. Pick a range of 7, 30 or 90 days, a year, or all of the history.

The page reads reports/systems/<host>/metrics_history.tsv: bin/drsm_run.sh adds one line of metrics per report and keeps HISTORYdays days (730 by default). Reports themselves are purged after days, so after an upgrade run utils/drsm_metrics_backfill.sh once to start the history from the reports already archived and the offline archives. It is a dry run until --apply. Set $TRENDshared = array("host"); in config/drsm.php for shared hosting accounts, whose figures are the provider's whole server.

Clusters

The Clusters page shows the DataReel Cluster Manager (DRCM) clusters that the cluster/drcm plugin reports on. The menu item appears once a host runs the plugin, and the host cards of cluster nodes get a Cluster tag. The Overview lists each cluster beside the group checks (nodes up, keep alive drops in 24 hours, CM status), and the Heat map starts with a row per cluster in both views: nodes, keep alive links, drops in 24 hours, resources and CM status, each cell opening the Clusters page. Every node reports its own view, so a node that lost its link to the others shows up as a disagreement.

Vulnerabilities

The Vulnerabilities page shows the security advisories (Red Hat errata and their CVEs) that apply to the hosts that run the DataReel Reporting Agent for Linux, read by the linux/vulnerabilities plugin, and the security updates (KB numbers, MSRC severity and CVEs) that hosts running the DataReel Reporting Agent for Windows 3.5 or later still need, from Windows Update, read by the windows/vulnerabilities plugin. The agents scan when an administrator runs sudo drra scan (Linux) or drra_svc.exe scan (Windows), or on a schedule with [scan] enabled=1 in the agent's drra.ini; the page names the hosts with no scan yet. Advisory and CVE ids link to Red Hat for Linux hosts and to Microsoft (support article, MSRC) for Windows hosts. The menu item appears once a host runs either plugin.

Phones, tablets and wall screens

  • Responsive: every page works on a phone, a tablet and a desktop.
  • Light and dark: follows the device setting; the sun and moon button switches it.
  • Live refresh: pages reload every $REFRESHseconds (60 by default). The ring button shows the countdown and pauses it. A reload waits while you are typing in a search box, and keeps your scroll position.
  • Wall display: the expand button hides the controls for a NOC screen. Esc leaves it.
  • Not reporting: a host whose report is older than $STALEminutes (60 by default) is shown in purple, so a stopped cron or a dead monitor does not look like a healthy estate.
  • Any URL path: serve it from /sysadmin, /drsm/dashboard or anywhere else.
Overview page on a phone
On a phone

Customizing the dashboard

Add settings to $CONFIGdir/drsm.php:

$SITEtitle = 'MY System Monitor';  // Name in the top bar
$REFRESHseconds = 60;              // Auto refresh, 0 turns it off
$STALEminutes = 60;                // Report age that counts as not reporting, 0 turns it off
$SITElogo = '/images/logo.png';    // Logo before the name in the top bar
$METRICSskip = array("windows");   // No gauges or trends for these platforms or groups
$PAGElayout = 'meters';            // Overview and Heat map: meters (default) or cards
$METERtiles = array('sites', 'platforms', 'groupchecks', 'clusters', 'ext', 'checks'); // Overview tiles, in order
$METERlabels = array('storage' => 'Disks and RAID'); // your own check category titles
$METERsitesOnly = true;            // more than one site shown: one tile per site to drill down from
$METERsolidRed = 0.80;             // share of a tile in error that turns it solid red
$NAVhome = array("label" => "Status", "url" => "/dashboard/status.php", "icon" => "check");
$NAVurl = array("hosts" => "/dashboard/myhosts.php");     // built in item to your page
$NAVsub = array("heatmap" => array(array("Wall", "/dashboard/wall.php")));
$SITEfooter = 'Example Ops Monitor';  // footer name
$SITEhelp = '';                    // footer Help link: unset = built in Users and Admin guides, '' = none
$HELPadmin = false;                // hide the Admin guide tab on the Help page
$DOCSurl = 'https://datareel.com/drsm/docs/'; // where the Admin guide's doc links go
$LRAreportsDir = '/var/www/html/linux/reports'; // Linux agent reports_dir, for the OpenSCAP report links
$NAVextra = array(                 // Your own top bar menu items
  array("label" => "Classic view", "url" => "/classic/", "icon" => "layout"),
  array("label" => "Tools", "url" => "/tools/",
        "sub" => array(array("Time converter", "/tools/utc.php"))));

A single-site install shows a Site links menu when etc/sites/default/default.site has LINK= lines, the same lines as a site file in a multi-site setup. bin/drsm_run.sh writes them to $REPORTdir/site.json.

Status messages

Post a notice for everyone, such as a planned outage or a known problem, and it scrolls across the top of every page, in large type in wall display mode. Critical messages come first; --pin keeps one in view instead of scrolling. Each message links to a details page, or to the list of messages (php/messages.php). Ended messages drop off by themselves.

$ ~/drsm/utils/drsm_message.sh add critical "Core switch down, network team on site" --pin
$ ~/drsm/utils/drsm_message.sh --apply add info "Patching tonight 22:00 to 02:00" \
      --link https://wiki.example.com/patching --until "2026-11-02 02:00"
$ ~/drsm/utils/drsm_message.sh list
$ ~/drsm/utils/drsm_message.sh --apply remove 1
$ ~/drsm/utils/drsm_message.sh --apply clean       # drop ended messages

Without --apply the script shows the change and saves nothing. The messages are lines in $CONFIGdir/messages.conf (or $MESSAGESfile): level | message | link | until | options.

Reports from your own scripts

Backup, patching, certificate, SNMP and other checks that write a text file can show on the dashboard with a state. List them in a file and set $EXTreports to its path. They get a menu item, a page with a section for each [id] Title line, and a panel on the Overview.

$EXTreports = '/var/www/html/dashboard/config/ext_reports.conf';
$EXTtitle = 'Site reports';        // Menu and page name, default Other reports

# Title | report file | link | max age minutes | status file
[backups] Backups and patching
PROD backups | /var/www/html/sysadmin/backup/prod_summary.txt | | 1440
SSL certificates | /var/www/html/sysadmin/ssl/all_certs.txt | | 1440 | /var/www/html/sysadmin/ssl/errors.txt
[consoles] Consoles
Storage console | - | https://storage.example.com/

A report is Error when its file is missing or a line has ERROR or FAILED, Warning when a line has WARNING, and Stale when it is older than the max age (from its ETIME: line, else the file time). An empty link shows the file inside the dashboard; - as the file makes a plain link with no state, and - as the status file shows the report with no state. Only files listed there can be shown.

For colors and styles, edit $WWWdir/site/custom.css, which loads after the DRSM styles. Colors are CSS variables:

:root { --accent: #e11d48; }

To replace the header and footer, add page_header.php and page_footer.php to $WWWdir/site. The header must print drsm_head_assets() to keep the styles and scripts, and leave <main> open:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>MY System Monitor</title>
<?php echo drsm_head_assets(); ?>
</head>
<body data-refresh="<?php echo (int)$REFRESHseconds; ?>">
<main class="page">

A page_header.php from a release before the redesign still works, but the pages are unstyled until it prints drsm_head_assets().

Updates and reinstalls never overwrite $WWWdir/index.php or anything in $WWWdir/site.

Web only package

utils/make_web_demo.sh builds a copy of the dashboard for a host with nothing but Apache and PHP, such as a HostGator or other cPanel account. It finds its own files, so no server paths need to be set.

OptionMeaning
-p /url/pathURL path it is served from, default /drsm/dashboard
-o outdirOutput directory, default ./drsm_web
-t titleName in the top bar
-sAdd sample reports for made up hosts, for a public demo
-aTurn on the login and block direct access to the report folder

It writes <outdir>/dashboard/ and <outdir>/drsm_dashboard.zip. How to upload it and keep its reports up to date is in Workstation with a hosted dashboard.

Login from outside your network

The dashboard can ask for a user name and password from anyone outside your own networks, while people on the internal network get straight in. It is off by default, so a public demo stays open, and it is plain PHP, so it works on shared hosting.

  1. Make a password hash for each account. Run this on any machine with PHP; it asks for the password without showing it:
    $ php ~/drsm/utils/drsm_password.php admin
  2. Add the settings to config/drsm.php, with the printed line in $AUTHusers:
    $AUTHenable = 1;
    $AUTHnetworks = array('127.0.0.1/32', '::1/128', '10.0.0.0/8',
                          '172.16.0.0/12', '192.168.0.0/16');
    $AUTHusers = array(
      'admin' => '$2y$10$...',
    );
  3. Block direct access to the reports folder, which the login can not cover because it is served as plain files. make_web_demo.sh -a does this; otherwise put Require all denied in reports/.htaccess. With login on, the Archived reports buttons read reports through the pages.
SettingMeaning
$AUTHnetworksInternal networks as CIDRs, IPv4 or IPv6, that need no login
$AUTHproxiesReverse proxies or CDNs in front of the site, such as Cloudflare. X-Forwarded-For is only read from these. Leave empty on a plain cPanel account
$AUTHhttps1 (default) refuses logins over plain HTTP
$AUTHidleminutes, $AUTHmaxhoursSign out after 60 minutes idle, or 12 hours after login
$AUTHmaxfails, $AUTHlockminutesLock an address out for 15 minutes after 5 failed logins
$AUTHstatedirFailed login counts, default config/auth, must be writable by the Web server
$AUTHscopesOrganizations and sites each user may see, for example 'tech' => array('acme/hq', 'beta'), with '*' for all. Unset, every user sees every site. Set, a user not listed sees nothing
$AUTHnetworkscopesThe same for visitors from $AUTHnetworks, by address: '10.1.0.0/16' => array('acme/hq')

Passwords are stored as bcrypt hashes. Sessions use HttpOnly, SameSite cookies, Secure on HTTPS, with a new session id at login, and the login and sign out forms carry a CSRF token.

Security