Day-to-day admin
The jobs that come up while DRSM is running: hosts in and out, thresholds, notices for users, upgrades and finding out why something is red. Everything is plain text files and a few scripts, so each job is also easy to hand to an AI assistant.
Commands below use ~/drsm and ~/.drsm.sh. If your install uses DRSM_CONFIG, put DRSM_CONFIG=<your config> in front of each command. Scripts that change files show a dry run first and need --apply.
Every day
- Open the Overview: the banner and Needs attention list what is wrong, worst first.
- Check that reports are current: a host shown as Stale (purple) means its checks did not run. Look at cron and
$LOGdir/drsm_run*.log. - Alerts go to the addresses in
alert.email.listor the site'sALERT_EMAIL, see Thresholds and alerts.
Add a host
Linux host from a host file
$ cp ~/drsm/etc/hosts/example.conf_example ~/drsm/etc/hosts/web2.conf
$ vi ~/drsm/etc/hosts/web2.conf # HOST, DESCRIPTION, IMPACT, GROUP
$ ~/drsm/bin/drsm_run.sh -n -H web2 -v # one run, no alerts
The monitor account's SSH key must be in the host's authorized_keys.
Linux host from Ansible
With ANSIBLE_INVENTORY (or Ansible Automation Platform, ANSIBLE_AAP_URL) set, add the host to a group under one of the ANSIBLE_TIERS groups in Ansible. DRSM checks it from the next run. utils/drsm_ansible_hosts.sh lists what DRSM takes from Ansible. See Ansible inventory.
Windows host
Install the reporting agent. When its first report arrives, utils/wra_hosts.sh (dry run, then --apply) makes its host file. See Windows hosts.
Network device or address
A host file with COLLECTOR=none, PLUGINS="" and PROBES="network/ping" (add network/https for a web service).
Remove a host
$ ~/drsm/utils/drsm_remove_host.sh web2 # dry run
$ ~/drsm/utils/drsm_remove_host.sh --apply web2
$ ~/drsm/utils/drsm_remove_host.sh --apply -f retired.txt # one host per line
This removes the host file (a copy goes to etc/hosts/removed) and its reports. A host that comes from Ansible is removed from Ansible; with ANSIBLE_EXCLUSIVE=yes its checks stop at once, and drsm_remove_host.sh clears its old reports.
To stop checking a host but keep its reports and trends history, decommission it instead.
Host status: standby, powered off, decommissioned
STATUS= in a host file, for any tier: active (the default), standby, poweredoff or decommissioned. Set it with utils/drsm_host_status.sh, which shows a dry run, saves the host file to etc/hosts/removed and logs the change with your note, or edit the host file by hand: the next run logs it. ENABLED=no still skips a host as before.
$ ~/drsm/utils/drsm_host_status.sh web2 # status and since when
$ ~/drsm/utils/drsm_host_status.sh --note "spare for web1" web2 standby # dry run
$ ~/drsm/utils/drsm_host_status.sh --apply --note "spare for web1" web2 standby
$ ~/drsm/utils/drsm_host_status.sh --apply --note "lab laptop" lab3 poweredoff
$ ~/drsm/utils/drsm_host_status.sh --apply --note "retired" web2 decommissioned
| Status | What DRSM does |
|---|---|
standby | Runs every check and keeps the reports and metrics history, but never alerts (email, text or push), offline included. The report says INFO - web2 is in standby for 3d 4h: spare for web1, and the -e status report lists the standby hosts. |
poweredoff | Tries the host every run. On: full checks and INFO - lab3 is back on, powered off mode. Off: no checks, a short report with the days off; a warning at 14 days and an error at 30 days, not patched, on the dashboard only. Never alerts; POWEREDOFF_ALERTS=yes in the host file alerts while it is on. |
decommissioned | Not run at all. bin/purge.sh keeps its reports and history. Hidden on the dashboard unless Show decommissioned is on. |
Each change is a line in systems/<host>/status.log, which is never purged. OFFLINE_HOURS (4), POWEREDOFF_WARN_DAYS (14) and POWEREDOFF_ERROR_DAYS (30) are in ~/.drsm.sh, and a site file or host file can set them. utils/drsm_preflight.sh lists the hosts by status and warns for hosts powered off for 30 days or more.
Use a decommissioned name again
$ ~/drsm/utils/drsm_host_status.sh --apply --reuse web2 active # same host, same history
$ ~/drsm/utils/drsm_host_status.sh --apply --reuse --from acme/hq/web2 web2 active # it moved from site acme/hq
$ ~/drsm/utils/drsm_host_status.sh --apply --fresh web2 active # a new host with the old name
--reuse keeps the same report folder and metrics history; --from brings the history, archive and status.log from the other site's folder. --fresh moves the old folder to systems/.decommissioned/web2_<date>/. Nothing is deleted. The trends page marks each decommission and reuse with a dashed line. See PLUGINS.md, Host status for every detail.
Change a threshold
Every plugin setting has a default in plugins/<category>/<name>/plugin.conf. Override it for all hosts in etc/hosts/_defaults.conf, for a site in its site file, or for one host in its host file, as <category>_<name>_<SETTING>=value:
storage_disk_WARN=85
storage_disk_SKIP="/mnt/scratch"
core_cpu_TIMEOUT=60
Status messages
Tell everyone about an outage or maintenance: the message scrolls across the top of every page. See Status messages.
$ ~/drsm/utils/drsm_message.sh --apply add warning "Mail relay maintenance 18:00 to 19:00" --until "2026-11-03 19:00"
Your own scripts
- A new check on a host: write a plugin in
plugins/local, see Writing a plugin. - A script that already writes a report file: list it in
$EXTreportsto show it on the dashboard with a state, see Reports from your own scripts. Start status lines withERROR,WARNINGorINFOand write aREPORT_ETIME:line with the run time. - Dashboard settings and menus are in
$CONFIGdir/drsm.php, colors in$WWWdir/site/custom.css, see Customizing the dashboard.
Security
The full notes are in SECURITY.md in the top folder of the source. In short:
- Supported versions: 1.36 and 1.35 get security fixes; upgrade older installs.
- Monitor host: DRSM runs as one user from cron, with no root and no daemon. The SSH private key stays on the monitor host; connections use
BatchMode, no passwords andStrictHostKeyChecking=accept-new(SSH options). The Reporting Agents connect out; DRSM never connects to Windows hosts. - Dashboard: pages only read report files, a request picks an ID and never a file path, and every value is escaped. Turn on the login (
$AUTHenable: bcrypt hashes, internal networks, lockout, CSRF tokens, Secure cookies on HTTPS) before the dashboard is reachable from outside your network, and block direct access to the report folder (Login, dashboard security). - Hook uploads are untrusted: only DRSM line kinds are read, and uploaded HTML is shown in a sandbox with no scripts.
- Report a vulnerability privately through the contact page (topic "Bug report"), without passwords, keys or site data. Please allow 3 to 5 business days for a reply.
Upgrade
- Unpack the new release beside the old source and check its SHA-256 checksum against the downloads page.
- Run the read-only check against it and keep the output:
utils/drsm_preflight.sh --source=$HOME/git/dr_system_monitor-<new>. It lists edited release files that the install replaces. Back up$DRSMHOME,config/drsm.php,$WWWdir/siteand the crontab. - Run
utils/install.shfrom it as the DRSM user. Host files, site files,plugins/local,_defaults.conf,config/drsm.php(the new one is written asdrsm.php_install_new) and$WWWdir/siteare kept. - Compare
drsm.php_install_newwithdrsm.phpfor new settings, read What's new. drsm_run.sh -l, then one run with-n.
The full steps, with roll back and the move from system_check.sh, are in docs/ai/upgrade.md.
Upgrading to 1.36: an active Windows or Linux agent host whose agent report is older than OFFLINE_HOURS (4 hours) now sends an error alert. Before the upgrade, find the agent hosts that are often off (laptops, test VMs) and give each STATUS=poweredoff or a larger OFFLINE_HOURS in its host file. utils/drsm_preflight.sh from 1.36 lists the hosts by status. See Host status.
Troubleshooting
| Symptom | Look at |
|---|---|
| Host is Stale | Cron, $LOGdir/drsm_run*.log, drsm_run.sh -n -H <host> -v |
| Host is red | Its report page: the first ERROR line under its check |
| A check is Unknown | A command in the plugin's REQUIRES is missing on the host |
| Host waits for its first report | It is new, or its report folder is left from a removed host (drsm_remove_host.sh) |
| Page blank or wrong | The Web server error log, php -l on the page |
| No alert email | -n on the cron line, the address lists, mail relay |
| Not sure where to start | utils/drsm_preflight.sh: a read-only summary of the install, cron and report ages |
Support
Still stuck? Use the DataReel contact page (topic "Application support" or "Bug report") and include the DRSM version, the OS and the utils/drsm_preflight.sh output. Please allow 3 to 5 business days for a reply, and do not send passwords, keys or other sensitive information. If an AI agent helped, attach the support summary it wrote (docs/ai/support.md).
AI-assisted use. DRSM ships guides that let an AI agent assist your admins with upgrades, everyday jobs and troubleshooting, one step at a time; your admins run or approve every command. Before you use any AI assistance, review all of your agency's or company's AI usage policies and get formal written approval from your management team. Use only approved enterprise AI models that guarantee your information is not used to train public models; public or free, open source and self-built AI models may expose your information. The entire risk of AI-assisted use rests with you, see the terms of use. Naming an AI tool is a reference only, not an endorsement. See AI assistants.