Plugins
How it works
Add any additional information, beyond OS and package status, by dropping executable files into /etc/oschecker/plugins.d/. The filename becomes the field name, whatever the file prints to stdout becomes the value. Use any programming language, as long as the file is executable. Plugins run on every checkin - once an hour by default - so keep them quick. For example:
/etc/oschecker/plugins.d/uptime.sh
#!/bin/sh
uptime -p
The field shows up on the machine, next to OS and package status.
$ sudo oschecker machine
name: web-server-01
os: Debian 13
architecture: x86_64
id: 3f8a1c2e-6b4d-4e9a-a1f7-2c5d8e0b9a64
checked in: 12 minutes ago
ip: 192.168.1.20
client: oschecker/0.2
uptime: up 3 weeks, 2 days, 4 hours
packages: 412 installed, up to date
Running oschecker plugins executes your plugin scripts and prints their output, so you can check them before the next scheduled checkin. It also lists files it skips because they aren't executable.
Examples
These are starting points rather than finished plugins - read one before installing it, and adjust it to your machine. Some have a value at the top to change, like a domain or a service, and some need a program that may not be installed.
Copy the install command with the button next to each plugin. For example:
curl -fsSL https://oschecker.com/plugin-examples/uptime.sh | sudo install -m 755 /dev/stdin /etc/oschecker/plugins.d/uptime.sh
System
- hostname.sh
- Network hostname of the machine
- uptime.sh
- Time since the last boot
- system-age.py
- Days since the OS was installed
- memory.sh
- Memory usage
- reboot-required.sh
- Whether a reboot is required
Storage
- disk-usage.sh
- Disk usage of the filesystem holding a directory
- folder-size.sh
- Disk usage of a directory
- file-age.py
- Age of a file in days
- raid-status.sh
- State of software RAID arrays and ZFS pools
Hardware
- hardware-model.sh
- Hardware vendor and model
- cpu-cores.sh
- Number of CPUs, cores and threads
- drive-health.sh
- Health status of all physical disks
Updates
Packages from Flatpak, Snap, pip, npm or a container image don't get your distribution's security updates - see Who keeps your packages secure?
- flatpak-updates.sh
- Available Flatpak updates
- snap-updates.sh
- Available Snap updates
- python-uv-updates.sh
- Outdated packages in a Python project managed by uv
- pip-audit.sh
- Known vulnerabilities in a Python project's dependencies
- npm-audit.sh
- Known vulnerabilities in a Node.js project's dependencies
- container-image-age.sh
- Age of the oldest image used by a running Docker container
Services and logs
An updated library only takes effect once the services using it restart - see Choosing when to update.
- service-status.sh
- Status of a systemd service
- timer-status.sh
- Status of a systemd timer
- journal-errors.sh
- Error-level journal entries from the last 24 hours
- services-restart-required.sh
- Services that are running outdated libraries
Security
- listening-ports.sh
- Listening external ports and their process owner
- ssh-auth-failures.sh
- Number of failed SSH login attempts in the last 24 hours
- last-logins.sh
- The 5 most recent logins
- sudo-users.sh
- Users with administrative privileges
Domains
- certificate-expiry.sh
- Expiry date of a domain's TLS certificate
- domain-expiry.sh
- Registration expiry date of a domain
- dns-a-record.sh
- Current DNS A record of a domain
- dns-nameservers.sh
- Nameservers currently answering for a domain
More use cases
Ideas not covered by the examples:
- storage
- disk io, temperature
- cpu
- load, top processes
- network
- throughput, public IP, ping
- processes
- count, top offenders
- filesystem
- database size, cache size, backup age
- logs
- Nginx access, app logs, recently updated packages
- stats
- web requests, database queries, dataset rows, billing status
- AI and APIs
- LLM token usage, API quotas and rate limits, spend this month
- security
- CrowdSec, Fail2Ban
- dependencies
- outdated Python packages, Node modules
- containers
- Docker, Podman
- local packages
- Snap, AppImage