Kizashi documentation
Self-hosted, multi-tenant network & infrastructure monitoring. To install or update a server, see Download.
First run
Open Kizashi in a browser. A fresh installation shows a setup page that asks for a setup code, your company name and the first admin account. The code is printed by the core when it starts without any users:
docker compose logs core | grep -i "setup code" -A2
The code protects a new installation from being claimed by whoever reaches it first. After ten wrong attempts a new code is printed. Once you are in, set up two-factor sign-in: staff accounts (admins, technicians, read-only staff) must have it before they can do anything else, and cannot turn it off. Until then their sessions, API tokens and apps can only set it up or sign out. If someone loses their phone, an admin resets it under Settings → Users and they set it up again at their next sign-in. Clients may use it but do not have to.
Without a browser, docker compose exec core /usr/local/bin/gotrtg bootstrap --email you@example.com --msp-name "Your Company" creates the admin and prints a generated password.
Updates
Each core reads latest.txt once a day and tells admins (manage_system) in a banner when a newer
release is out; GOTRTG_UPDATE_CHECK=off in .env stops that, for servers without internet access.
Development builds never look. Check for updates in the account menu (admins) looks at once,
for right after a release (POST /system/update/check).
Update now. On a server the installer set up (with systemd), the banner has an Update now
button (admins): it backs up the database (kizashi backup), then runs the installer, and the
banner follows it (a backup, the new version, the restart) and reloads the page on the new
version; a failed update says why and shows its log, and Kizashi stays on the version it had.
The web app cannot run anything on the host: the installer sets up kizashi-update.path, a
systemd unit that watches /opt/kizashi/update/request/ (the only host folder the core can
write to) and runs kizashi web-update as root when the core drops a request there; that
writes its progress into update/progress/ (root's, read-only to the core). The core can ask
for the newest version and nothing else. A server installed before this has no updater until it
is updated once with sudo kizashi update; until then the banner gives that command.
Web UI
The Help menu (the question mark at the top right) links to this documentation, the Kizashi website and r/kizashi on Reddit.
Suspending or deleting a customer
In Settings → Customers → Edit:
- Suspend (turn off Active): the customer's users cannot sign in; everything else, including monitoring, carries on. Turn it back on at any time.
- Delete customer…: asks you to type the customer's name, then deletes it and everything in it (groups, devices, sensors, alerts and alert rules, credentials, maps, dashboards, reports, status pages and probes; its probes and Windows agents are disconnected). Logins that can see only that customer are deleted too; logins with other customers keep those. It is taken off the exceptions of rules for all customers. Stored readings are no longer shown and age out, as for a deleted sensor. The audit log keeps an entry. It cannot be undone, and your own company cannot be deleted.
Desktop app
The desktop app shows the web UI in its own window. It also puts an icon in the system tray, coloured by your alarms: red for an unacknowledged Down; orange for warnings, unknowns and acknowledged Downs; green when all is clear; grey when not connected. It pops up a notification when a sensor goes down. Click the notification to open the sensor.
- Install: My account → Desktop app. Each Kizashi release includes the matching apps.
- Windows (64-bit): Windows 10 and 11, and Windows Server once Microsoft's WebView2 runtime is installed. The Windows build is not yet code-signed, so SmartScreen warns once: choose More info → Run anyway.
- Linux .deb: Ubuntu 22.04 and newer, and Debian 12 and newer. Install it with
sudo apt install ./gotrtg-desktop-linux.deb, which also installs GTK 3 and WebKitGTK 4.1. The plain Linux program suits other distributions that have those libraries. - Linux tray icon: shows on KDE, Xfce and Cinnamon, and on Ubuntu's GNOME. Other GNOME desktops need the AppIndicator extension.
- macOS: will follow.
- Connect: My account → Desktop app → Connect an app shows a one-time link, valid for 10 minutes. Paste it into the app. The browser has already done the password and two-factor check, so the app never asks for them.
- Tray menu:
- Open Kizashi and Show alarms.
- Notify me about: downs; downs and warnings; or nothing.
- Start when I sign in.
- Disconnect this computer… and Quit.
- Closing the window keeps the app running in the tray.
- Links to other sites (the Help menu, What's new, WHMCS) open in your default browser. Desktop apps from before v1.0.28 open them in a window of their own.
- What it checks: the app checks your alarms every 15 seconds. It doesn't notify about sensors that are acknowledged or inside a maintenance window. Problems already present when it starts aren't announced; the tray colour shows them. If more than three sensors go down at once, you get one summary instead.
- Disconnecting: each connected app is listed under My account, and admins see each user's apps in Settings → Users. Disconnect signs the app out at once. A password reset by an admin, or a password change with also revoke my API tokens and disconnect my apps ticked, disconnects them all.
- Security: the app's token can only read alarms and sign its window in. Everything else happens in the window, as the user, with the user's role. Clients see only their own customers and stay read-only.
- Troubleshooting: the app keeps a log in
%AppData%\GOTRTG\desktop.logon Windows and~/.config/Kizashi/desktop.logon Linux.
The app is built from desktop/ (Go and Wails). make desktop builds
bin/gotrtg-desktop.exe; make desktop-linux builds the Linux program and .deb into bin/ (in
Docker, on Ubuntu 22.04); make desktop-check runs the tests.
Phone app
Kizashi installs on a phone from the browser, with no App Store: open it in Safari (Chrome on Android), tap Share → Add to Home Screen, then open it from the home screen and sign in. My account → Phone app shows these steps with a QR code.
- Stays signed in: signing in inside the home-screen app connects it like the desktop app. It stays signed in until it is disconnected, or goes unused for 180 days. It is listed with the other apps under My account, and Sign out in it disconnects it.
- Notifications: in the app, My account → Phone app → Turn on notifications (iPhones need iOS 16.4 or later). That ticks Phone app under My account → Alerts. Alert rules that name the user then also push to their phones, alongside email and SMS. Rule settings such as escalation, summaries, schedules and acknowledgements apply as usual. Send a test checks it. Tapping a notification opens the sensor. The app icon shows the number of unacknowledged Downs.
- How push works: the server signs each message with its own key (VAPID, made on first use and sealed with the master key) and sends it encrypted to the phone's push service (Apple's or Google's). The core needs outbound HTTPS to them.
Face ID and passkeys
Users can sign in with a passkey (Face ID, Touch ID, Windows Hello or a security key) instead of a password and two-factor code: Sign in with Face ID or a passkey on the sign-in page.
- Adding one: My account → Face ID and passkeys → Add a passkey. It asks for the password, and the two-factor code if two-factor sign-in is on. Then the device asks for Face ID or a fingerprint. Each phone or computer gets its own passkey. On an iPhone, the passkey syncs through iCloud Keychain to the user's other Apple devices.
- Removing: remove a passkey from the same list. An admin's two-factor reset, a password reset by an admin, or a password change with also revoke my API tokens and disconnect my apps ticked removes all of the user's passkeys.
- Host name: passkeys belong to the host name in
GOTRTG_PUBLIC_URL, which must be a name, not an IP address. If the address changes, existing passkeys stop working and need adding again. Users who sign in through WHMCS don't have passkeys.
Sign-in protection
- Limits: 10 failed sign-ins in 15 minutes from one address (an IPv6 address counts as its whole /64) block that address for the rest of the window. The refusal says how long to wait.
- Accounts under attack: after 100 failed sign-ins to one account in 15 minutes, from anywhere, sign-ins to it are paused, but only for browsers that have never signed in to it. A browser that has signed in before (it keeps a cookie for a year) still gets in, so an attacker cannot lock the owner out. The owner and the MSP admins get an email.
- Password guessing across accounts: when one address fails to sign in to 5 different accounts in 15 minutes, the MSP admins get an email, at most once an hour per address.
- New browsers: when an account signs in from a browser it hasn't used before, its owner gets an email with the time, address and browser. The first browser after this was added doesn't count. A password change forgets the account's other browsers, and a password or two-factor reset by an admin forgets them all.
- These emails go through the mail relays under Settings → Email; without one, nothing is sent. Failed sign-ins are in Settings → Audit log.
- Clearing a lockout: Settings → Users lists the lockouts in force (by address, account, password re-entry, mobile connect codes and WHMCS sign-in links) with when each ends. An MSP admin can clear one, or all of them, so someone locked out can try again at once; each clear is in the audit log. Lockouts are kept in memory, so restarting the core also clears them.
Right-click menu, cloning and templates
Right-click a group, device or sensor anywhere it appears (tree, group and device pages, overview tiles, alarms) for its menu: open in a new tab, copy its link or address, scan now, acknowledge, pause or resume, add, clone, apply or save a template, edit and delete. The "…" button on each page and row opens the same menu (use it on touch screens; Android also opens it on a long press). Shift+right-click, or right-clicking selected text or a text field, opens the browser's own menu. Clients only see the open and copy items.
- Clone copies a group (with everything in it), a device (with its sensors and its own database/API-token connection) or a sensor, including channel limits and lookups, to any group or device, also at another customer. History, state and pauses are not copied. Notification rules are copied only within the same customer, and a copy to another customer is refused while the source uses that customer's own credentials (use shared credentials or the defaults).
- Move to… moves a device to another group, also of another customer (staff). Across customers it keeps everything that is the device's own: its sensors with their state, history and averages, its own connections (re-encrypted for the new customer), its agent and inventory. What the old customer set up around it stays with that customer and is removed from the device: notification rules and their open alerts, maintenance windows, status page entries and reports of the device or its sensors. The dialog shows what will be removed before you confirm. A move is refused while the device or its sensors use the old customer's own credentials or probe, while something of the old customer depends on its sensors, and for a probe's own device.
- Templates: set up one device, then Save as template in its menu (all or some of its sensors; credentials and probes are not saved). Apply template on a device, or on a group for all devices below it, adds the template's sensors; sensors a device already has (same type and parameters) are skipped, so applying twice adds nothing. Sensor names that start with the device's name follow the device: saved from MBE-App01, "MBE-App01 APT Health" is kept as "{device} APT Health" and added to MBE-App02 as "MBE-App02 APT Health". Manage them under Settings → Templates.
Discover sensors (auto-discovery)
Discover on a device's page (or Discover sensors… in its menu; staff only) has Kizashi look at the device and suggest sensors. Nothing is added until you tick what you want and click Add.
- The device's probe checks ping, common TCP ports (web, mail, SSH, databases, cPanel, LiteSpeed, Proxmox…) and SNMP with the device's inherited SNMP credential. If the device was never inventoried, Detect OS and software runs at the same time.
- From that it suggests:
- System sensors: Windows sensors when the agent is installed (or WMI works); SNMP uptime/load/memory for Linux net-snmp; SNMP system otherwise; SSH disk and updates; hardware health when the device has a management card (Edit device): Redfish if the card answers Redfish, else IPMI.
- Interfaces: Windows adapters when the agent is installed (Windows' SNMP service is slow to answer for them), SNMP interfaces otherwise.
- Web: HTTPS and its certificate.
- Applications it found: LiteSpeed, MySQL/MariaDB, SQL Server and its databases, IIS app pools, Docker containers, Proxmox VE nodes/storage/guests, and Proxmox Backup Server datastores.
- Common choices come ticked. Names follow the device: "MBE-Web1 CPU Load".
- What the device already monitors goes under Already monitored, matched by type and target (an interface by its name). A sensor of another type that shows the same data is offered unticked; for example, SNMP system already shows CPU on a Windows server.
- A suggestion that needs a credential the device doesn't have (a database login, an API token) is unticked and says which one. Adding skips sensors the device already has, so running discovery again adds nothing twice.
Network discovery
To find machines Kizashi doesn't monitor yet, use Scan network… in a group's menu, or
Discovery → Scan a network (staff only). Enter subnets (up to a /22), ranges
(10.0.0.10-10.0.0.50 or 10.0.0.10-50) or single addresses, up to 1,024 per scan.
- The group's probe pings each address and tries a few ports: SSH, HTTP/HTTPS, RDP, WinRM, SMB, and Proxmox VE/Backup. If the group has an SNMP credential, it also asks SNMP for the name and description. It then looks up each host's DNS name. A /24 takes about 15 seconds.
- Hosts that answer appear on the Discovery page. Addresses already monitored by one of the customer's devices are marked Monitored. A match counts when the device's address is the IP, is the host's DNS name, or is a name that resolves to the IP.
- Add makes a host a device of the scan's group, named from SNMP or DNS (you can change the name). The device's Discover sensors list then opens so you can pick its sensors. Ignore keeps a host out of the New list.
- A scan can run daily or weekly. New hosts wait on the Discovery page, and nothing is added automatically. Running a scan again updates what it found without adding duplicates.
AI assistant
Staff can ask questions about the monitoring in plain English on the AI assistant page, for example "what went down last night, and why?" or "which servers have security updates pending?". It runs on Anthropic's Claude, OpenAI's GPT or Moonshot AI's Kimi, billed per question to your own account with each provider.
- Turning it on: under Settings → AI assistant, an admin enters an API key for one or
more providers, picks the default model and sets a monthly spending limit (one limit for all
providers). The page shows this month's cost.
- Claude Sonnet 5.5 is the default, at roughly 5–6 cents a question; Claude Haiku 5.5 costs under half a cent and is fine for simple lookups.
- Also listed: GPT-6.1 Sol and Terra (OpenAI) and Kimi K3.1 Pro (Moonshot). Admins can add models and change their IDs and prices as the providers change them.
- Staff pick the model when they start a conversation; a conversation keeps its model.
- What it can do: it looks things up through Kizashi's own API as the person asking, with their role, so it sees what they would see.
- Changes: it can suggest changes: acknowledging, pausing and resuming, check now,
maintenance windows, adding and editing groups, devices, sensors and channels, network
scans and alert rules.
- Each suggestion shows what it does and what it affects. Nothing changes until the person who asked clicks Confirm (within an hour).
- It is then made as them, with their role. The audit log shows it as theirs, marked "(via AI assistant)".
- It cannot delete anything, or change users, customers, credentials, passwords, scripts, probes, remediation, alert channels or system settings.
- Staff with the read-only role get no suggestions.
- Answers link to the sensors, devices and groups they mention.
- Conversations are kept per user, and each user sees only their own. Customers' logins don't get the assistant.
- What leaves Kizashi: each question, and what is looked up to answer it (names, hosts, statuses, messages, values, audit entries), goes to the provider of the conversation's model: Anthropic or OpenAI (United States) or Moonshot AI (China). Passwords, keys and tokens are removed first. Endpoints holding credentials or connection details are not available to it at all.
- Limits: once the month's cost reaches the limit, questions are refused until the next month (UTC). Costs are worked out from list prices; Anthropic's invoice is what counts.
Device tags and inventory
Each device can have an operating system (family › name › version, e.g. Linux › Ubuntu › 22.04) and any number of software entries (cPanel, Plesk, Proxmox VE, LiteSpeed…), both picked in the device's edit form. Software can have versions where they matter (Proxmox VE 7, 8, 9, each with its own end of support); entries with the same name are versions of one product, and one without a version matches any version. There is no free typing: admins keep the two lists under Settings → Device tags, where each operating system can have an end-of-support date. Devices show “End of life” once that day has passed, and “End of life soon” within 180 days of it. Deleting an entry takes it off its devices.
Detection. Kizashi reads what a device runs through its probe, the same way the device's sensors
log in: over SSH (/etc/os-release, plus file and service checks), through Windows (the agent or
WMI/WinRM: the Windows version, services, and roles and features), or over SNMP (the system
description, e.g. RouterOS). It only reads and never changes anything on the device. Each software
entry says how to recognise it (Settings → Device tags → edit, e.g. cPanel: the file
/usr/local/cpanel/version; IIS: the service W3SVC). An installed package (pve-manager for
Proxmox VE) or a version file also gives the version, which picks the matching version entry.
Detection also tells what a server runs on, and the entries Bare metal, KVM and LXC
tag it by that (Runs on in the entry: also VMware, Hyper-V, OpenVZ, Xen and others). Over SSH
this comes from systemd-detect-virt (or /proc and the hardware vendor on older systems), on
Windows from the computer's maker and model; a Hyper-V host counts as bare metal.
- The first detection fills in a device's tags if it has none yet.
- After that it runs weekly (and from Detect OS and software in a device's menu), and only points out differences on the device page, e.g. "detected Ubuntu 24.04, tagged 22.04". Staff choose Apply what was detected or Ignore (until something else changes). An OS that is not in the list yet can be added from there with one click.
- Devices without an SSH, Windows or SNMP sensor (or an SSH/Windows credential, or the agent) are not detected. SNMP finds only the operating system, not software, and is used only when nothing better is there (a device with the agent is detected through the agent). Windows over SNMP names only its build number, which is read as the matching Windows Server release (20348 is 2022).
Inventory (in the sidebar) lists devices with filters for operating system (a version, a whole name such as any Ubuntu, or a family), software, and end of support. The filters are kept in the page's address, so a filtered list can be bookmarked or shared. Staff can also show only devices whose detection differs from their tags. Clients see their own devices.
Probes
make up also starts the local probe. It enrolls itself automatically and
runs every sensor that has no probe_id setting.
To add a remote probe (another site, a client network), use Settings → Probes → + Probe. The dialog shows a one-line command to run as root on the probe host (any 64-bit Linux with systemd; its Windows tab has the PowerShell command for a probe on Windows):
curl -fsSL https://monitor.example.com/install/probe.sh | sudo sh -s -- gtp1_...
It downloads the probe program from your core (only with a valid enrollment token), installs it
as the gotrtg-probe service and enrolls it. The probe only connects out, to the core's
port 443, so client firewalls need no inbound rules. It keeps working, and buffers results on
disk, while the core is unreachable. Approve it on the Probes page (unless it was set to approve
automatically), then point groups, devices or sensors at it with the Probe setting, which is
inherited down the tree. Logs: journalctl -u gotrtg-probe.
Installed probes update themselves: when the core runs a new version, each probe restarts
once, and before it starts again a root-only step downloads the core's version over the probe's
own certificate connection and installs it. That step trusts only the core whose CA fingerprint
the installer saved in /etc/gotrtg-probe.env. If an update fails, the probe starts on the
version it has (and tries again with the next core version).
Without the installer: GOTRTG_PROBE_CORE=monitor.example.com GOTRTG_PROBE_TOKEN=gtp1_... gotrtg probe.
Every probe gets a Probe health sensor when it first connects, on a device named after the probe in the customer it belongs to (your company for shared probes). It shows the probe machine's CPU, memory and free disk, and how many results are waiting to be sent. If the probe stops connecting, the sensor turns Down within about a minute, so an alert rule on that customer (or on the sensor) tells you a site's probe is offline. Delete the sensor if you don't want it; it is not created again.
Probes authenticate with their own certificates, issued by the core's internal CA, and renew them automatically. Revoking a probe disconnects it within seconds.
Adding a sensor
+ Sensor on a device opens the sensor catalog. Types are listed by the problem they answer (Availability & network, Websites & certificates, Email, Web hosting, Linux servers, Windows servers, Databases, Virtualization & containers, Backups, Storage & hardware, Security & patching, Network devices, Cloud, Custom & scripts); a type can sit in more than one. Each card says how the sensor reaches what it monitors (SSH, Windows agent, SNMP, API, BMC, Database, a cloud, or Network for ping, ports and web checks), so you can tell what it needs. Suggested for this device comes first: the types Discovery's rules suggest from what is already known about the device (what inventory detection found it runs, its credentials and Windows agent, and what its sensors show answers), with how many it already has; Discover on the device looks closer. The search box searches every category as you type, by name, description and the words people use ("patch", "firewall", "certificate", "backup"); the arrow keys and Enter pick a card. Change type goes back to the catalog.
Linux servers (SSH sensors)
- Settings → Credentials → + Credential, kind SSH: a username and a password or a private key (without a passphrase). A normal, unprivileged user is enough for every SSH sensor.
- Choose the credential in the settings of the device, or of a group above it (inherited). A key most customers share (your company's, "shared") can be set once in Settings → Defaults, which every customer inherits; a customer, group or device can still override it.
- Add sensors: SSH disk free (every local disk, or the mount points you list; free space and inodes; Warning below 15 % free, Down below 10 %), SSH load average (load, per CPU, uptime), SSH memory, SSH process / service (a running process, or an active systemd service), SSH package updates, RAID status, ZFS status, CSF firewall, JetBackup and SSH script.
The SSH package updates sensor checks a server with apt (Debian, Ubuntu) or dnf/yum (RHEL, AlmaLinux, Rocky, CentOS, CloudLinux, Oracle, Amazon Linux). It runs every 3 hours unless the sensor, or Sensor defaults for the type, sets another interval. It refreshes the package lists first (needs root or passwordless sudo on apt servers; turn Refresh the package lists first off to use what the server fetched itself), then reports pending updates and security updates, failing repositories (and why: missing signing key, gone, unreachable), a broken package manager, and days past end of support (Ubuntu's own release data where the server has it; Debian counts its LTS). Down: pending updates (any, only security, or never, as set in Down for pending updates), or the package manager or a repository is broken. Warning: package lists not refreshed for over 3 days, none cached, or the refresh timed out. End of support is only reported in the message (the device's OS tag shows END OF LIFE). Each message says how to fix it. apt servers also show updates kept back and, on Ubuntu, security updates that need Ubuntu Pro. CentOS 7's own repositories have no security advisories, so its security count is left out.
The LiteSpeed license and status sensor checks a LiteSpeed Web Server over SSH (as root, or
with passwordless sudo), with no SNMP script needed. It runs every 3 hours unless the sensor, or
Sensor defaults for the type, sets another interval. It verifies the license with lshttpd -V
(at most once an hour, and on every run while it fails) and reports the days left: Warning at 3 days left and Down
at 2, by default (the License days left channel's limits). Leased licenses renew themselves
and stay at about 7 days, so these only trip when renewing stops. It is Down when the license is
invalid, or when LiteSpeed is not the web server on ports 80 and 443: stopped, or Apache or nginx
has taken over (the message names which, and on cPanel gives the command that switches back).
PRTG sensors that read the LSDays SNMP script or run check_litespeed_license.sh import as this.
The RAID status sensor checks every RAID array on a Linux server over SSH (as root, or with
passwordless sudo), with nothing to set: Linux software RAID (/proc/mdstat) and each hardware
RAID controller whose driver is loaded, through its vendor's tool: storcli/perccli (or
MegaCli) for LSI/Broadcom/Dell PERC, ssacli (or hpssacli/hpacucli) for HP Smart Array,
arcconf for Adaptec and IBM ServeRAID, cli64 for Areca (disks passed straight through are not
arrays and are left out). It looks for the tools on the PATH and where the vendors
install them (/opt/MegaRAID/...). It runs every 15 minutes unless set otherwise. Down: an array
degraded or failed, or a controller failed (the message names the array and the failed disk's
slot). Warning: an array rebuilding or resyncing (with its progress in Rebuild progress), a
cache battery or CacheVault that needs attention, a disk with a predictive failure, or a RAID
controller whose tool is not installed. A RAID0 array is noted, not alarmed. A server with no
arrays at all is Down ("no RAID found"). Intel RST (imsm) containers and scheduled md checks are
not problems. PRTG sensors that ran raidstatus.sh, swraidstatus.sh, hwraidstatus.sh,
hperaid.sh or ibmraid.sh import as this.
The ZFS status sensor checks every ZFS pool on a server over SSH (Linux, Proxmox, TrueNAS,
FreeBSD; as root, or with passwordless sudo), through zpool list and zpool status, with
nothing to set. It runs every 15 minutes unless set otherwise. Down: a pool degraded, faulted,
unavailable or suspended (the message names the failed device), a pool with permanent data
errors, or no pools at all. Warning: a pool resilvering (with its progress in Resilver
progress), a device with read, write or checksum errors (zpool clear resets them), a device
outside the pool's redundancy that failed (a cache or spare), or a scrub that left errors it
could not repair. How full a pool may get is the Fullest pool channel's limits: Warning at
80%, Down at 90% by default. PRTG sensors that ran zfs, zfs.sh, zfs_monitor.sh or
zfsstatus.sh import as this.
The CSF firewall sensor checks ConfigServer Security & Firewall over SSH (as root, or with
passwordless sudo), with nothing to set. It runs every 15 minutes unless set otherwise. Down: CSF
disabled (csf -e enables it), failed to start (/etc/csf/csf.error; its contents are in the
message), none of its chains loaded in iptables (flushed with csf -f; csf -r reloads), or not
installed. Warning: TESTING = "1" in csf.conf, or lfd not running. Its channels are the
firewall's rule count, the IPs in csf.deny and whether lfd runs. PRTG sensors that ran
csfstatus.sh import as this.
The JetBackup sensor checks JetBackup's backup jobs over SSH (as root, or with passwordless
sudo), through its own API (jetbackup5api, or jetapi for JetBackup 4), with nothing to set. It runs every 15 minutes unless
set otherwise, and judges each enabled job by its newest run in JetBackup's logs. Down: a job's
newest run failed, or JetBackup is not installed or not answering. Warning: a job's newest run
only partly completed or was aborted, or a job is overdue (no completed run within its most
frequent schedule and half again: 36 hours for a daily job, at least two hours more for an hourly
one). Disabled jobs and JetBackup's own maintenance (integrity checks, snapshot cleanups) are left
out. Its channels count enabled, failed, partial or aborted, overdue and running jobs, and the hours
since the job longest without a backup last completed one.
Servers with JetBackup are tagged JetBackup 5 or JetBackup 4 by Detect OS and software
(from the version of the jetbackup5-base or jetbackup package), and auto-discovery ticks the sensor for them.
Disks that are not worth watching are left out: in-memory and system filesystems, container and
cPanel jail mounts, and snap packages (/snap, /var/lib/snapd; read-only images, always full).
To drop others, click the eye on one of a mount's channels (Ignore this mount), or list them in
the sensor's Ignore mount points (comma-separated; * matches anything, e.g. /mnt/backup, /media/*). Their channels are removed and stay away. The SNMP system sensor has the same setting.
The SSH script sensor runs a command (with a 60-second timeout unless a group, the device or the sensor sets one: scripts cut off early keep running on the server). The script can print a status line, as PRTG's SSH script sensors do:
0:200:CSF OK
status:value:message: status 0 is Up, 1 Warning, 2 Down (3 and 4 also mean Down); the value
is charted (named and given a unit in the sensor's settings) and may be left empty; the message
is shown on the sensor. A status line sets the state even if the script exits non-zero, and Down
is immediate, without the usual retries. A script can also print just a number, or JSON with
several values ("status": "warning" or "down" sets the state the same way):
{"message": "12 messages queued", "channels": [
{"key": "queue", "name": "Queue", "value": 12, "unit": "count", "integer": true,
"limits": {"warn_max": 100, "err_max": 500}}]}
Channels appear the first time a value is reported (up to 50 per sensor); limits given in the
output are the starting limits and can be changed per channel. A non-zero exit status, or
"error": true, makes the scan fail. The probe remembers each server's SSH host key when it
first connects and refuses a different key later (for example after a reinstall) until you put
the new fingerprint, shown in the sensor's message, into the sensor's Host key setting.
Windows servers
Windows sensors: Windows CPU load, memory (physical, committed, page file), disk free (each local drive; Warning under 15 % free, Down under 10 %), system (uptime, clock difference to the probe, processes), automatic services not running, one service, a process (count, CPU, memory), the event log (new entries since the last scan, by log, level, source and event ID), network traffic per adapter (in, out, utilization, errors, link state; Find network adapters lists them, NIC teams included, or type the connection name such as "Ethernet 2"; a disabled adapter shows as Up, like an interface shut down on a switch; no SNMP needed), any performance counter (WMI class), Windows Update (days since the last update was installed, Warning over 45 and Down over 90; updates waiting to be installed, how many of them are security updates, and whether a restart is pending) and an IIS application pool. Pending updates come from a Windows Update search (nothing is downloaded), by the agent or over WinRM (not over WMI). Searches run in the background at most hourly and read Windows' own list of updates; when Windows has not checked with Microsoft (or your update server) successfully for a day, the search checks online first, since that list can still show an update you just installed. Check now, and the recheck after a remediation, search again at once and check online, so a server you just patched clears within a few minutes. If checking online fails, Windows' own list still answers. Antivirus definition updates (Microsoft Defender's security intelligence updates, which come several times a day and install themselves) are not counted unless the sensor's Count antivirus definition updates option is on. Any pending update makes the sensor Updates Available (see Sensor states; Pending updates above 0, change the channel's limits to relax it). Find services and Find application pools list what a server has.
They reach a server in one of three ways, and give the same channels whichever is used:
- The Windows agent (simplest; no account, no open ports). On the device's page, click
Windows agent → Create install command and run the command on the server in PowerShell as
an administrator. It installs the Kizashi monitoring service (
C:\Program Files\GOTRTG), which connects out to the core like a probe, is approved automatically (the token is for that device only) and runs the device's Windows sensors locally. The device's other sensors (ping, HTTP, …) stay on its probe. The agent updates itself with the core; if it stops, its Agent health sensor on the device turns Down. Logs:C:\ProgramData\GOTRTG\logs. Remove it with& 'C:\Program Files\GOTRTG\gotrtg.exe' service uninstall(and Remove agent on the page). - WinRM from any probe, with a Windows credential on the device or a group above it
(user
DOMAIN\user,user@domainor a local account). WinRM over HTTP (port 5985) is whatEnable-PSRemoting(orwinrm quickconfig) sets up, and Windows encrypts it; HTTPS (5986) works too. The probe must be allowed through the server's firewall on that port. - WMI from a probe running on Windows (install a probe on a Windows server with the Windows tab of + Probe), also with the Windows credential. WMI needs DCOM through the firewall (TCP 135 and dynamic ports), so WinRM is usually easier.
The credential's Connect with setting picks WinRM or WMI ("Automatic" uses WMI from a probe on
Windows and WinRM otherwise). Use an account in the server's local Administrators group (for
example a domain group added by Group Policy): Windows hides most services and the installed
updates from other accounts. For an account that is not an administrator, CPU, memory, disks,
processes, performance counters, IIS and event logs work after adding it to Remote Management
Users, Performance Monitor Users and Event Log Readers, and giving it Enable Account and
Remote Enable on the WMI namespace root\cimv2 (Computer Management → WMI Control). A local
account other than the built-in Administrator also needs
LocalAccountTokenFilterPolicy = 1 under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
to keep its administrator rights over the network.
SQL Server on a Windows server: monitor its services (MSSQLSERVER, SQLSERVERAGENT) with
the Windows service sensor, and the server, its databases and Agent jobs with the
database sensors.
Hosting servers (cPanel, Exim, LiteSpeed)
These run over SSH with the group's SSH credential, as root (cPanel's tools need it); nothing is installed on the servers.
- cPanel server: cPanel version, accounts and suspended accounts, and the services cPanel monitors (Apache/LiteSpeed, Exim, Dovecot, MySQL, cpsrvd, ...): Down when one of them is not running, naming it.
- Exim queue: queued messages (Warning over 500, Down over 2,000), frozen messages and the age of the oldest message.
- LiteSpeed: requests per second, requests in progress, connections and how full the
connection limit is, and the three busiest sites, from LiteSpeed's live statistics
(
/tmp/lshttpd/.rtreport*). A check fails when LiteSpeed has not updated them for a minute (Warning first, as LiteSpeed pauses them while it restarts); Down when that keeps up.
A server that drops an SSH login before the command starts is tried twice more, about 2 and 5 seconds later, while the sensor's timeout allows.
Server hardware (iDRAC, iLO, IPMI)
Set the server's management card under Edit device → Management card: its own IP address (empty: the device's host), a username and password (a read-only account is enough), and optionally the HTTPS port and certificate fingerprint. Without a fingerprint, the certificate seen first is trusted, like an SSH host key. Then add one of these sensors (Discover suggests the right one):
- Hardware health (Redfish): Dell iDRAC 8/9 (and iDRAC 7/8 from firmware 2.40), HPE iLO 4/5/6, Supermicro X10 and newer. Older card firmware that only offers older TLS ciphers is supported.
- Hardware health (IPMI): cards without Redfish (iDRAC 6, older Supermicro and others), over IPMI 2.0 (falling back to 1.5) on UDP port 623. IPMI over LAN must be enabled on the card. It reads every sensor the card lists: temperatures, fans, power supplies, drives, voltages and power draw.
Both show overall health, the hottest and the inlet temperature, power draw, and how many fans, power supplies and drives have problems. Every temperature the card reports (each CPU, the inlet, the exhaust and so on) also gets its own channel, with the card's own limits. They are Down when a part or reading is critical or the server is powered off, and Warning on a warning, with the message naming the parts. They check every 5 minutes with a 60 s timeout, because cards answer slowly.
Proxmox VE
The Proxmox sensors use the device's API token (Edit device → API token): one device per
cluster (any node's address) or standalone host. In Proxmox, create a token under Datacenter →
Permissions → API Tokens (e.g. monitor@pve!gotrtg, privilege separation on) and give the
PVEAuditor role on / to both the user (monitor@pve) and the token: a token with privilege
separation gets only the permissions both have. A refusal that doesn't name a permission (a bare "Forbidden")
comes from before Proxmox's permission check: allow the monitoring server's address in ALLOW_FROM in
/etc/default/pveproxy (or in a proxy or firewall in front). Proxmox's own self-signed certificate is trusted the first time it is
seen, like an SSH host key; a later, different certificate is refused unless you enter its
SHA-256 fingerprint on the device's token (a publicly trusted certificate is always accepted).
- Proxmox VE cluster: quorum (Down when lost), nodes online and offline (Down when one is offline), VMs and containers running and stopped. Works on a standalone host too.
- Proxmox VE node (Find nodes): CPU, IO wait, memory, swap, root disk free, load, uptime; Down when the node is offline.
- Proxmox VE VM / container (Find VMs and containers): Down when it is not running; CPU, memory, disk (containers), network and disk traffic. It follows the VM when it migrates.
- Proxmox VE storage (Find storage): space used (Warning 80%, Down 90%) and free; Down when the storage is not available.
- Proxmox VE backups: backup (vzdump) tasks on every node in the last 24 hours: Down when one failed (naming it), and hours since the last successful backup.
Proxmox Backup Server
Same API token setup, on port 8007 (the default when the port is empty). On the Backup
Server, create a token under Configuration → Access Control → API Token (e.g.
monitor@pbs!gotrtg) and give the Audit role on / to the token and its user (or untick
privilege separation and give it to the user).
- Proxmox Backup Server: CPU, IO wait, memory, swap, root disk free, load, uptime.
- Proxmox Backup Server datastore (Find datastores): space used (Warning 80%, Down 90%), free, estimated days until full (Warning under 14), backup groups and snapshots, and groups with no backup in the last 48 hours (Warning, naming them); Down when the datastore has an error.
- Proxmox Backup Server jobs: backup, verify, garbage collection, prune, sync and tape jobs in the last 24 hours: Down when one failed (naming it); restores are not counted.
Proxmox Mail Gateway
Over SSH as root with the group's SSH credential, like the hosting servers.
- Proxmox Mail Gateway: its services (proxy, API daemon, SMTP filter, policy, cluster sync, Postfix, ClamAV, SpamAssassin when enabled): Down when one stops, naming it. Also mail in and out in the last hour, spam %, viruses, connections rejected (RBL, pregreet) and the age of the virus signatures (Warning over 48 hours).
- Postfix queue (any Postfix server): queued messages (Warning over 500, Down over 2,000), active, deferred and on hold, the age of the oldest and the most common delay reasons.
Docker
Over SSH with the device's SSH credential; Docker's API is never opened to the network. Podman
works too (its docker-compatible commands).
- Docker host: containers running, stopped, restarting (Warning) and unhealthy (Down), naming them, and the space images and the build cache take. Down when Docker does not answer. Compose project counts only that project's containers.
- Docker container: one container, found by name, so it is still found after
docker compose uprecreates it. Find containers lists them to pick from. Down when it is not running (with the exit code, and "out of memory" when it was killed for that) or its health check fails; Warning when it restarted since the last check (by its restart policy,docker restartor being recreated). Also CPU, memory, network and disk traffic and uptime.
The SSH login has to be able to run docker. Either add it to the docker group (simple, but
that group is as powerful as root), or allow only the read-only commands through sudo, which the
sensors try when plain docker is refused, e.g. /etc/sudoers.d/kizashi:
monitor ALL=(root) NOPASSWD: /usr/bin/docker ps *, /usr/bin/docker inspect *, /usr/bin/docker stats *, /usr/bin/docker system df *
AWS
AWS sensors read AWS's APIs and CloudWatch with an AWS credential. A device stands for an
AWS account in one region: give it the region as its host (e.g. us-east-1), or set Region
on each sensor (handy for an EC2 server already monitored over SSH).
- AWS EC2 instance: running (Down when not), AWS's system and instance status checks (Down when one fails), scheduled events (reboots, retirements), CPU, network and CPU credits for T instances. Find instances lists them.
- AWS RDS database: status (Down when stopped, failed, storage full, ...), CPU, free storage (Warning under 15%, Down under 10%), free memory, connections and replica lag.
- AWS load balancer (application and network): healthy targets (Down at none), unhealthy ones (Warning, naming them and AWS's reason), and for application load balancers requests, 5xx errors and response time.
- AWS CloudWatch metric: any metric (namespace, name, dimensions, statistic, period), e.g.
AWS/LambdaErrorswithFunctionName=resize. - AWS estimated charges: this month's bill so far. Turn on "Receive CloudWatch billing alerts" in the account's Billing preferences first.
- AWS SES email: bounce rate (Warning 5%, Down 10%) and complaint rate (Warning 0.1%, Down 0.5%), the levels at which AWS reviews and pauses an account; emails sent and the daily quota used; Down when sending is paused.
New AWS sensors check every 5 minutes (unless the device or group is set to less often): CloudWatch's basic metrics change every 5 minutes, and AWS bills each metric read (about $0.01 per 1,000; an EC2 sensor reads 3–4 per check, about $0.35 a month at 5 minutes). Values are a few minutes behind, as CloudWatch's are.
The credential. Create an IAM user with an access key and this read-only policy:
{"Version": "2012-10-17", "Statement": [{"Effect": "Allow", "Resource": "*", "Action": [
"ec2:DescribeInstances", "ec2:DescribeInstanceStatus", "rds:DescribeDBInstances",
"elasticloadbalancing:DescribeLoadBalancers", "elasticloadbalancing:DescribeTargetGroups",
"elasticloadbalancing:DescribeTargetHealth", "cloudwatch:GetMetricData",
"ses:GetSendQuota", "ses:GetAccountSendingEnabled"]}]}
For customers' accounts, a role is better than a key in each account: in your own account,
create the user with only sts:AssumeRole; in the customer's account, create a role (e.g.
KizashiMonitoring) with the policy above, trusting your account with an external ID:
{"Version": "2012-10-17", "Statement": [{"Effect": "Allow", "Action": "sts:AssumeRole",
"Principal": {"AWS": "arn:aws:iam::YOUR-ACCOUNT-ID:root"},
"Condition": {"StringEquals": {"sts:ExternalId": "a-secret-per-customer"}}}]}
Then add an AWS credential for that customer with your access key, the role's ARN and the external ID. The customer can cut off access at any time by deleting the role.
Azure
Azure sensors read Azure Resource Manager and Azure Monitor with an Azure credential. A device stands for a subscription: give it the subscription ID as its host, or set Subscription ID on each sensor. Sensors of one resource name it by its resource ID (Find lists them).
- Azure virtual machine: running (Down when stopped or deallocated), Azure's own health status for it (Down when unavailable, Warning when degraded, with Azure's reason), CPU, network, free memory and CPU credits for B-series VMs. Find VMs lists them.
- Azure SQL database: online (Down unless online; a serverless database paused to save money is fine), CPU, DTUs used (DTU tiers), storage used (Warning at 85%, Down at 95%), failed connections and deadlocks.
- Azure App Service app (web apps and function apps): running (Down when stopped), its health check (Down at 0% healthy), requests, 5xx errors, response time, and the App Service plan's CPU and memory.
- Azure load balancer: an Application Gateway's healthy backends (Down at none), unhealthy ones, requests and failed requests; a Standard load balancer's health probe and data path availability (Warning under 99%, Down at 0).
- Azure Backup vault: a Recovery Services vault's protected items; Down when one's last backup failed (or it was never backed up), Warning when the oldest last backup is over 26 hours old, Down over 50. Items whose backups were stopped on purpose are left out.
- Azure service health: Azure's own outages (Warning while one is active), planned maintenance and advisories that affect the subscription.
- Azure Monitor metric: any metric of any resource (resource ID, metric name, aggregation,
interval, optionally a namespace and a dimension filter such as
ApiName eq 'GetBlob'). - Azure cost this month: the subscription's cost so far this month, in its billing currency. It checks hourly: Azure updates costs a few times a day and its cost API allows few requests.
New Azure sensors check every 5 minutes (the cost sensor hourly). Reading Azure Monitor metrics this way is free; values are a few minutes behind, as Azure's are.
The credential. In the Azure portal, under Microsoft Entra ID › App registrations, register an
app (e.g. "Kizashi monitoring"; single tenant, no redirect URI). Under Certificates & secrets, add
a client secret and copy its Value (shown once; note when it expires, up to 2 years). Then on
each subscription, under Access control (IAM), give the app the Reader role, and for the cost
sensor also Cost Management Reader. Add an Azure credential with the tenant (its ID, or a
domain such as contoso.onmicrosoft.com), the app's Application (client) ID and the secret.
For customers' subscriptions, Azure Lighthouse saves an app per customer: register the app once in your own tenant, and have each customer delegate their subscription to your tenant with the Reader role for that app (or a group it is in). One Azure credential with your own tenant then reads every delegated subscription; each customer's devices just name their subscription ID. The customer can remove the delegation at any time. Without Lighthouse, register the app in each customer's tenant and add one credential per customer.
Google Cloud
Google Cloud sensors read the Compute Engine, Cloud SQL, Cloud Run and Cloud Monitoring APIs with a Google Cloud credential: a service account key. A device stands for a project: give it the project ID as its host, or set Project ID on each sensor (with neither, the key's own project). Find lists each kind of resource in the project.
- Google Compute Engine VM: running (Down when stopped or suspended), CPU, network in and out, disk reads and writes, and memory used when Google's Ops Agent is installed on the VM.
- Google Cloud SQL instance (MySQL, PostgreSQL or SQL Server): running (Down when stopped, suspended or failed, Warning during Google's maintenance), CPU, memory, storage used (Warning at 85%, Down at 95%), connections (MySQL and PostgreSQL), and a read replica's lag.
- Google Cloud load balancer: a backend service's healthy backends (Down at none) and unhealthy ones; for a global external Application Load Balancer also its requests, 5xx errors in the last 5 minutes and median latency. Serverless backends have no health checks, so they are left out of the counts.
- Google Cloud Run service: ready (Down when its latest deployment failed; a deployment under way is fine, as the last good revision still serves), requests, 5xx errors in the last 5 minutes, median latency and instances.
- Google Cloud Monitoring metric: any metric (its type, a filter such as
resource.labels.subscription_id = "orders", an aligner, how to combine the time series, and a period), e.g. a Pub/Sub subscription's undelivered messages.
New Google Cloud sensors check every 5 minutes. Reading Cloud Monitoring this way is free; values are a few minutes behind, as Google's are. There is no cost sensor yet: Google only offers a project's costs through a billing export to BigQuery.
The credential. In the Google Cloud console, under IAM & Admin › Service accounts, create a
service account (e.g. "kizashi-monitoring") and give it the Viewer role on the project.
On its Keys tab, add a key of type JSON; a file downloads. Add a Google Cloud credential and
load that file (or paste it). Kizashi shows the service account's email from the key; the key
itself is stored encrypted like other secrets. If your organization blocks key creation (the
iam.disableServiceAccountKeyCreation policy), an organization admin has to allow it for that
project.
For customers' projects, one service account is enough: create it in a project of your own, and have each customer add its email on their project's IAM page with the Viewer role. One credential then reads every such project, and each customer's devices just name their project ID. The customer can remove access at any time. Each project needs the APIs its sensors read turned on (Compute Engine, Cloud SQL Admin, Cloud Run, Cloud Monitoring); a sensor's message says which one is off.
Custom scripts
Three sensors run your own scripts, and all read the same output:
- SSH script: a command on the monitored server, over SSH (see "Linux servers").
- SNMP extend: a script the server's snmpd runs (
extendlines in snmpd.conf). - Script (on the probe): a script on the probe itself, from its scripts folder
/etc/gotrtg-probe/scripts(the probe installer creates it; root-owned, scripts run as thegotrtg-probeuser, which may not write outside its own folders). Make the file executable (chmod +x), then add the sensor and use Find scripts. Arguments are split like a shell would split them, and%hostis the device's address (also inGOTRTG_HOST). Pass credential hands the device's credential of that kind to the script inGOTRTG_USERNAMEandGOTRTG_PASSWORD; nothing else from the probe's environment is passed. The sensor's timeout ends the script and anything it started. The probe built into the server has no shell, so these sensors need an installed probe.
Output (the first that fits):
- A status line
status:value:message(0 Up, 1 Warning, 2 Down), e.g.0:200:CSF OK. - A number, optionally followed by a message.
- JSON, format version 1, described by a JSON Schema (download it from
https://<your server>/api/v1/script-schema, or Settings → Lookups):
{"version": 1, "status": "warning", "message": "array degraded",
"channels": [
{"key": "array", "name": "RAID", "value": 1, "lookup": "raid.status"},
{"key": "temp", "name": "Temperature", "value": 41.5, "unit": "°C", "limits": {"warn_max": 60}}]}
status is up, warning or down (Down is immediate); "error": true with a message means the
check itself failed (retried as a failed scan). A non-zero exit code is only an error when the
output is not a status line or JSON.
Lookups (Settings → Lookups) turn numbers into labels and states, e.g. raid.status:
0 Optimal, 1 Degraded (Warning), 2 Rebuilding (Warning), 3 Failed (Down). A value the lookup
doesn't list is a Warning. A script names a lookup per channel ("lookup": "raid.status", used
when the channel is created); any channel, from any sensor, can get one in its Limits and
lookup settings. A standard set is included (status.ok-warning-error, status.nagios,
status.online, status.running, status.yes-no, status.enabled, raid.status); add your own, with
single values or ranges.
Network devices (SNMP sensors)
- Settings → Credentials → + Credential, kind SNMP: version v1 or v2c with the read-only
community, or v3 with user, security level, protocols and passwords. Without a credential the
probe tries v2c with the community
public. - Choose it in the settings of the device or a group above it, or for every customer at once in Settings → Defaults (overridable lower down). If the agent listens on a port other than 161, set SNMP port in the same settings: every SNMP sensor below, Find interfaces, discovery and inventory use it. A sensor's own SNMP port (under Advanced) other than 161 still wins.
- Add sensors:
- SNMP traffic: click Find interfaces; the probe lists the device's interfaces (those that are connected are ticked) and one sensor is added per interface you choose. Traffic in, out and total (64-bit counters where the device has them), utilization, errors, discards, and Connected (Down when the interface goes down, unless it is disabled on the device). If the device renumbers its interfaces, the sensor finds its interface again by name.
- SNMP system: CPU, memory, every disk and uptime (HOST-RESOURCES-MIB, or UCD-SNMP on net-snmp agents). Each disk's free percentage is Warning below 15 % and Down below 10 % by default.
- SNMP uptime: only how long the device has been up (the system's uptime, else the SNMP
agent's). PRTG's SNMP System Uptime sensors import as this. Alert on reboots with an alert
rule's Also when a value changes →
uptimedrops. - SNMP load average (Linux): the 1, 5 and 15 minute load averages that
uptimeshows, plus load per CPU and uptime (UCD-SNMP; Linux and Unix agents, not Windows). - SNMP extend script (Linux): the output of a script snmpd runs for an
extendline insnmpd.conf. Forextend .1.3.6.1.4.1.8607.64 QueueSize /etc/snmp/mail_queue, enter OID.1.3.6.1.4.1.8607.64(the script name can stay empty when it is the only one there); lines without an OID are under1.3.6.1.4.1.8072.1.3.2, and Find scripts lists them. The script prints a status line, a number (optionally a unit is set on the sensor) or the same JSON as the SSH script sensor; a non-zero exit code without a status line makes the scan fail. - SNMP custom OID: up to 10 OIDs, one per line:
OID, name[, unit[, gauge|rate]].rateturns a counter into a value per second.
Rates need two readings, so traffic appears from the second scan. The device must allow SNMP from the probe's address (for the built-in probe: the Kizashi server's public IP).
DNS and mail servers
- DNS looks up a name (A, AAAA, CNAME, MX, NS, TXT, SOA, PTR, SRV, CAA) on a DNS server: by
default the device itself (e.g. your nameserver), or a resolver such as
1.1.1.1. It charts the response time, shows the answer, and records the SOA serial (compare it across nameservers). Expected answer lists values that must be in the answer (e.g. the site's IP, ormail.example.comfor MX; for TXT a part such asv=spf1is enough). A missing value, a name that does not exist (NXDOMAIN) or an empty answer is Down at once; no answer from the server is a failed scan. - SMTP, IMAP and POP3 connect to the device's mail service, check the greeting, use
TLS (
auto: STARTTLS when offered;starttls: Down without it;tls: ports 465, 993 and 995;none) and chart the response time and the certificate's days to expiry (Warning under 14 days, Down under 7). Log in uses the device's SMTP/mail credential (username and password) and is only done over TLS; a refused login is Down.
Database servers
Database sensors log in with the device's own database connection (Edit device → Database connection: username, password, and the port if it is not the default 3306 or 1433). It belongs to that device only, is never shown again, and is deleted with the device. Use a read-only monitoring login; the server must accept connections from the probe's address.
MySQL / MariaDB
- MySQL / MariaDB server: login time, connections (and % of
max_connections), threads running, queries, slow queries and failed logins per second, InnoDB buffer pool hit rate, uptime. - MySQL / MariaDB replication (add it on each replica): IO and SQL threads running and seconds behind the source. Down, with MySQL's error, when replication stops; Warning over 60 s behind, Down over 300 s (change per channel).
- MySQL / MariaDB query: a query whose first row's numbers become channels (text columns go into the message). It runs in a read-only transaction that is rolled back.
CREATE USER 'monitor'@'203.0.113.10' IDENTIFIED BY '...';
GRANT PROCESS, REPLICATION CLIENT ON *.* TO 'monitor'@'203.0.113.10';
GRANT SLAVE MONITOR ON *.* TO 'monitor'@'203.0.113.10'; -- MariaDB 10.5 and later
GRANT SELECT ON shop.* TO 'monitor'@'203.0.113.10'; -- only for query sensors
SQL Server (SQL Server logins)
- SQL Server: login time, user connections, batch requests per second, page life expectancy, buffer cache hit ratio, blocked processes, databases not online (Down if any), uptime.
- SQL Server database (Find databases lists them): online, data and log size, log space used (Warning 80%, Down 95%), hours since the last full and log backup (set limits per channel, e.g. Warning over 26 hours).
- SQL Server query: like the MySQL query sensor; the transaction is always rolled back.
- SQL Server Agent jobs: enabled jobs whose last run failed (Down if any, with their names), jobs running now, and whether SQL Server Agent runs.
CREATE LOGIN monitor WITH PASSWORD = '...';
GRANT VIEW SERVER STATE TO monitor;
GRANT VIEW ANY DEFINITION TO monitor;
USE msdb; CREATE USER monitor FOR LOGIN monitor; ALTER ROLE db_datareader ADD MEMBER monitor; -- backup ages, Agent jobs
Sensor states
When sensors are checked: every scanning interval (1 minute to 1 day), or at set times of day (e.g. 06:00 and 18:00, in a time zone you choose): in the monitoring settings of a sensor, device or group, choose At set times… under Scanning interval. Both are inherited down the tree; the nearer setting applies.
Sensor defaults (Settings → Sensor defaults, for all customers): per sensor type, e.g. SSH disk free:
- Interval, timeout and failed checks apply at once to every sensor of the type that does not set them itself. They beat what the sensor inherits from its groups and device; a value set on the sensor itself still wins. A sensor's settings show where a value came from ("Sensor defaults for SSH disk free").
- Parameters and limits are what a new sensor of the type starts with: the add-sensor form is filled in with the parameters, and the sensor's channels get the limits.
- Apply to existing sensors puts them on the type's sensors in every customer: sensors stop setting their own interval, timeout or failed checks, and/or get the parameters and limits (overwriting ones tuned by hand). It shows how many sensors change before anything does.
Every result is checked in the core and gives the sensor a state:
| State | Meaning |
|---|---|
| Up | The last scan worked and every channel is within its limits. |
| Warning | A channel crossed a warning limit, or a scan failed but the sensor is still within its allowed failures (fail_warn_scans, default 1). |
| Updates Available (purple) | An update sensor (SSH package updates, Windows Update) whose only problem is pending updates. It turns Down if they are still pending after a set time (24 hours by default). |
| Down | A channel crossed an error limit (immediately), or scans kept failing past fail_warn_scans. |
| Unknown | No result yet, the sensor's probe is disconnected, or results are overdue (more than two intervals, or two gaps between set times, plus a minute). |
| Paused | The sensor, its device or one of its groups is paused. Paused sensors are not scanned. |
- Limits are set per channel (
PATCH /api/v1/channels/{id}). A change re-checks the latest result at once. - Acknowledge a Down sensor with a note:
POST /api/v1/sensors/{id}/acknowledge {"message": "...", "until": "<optional time>"}. The acknowledgement ends when the sensor recovers. - Pause a group, device or sensor:
POST /api/v1/{groups|devices|sensors}/{id}/pause {"message": "...", "until": "<optional time>"}, and.../resumeto end it. A timed pause ends on its own. GET /api/v1/alarmslists everything Down, Warning, Unknown or Updates Available.GET /api/v1/treeshows the worst status of each group and device.GET /api/v1/sensors/{id}/eventsis a sensor's state history.
Updates Available. Pending updates are routine, so an update sensor does not go Down for them at once:
- The two monitoring settings (inherited like the others; also per type in Sensor defaults) are Updates Available (on for update sensors; off: Down as before) and Down after (4 hours to 30 days, or never; default 24 hours).
- The clock starts when the updates are first seen. It keeps running through failed scans and Unknown, and starts again only after a scan finds none pending. When the time is up the sensor turns Down without waiting for its next scan ("Updates pending for over 24 hours: …"). The sensor page says when that will be.
- Other problems the check finds (a broken package manager or repository, failed logins) are Down as usual. For Windows Update, only the pending-updates limit counts; days since the last update are judged as before.
- Auto-patching starts at once: an alert rule with actions can also run them on Updates Available (Also run them on Updates Available; on for the rules that already ran actions on Down, and for new Run automatically rules). That tells nobody: no message, reminder or recovery. When the sensor turns Down, the rule alerts as usual and runs its actions again.
- In uptime reports, status pages and the WHMCS addon, Updates Available counts as Up. On the Alarms page it has its own filter, off by default; in the tree it shows purple, between Up and Unknown.
- Graphs draw each reading on until the next one, for up to 1.5 check intervals, so a check that runs every few hours still shows as a line on the 2-hour graph. Dots mark the real readings; past 1.5 intervals the line stops, so an overdue sensor never looks current.
Alerts
Alert rules tell users, and each user's profile says how: by email, by SMS to their mobile, or both, with times in their own time zone.
- Settings → Email: add your SMTP relay (STARTTLS on 587, TLS on 465, or plain on 25 for a relay on a trusted network). Add a second one as Fallback if you have it. Use Test to send yourself an example alert email (with a sample graph). For SMS, add an SMS channel (below) and choose it under Settings → Alert channels → Delivery, with the default time zone.
- People: everyone sets their mobile number, time zone and email/SMS under My account → Alerts (clients too: it only concerns themselves; the time zone is filled in from the browser at first sign-in). Admins can set them under Settings → Users. Someone who should get alerts but not sign in (a NOC mailbox, a distribution list, a client contact) is added there as a Contact only user.
- On any group, device or sensor page, Alerts → + Alert rule: who to tell (your staff and that customer's own users), for which states (Down / Warning / Unknown), after how long, how often to remind, and whether to tell on recovery. A rule on a group covers everything below it.
- For your own staff, Settings → Alerts for all customers → + Alert rule covers every sensor of every customer, including customers added later; Except these customers leaves some out. Only admins set these, they tell staff only, and customers never see them or their messages. Set a customer's own alerts (for their people) on their group, so nobody gets the same alert twice.
-
Times in messages use the user's time zone; without one, a client user's customer's (set it under Settings → Customers → Edit), else the default. Users in the same zone share one email.
-
A client user is only ever told about their own customers' sensors, even if a rule says otherwise; disabled users are told nothing. A user who is the only one a rule tells cannot be deleted until the rule changes.
-
Alert emails show a graph of the sensor's last 2 hours (to when the message was sent, in the reader's time zone, with Down periods shaded and limits as dashed lines): the channels the message names, else the first ones, at most three. Mail programs that show only plain text get the text alone; sensors without readings (and combined messages) send text only. SMS and chat messages have no graph.
-
Acknowledging an alarm stops the reminders. Paused sensors never alert.
-
A problem shorter than the rule's delay sends nothing (and no recovery email).
-
Failed deliveries are retried after 1, 5 and 15 minutes; the delivery log is on the Email page.
-
Recipients are sent as Bcc, so they do not see each other's addresses.
-
Set
GOTRTG_PUBLIC_URL(e.g.https://monitor.example.com) so links in emails work.
SMS, Slack, Teams and webhooks
Settings → Alert channels → + Channel. Use Test on a channel to send a test message. SMS goes to users who turn it on, through the channel chosen under Delivery; Slack, Teams and webhooks are picked in an alert rule (Also post to).
- SMS – Twilio: account SID, auth token, and a Twilio number (or messaging service SID).
- SMS – Vonage: API key, API secret, and a number or sender name.
- SMS – VoIP.ms: your login email as the API username, the API password, and the DID to send from (with SMS enabled). In the VoIP.ms portal, under Main Menu → SOAP and REST/JSON API, enable the API, set the API password and allow the Kizashi server's IP address. It texts US and Canadian numbers; each message is cut to one SMS (160 characters).
- SMS – other gateway: any HTTP API;
{to},{text}and{secret}are filled into the URL, headers and body. - Slack: an Incoming Webhook URL. Teams: a Workflows "Post to a channel when a webhook request is received" URL.
- Webhook: a JSON POST for every alert, reminder, escalation and recovery. With a signing
secret, each request carries
X-Webhook-TimestampandX-Webhook-Signature: sha256=<hex HMAC-SHA256 of "timestamp.body">. - The texts of messages can be changed under Message templates on the same page.
Escalation and schedules
In an alert rule, If nobody acknowledges → + Escalation step tells more people (users or channels) a set time after the first message; acknowledging the alarm stops it. Reminders and the recovery message go to everyone told so far. When to send can limit a rule to certain days and hours (e.g. office hours by email, nights by SMS with a second rule); a problem that starts outside them is sent when they begin, if still unresolved.
Value changes and combined messages
- Also when a value changes (in an alert rule) sends a message when a channel's newest value
differs from the one before — any change, only a drop, or only a rise. Watching
uptimedrop tells you a device rebooted. Rules can watch only for changes (no Down/Warning boxes ticked). - Combine messages holds a rule's alerts and recoveries for 1–10 minutes and sends one message listing all of them, so a burst of failures is one email or text instead of dozens.
- Thresholds on values are set as channel limits (Warning/Down levels) on the sensor; a rule's Send after delay makes it alert only when a limit stays crossed that long.
Import from PRTG
Settings → Import from PRTG (admins):
- Upload
PRTG Configuration.dat(on the PRTG server underC:\ProgramData\Paessler\PRTG Network Monitor) or a PRTG support bundle (.zip). - Pick a PRTG group. The preview lists every device and sensor with the Kizashi sensor it becomes, or why it is skipped (e.g. AWS, folder and EXE sensors have no equivalent yet).
- Choose the customer and group to import into, and how: straight into that group (the default: e.g. a new customer's top level gets the devices directly) or as a new group inside it. Then the Kizashi credentials to use (SSH, SNMP, Windows: set on that group, so every device inherits them) and the passwords of the devices' database logins.
- Import. Everything arrives paused (unless you untick it): check a few sensors, then Resume the group.
- PRTG keeps passwords and SNMP communities encrypted; they are never read. Usernames are shown so you know which credentials to choose.
- Check intervals come along (rounded up to Kizashi's intervals), including fixed times of day. Objects paused in PRTG stay paused.
- SSH script sensors run the same
/var/prtg/scripts/<file>; Kizashi reads PRTG'scode:value:messageoutput. MySQL/SQL Server sensors become connection checks (PRTG's.sqlquery files live on the PRTG server). - Importing the same group into the same place twice is refused (a group or device of the same name already there).
MySQL logins for imported servers
PRTG's database passwords cannot be taken across. On a group page, MySQL logins → Create MySQL
logins makes a new login on every server below it that has MySQL sensors: over SSH (the SSH
credential that applies, e.g. root with a key), it creates the MySQL user gotrtg_monitor, allowed
only from the probe's address, with PROCESS and REPLICATION CLIENT rights and a new random
password per server, stored as the device's database login. The server's own admin access is used
(/root/.my.cnf, socket login, Plesk's plesk db, or either through sudo), taking the first that
can manage MySQL users; one that signs in only as a limited user is skipped. On Plesk servers
plesk db logs in as Plesk's MySQL admin itself (Plesk 12 or later); Kizashi never reads that
password, and the new user may show up on Plesk's database pages. Nobody sees the passwords;
running it again sets new ones; other MySQL users (PRTG's) are untouched.
For one server (e.g. one the group run could not reach), right-click its MySQL sensor (or the device) → Recreate MySQL login…: the same, for that server only.
SQL Server logins
The same for SQL Server, through the server's Windows agent (install the agent first). On a
group page, SQL Server logins → Create SQL Server logins works on every server below it with
SQL Server sensors; for one server, right-click it (or its SQL Server sensor) → SQL Server
login…, which also works before it has any SQL Server sensors. On each instance on the server
(default and named), the agent signs in locally and creates or resets the login gotrtg_monitor
with read-only monitoring rights (VIEW SERVER STATE, VIEW ANY DEFINITION, and db_datareader
in msdb for backup history and Agent jobs), with a new random password, the same on every instance
of that server. It is stored as the device's database login, with the port of the default instance
(or the first named one; a dynamic port is read from the instance's settings).
- The agent signs in as SYSTEM. Where SYSTEM is not a SQL Server administrator (the default since
SQL Server 2012, unless the installer added it), the result says so: run it again with an
admin login (e.g.
sa), which is sent to the agent for that run only and never stored or logged (the audit log keeps its name). - An instance that accepts Windows logins only still gets the login, but the probe cannot use it: the result says to turn on SQL Server and Windows Authentication mode (a restart of SQL Server). One with TCP/IP turned off is reported too.
Dependencies
So that a firewall or switch going down sends one alert instead of one per server behind it: in the monitoring settings of a group (or device, or sensor), set Depends on to the sensor that everything there needs, e.g. the firewall's Ping. It is inherited down the tree; Nothing ends an inherited dependency.
- While that sensor is Down or Unknown, the sensors that depend on it send no alerts. They are still checked and shown, with "Alerts held: depends on …" on their page.
- When a server fails first, its alert waits until the sensor it depends on has been checked again (it may be about to go Down too). After that sensor recovers, the servers alert only if their next check still fails.
- The sensor depended on alerts as usual (a dependency on itself is ignored).
Maintenance windows
On any group, device or sensor page, Maintenance → + Maintenance window: once (start and end), every day, every week (on chosen weekdays) or every month (on a day; 31 means the last day), from a start time for a duration, in a time zone. A window on a group covers everything below it.
- During a window sensors are still checked and shown (with a violet Maint. badge), but send no alerts. A problem that is still there when the window ends is alerted then.
- Clients see the windows that apply to them; only staff can add or change them.
Auto-remediation
Scripts that fix known problems on their own, e.g. restart a stopped IIS application pool. Settings → Remediation:
- Scripts: PowerShell, Bash or Python. Arguments arrive as
$args[0]…/$1…/sys.argv[1:]; a non-zero exit code means it failed. Every change is a new version, and only a version an admin approved is ever run (technicians can write and change scripts; admins approve). - Actions (admins): a script, where it runs, its arguments and limits.
- On the device's Windows agent, on the device over WinRM (PowerShell, using the device's Windows credential), over SSH (the SSH credential), or on the probe itself.
- Arguments may use
{host},{device},{sensor},{status},{message}and{param:name}, a setting of the sensor (e.g.{param:pool}for an IIS application pool). - A timeout (default 60 s), a wait between runs per sensor (default 15 minutes) and a daily limit per sensor (default 3), so a service that keeps failing cannot cause a restart loop; skipped runs are logged with the reason.
- After a run that worked the sensor is checked again at once, so it shows Up within seconds.
- To have an action run on its own, open the sensor and use Run automatically under Remediation: pick the action, Down or Down-or-Warning, and how long to wait first. That adds an alert rule to the sensor that runs the action and tells nobody. To cover a whole device, group or customer, choose the actions under Run actions in an alert rule there instead. Either way it runs when the rule alerts (after its delay; not during maintenance windows or while a dependency holds alerts back). The sensor's Remediation section lists what runs for it, and the Actions tab lists where each action runs.
Every run, with its output, is in Settings → Remediation → Run log and on the sensor's page, where staff can also Run action now once by hand to try it.
The core carries out 4 runs at a time across all customers; the rest wait in the queue, oldest
first, and each starts as soon as a running one ends, so one slow run (a long dnf upgrade, say)
does not hold up the others. A device runs one thing at a time, whether it came from remediation
or from Run commands: work for a device that is busy waits (the Queue page says what for) and
starts once the device is free, while work for other devices goes ahead. Actions that run on the
probe itself are not tied to a device. Run action now lists what is already waiting or running
for the sensor before it queues another run. Admins can change the number (1–32) under Runs at a time on the
Actions tab; it takes effect within seconds, without a restart.
Queue
Queue in the menu (staff who can read the configuration) lists remediation runs and commands
sent with Run commands in one place, with how many are waiting or running on the menu entry.
Across the top: how many wait and run now, and how many failed and succeeded in the chosen window
(24 hours, 7 days or 30 days; a command counts once per device). Active (the default) lists
what is running, then what waits in the order it will run, a remediation with its place in line
("#12 of 37"); Failed and All list the window's work, newest first. Failed work stays under
Failed and leaves Active once it ends. A remediation opens its output; a command shows how its
devices are doing and opens on the Run commands page. The page updates every few seconds while
work is in progress. GET /action-runs and the plugin's GET /runs take status and since
for the same lists, and /action-runs/counts and /runs/counts give the summary.
Run commands
Tools → Run commands runs one command on many devices at once and shows the output per
device, like a fleet-wide shell. When some of the chosen devices already have work queued or
running (another tech's command, an auto-patch remediation), the page lists them before you run
and skips them unless you untick Skip busy devices; then the command waits on those devices
and runs once their work ends (a device runs one thing at a time). Once a command is sent the
selection clears (the command stays, for other devices). From the Alarms page, pick sensors and choose Actions → Run
command… to open it with their devices ticked (each device once; PowerShell chosen when they are
all Windows). The page is laid out like a stand-alone SSH tool: a search box
over a tree of customers, groups and devices with a checkbox on every row. Tick devices one by
one, tick a group or a customer to take everything shown under it, or search by name, address,
group, OS or software (the Tags menu lists every tag in view, such as CentOS 7 or Proxmox VE,
and fills the search with it) and Select all shown. Every tick is a plain tick: untick any
device afterwards, Clear selection to start over, and switch on Selected only to see
exactly which devices are in. The Lists menu applies a saved list, and Manage lists shows
each list's devices side by side with the lists themselves, as the old tool's groups window did.
Quick commands are the installation's saved commands, shared by all staff and kept in the
database: each has a note and a language, the window adds, edits, reorders and removes them
(saved as you type; the audit log records what was added, removed and changed, and a save is
refused if a colleague changed the list meanwhile, so nobody's edits are written over), double-click one to use it, and Import
from file… brings in the old tool's quick_commands.json or quick_commands.txt. Load… and Save… work with text
files on your computer. The output shows "n / total done" with a progress bar while targets are
still going, each device's output as it finishes, and a summary at the end ("Finished on 12
devices, 2 with errors" with the reasons); Save output writes it all to a text file and
Clear closes the run. Stop (while a run is going) skips every device not started yet and
stops waiting on those already running (the command may still finish there: the probe has no way to
kill it yet), and the run says who stopped it. A Bash or Python command goes only to Linux devices and PowerShell only to Windows
ones, by the device's OS tag (an active Windows agent counts as Windows): the rest of the selection
is listed as skipped rather than tried, as the old tool's two inventories kept them apart, so tag
devices with their OS. On a Windows agent the command starts in the root of the system drive.
Help (F1) on the page covers all of this. The page is laid out for phones as
well: the picker's rows stack, the tree drops its tag badges, Run spans the width, and the quick
commands and saved lists windows go full screen with their panes one above the other. There is no F5
shortcut: in a browser that is reload, and a stray press must never run a command.
Choose Bash or Python (over SSH) or PowerShell (over WinRM, or
on the device's Windows agent when it has one), type the command and run it (Ctrl+Enter). Each
device is reached exactly as its sensors are, with the probe and credentials it inherits in the
tree, so there is nothing to set up: an SSH credential that holds a private key is used as a key,
and a device that has no SSH or Windows credential fails with that reason instead of holding up
the run. Targets run in parallel; the page follows them and Save output writes everything to
a text file. Recent runs stay on the page, and the audit log has every run with its full
command, per customer.
Saved lists are kept by anyone who can run commands: pick devices, then Save selection as a
list; edit a list to rename it or replace its devices with the current selection. A list is
either shared by all staff (it may span customers) or belongs to one customer and holds only that
customer's devices. Deleting a device drops it from every list on its own, so a list never
breaks. The page sends the devices the operator ended up with, plus notes on how they were arrived
at ("group Web", "list All Linux", 'search "proxmox"') that go into the audit entry. The API also
takes group_ids, list_ids, os_ids, software_ids and families and runs on the union,
resolved as things stand when the run starts, and tenant_ids to keep only those customers'
devices.
Running needs the run_commands capability, which admins and technicians have: a free-form command runs as the device's monitoring account on many devices at once, with none of remediation's approval step. The page and its menu entry are shown only to roles that have it, so nobody is offered a tool they cannot use; other staff still find every run in the audit log and may read runs through the API with view_config. Clients never see the page.
Admins have a Settings button on the page: who may run (admins and technicians, or admins only; technicians switched off do not see the page), the timeout a run starts with (10 minutes unless changed), the most devices in one run, and how many days runs and their output are kept (older runs are deleted by the worker once an hour; the audit log keeps every command regardless). Letting a customer run commands on its own devices would be a per-customer decision, and the saved lists already carry a customer for that day, but it is not built. A command that outlives its timeout is reported as failed but is not killed on the device (the same open point as SSH script sensors).
This is a plugin (plugins/commands), the first built on the plugin layer: see
plugins/README.md.
Uptime reports
Reports (in the sidebar) lists each customer's uptime reports. Staff create them with New report: the customer, what it covers (all devices, a group or a device), when it is emailed, to whom, and the time zone. Customers' own logins can read their reports (but not who gets them).
- What counts: availability is the share of monitored time a sensor was not Down; Warning counts as up. Paused time never counts, and time with no data (a new sensor, or a probe offline) doesn't either. Maintenance windows are left out unless the report says otherwise. A device's and the report's availability are worked out over all their sensors' time.
- Emailed monthly (on the 1st, for the month before) or weekly (on Mondays, for the week before), at 07:00 in the report's time zone, through the same email relays as alerts. The email has the summary, the least available sensors, the longest outages and every device; the full report, with every sensor, is attached as a PDF. Recipients don't need a login. Failed sends are retried up to 5 times.
- On the web: a report's page shows this month (or week) so far, or the last one, with a PDF download, and the past reports made from it. Send now makes and emails the last (or the current) period at once.
- Pauses are recorded from v0.8.17 on; earlier pauses were rebuilt from the audit log. Maintenance windows are applied as they are set now (a deleted window no longer counts for past periods).
Status pages
Status pages (in the sidebar) gives a customer a public page showing whether their services
are working, at a secret link on this server (https://<your domain>/status/<secret>). Anyone with
the link can see it without signing in; it shows only the names you give the services, never
hosts, addresses or sensor details.
- Services: each is a group, device or sensor. It is Outage when all its sensors are down, Partial outage when some are, Degraded on a warning, and Maintenance when all its sensors are paused or in a maintenance window (paused sensors and those in maintenance otherwise don't count).
- History (optional): 90 days of uptime bars per service (hover a day for its figure) and the outages of the last 14 days, worked out as for uptime reports.
- Notice: a message at the top of the page, for an outage you are working on or planned work.
- New link (in the page's menu) replaces the link, if it reached someone it shouldn't have; turning the page off makes the link show "not found". The page reloads itself every minute.
WHMCS
Clients open their monitoring from the WHMCS client area, signed in at once, and WHMCS keeps their Kizashi users in step. The WHMCS addon is in integrations/whmcs: Settings › Integrations › Download the addon gives the one matching this version.
- Settings › Integrations (admins): the WHMCS address (where a client goes back to on signing
out, and what the customer's WHMCS badge links to), the admin folder if renamed, and the keys
the addon calls Kizashi with. A key is shown once and can be limited to the WHMCS server's address.
It reaches only the integration API (
/api/v1/integrations/whmcs/…): link clients, keep their users in step, make sign-in links and read a client's status. It cannot sign in, see credentials, or change devices or settings, and no staff login can call the integration API. - Links: one WHMCS client to one customer, made in WHMCS admin (to an existing customer, or creating an empty one at the top level). The link gives the client one client user: found by its WHMCS client id; else a client user of that customer with the same email (from before, e.g. the PRTG import) is taken over; else one is created. That user signs in only through WHMCS: no password or two-factor code here (the sign-in form refuses it, and an admin cannot set one). The desktop app and API tokens still work, connected from a session signed in that way.
- In step: WHMCS sends email and name changes; closing the client (or unlinking it) disables the user and ends its sessions, apps and API tokens at once, and reopening enables it again. The customer and its monitoring are never touched by any of this. WHMCS is the source: a WHMCS user disabled here is enabled again by the next sync or sign-in.
- Signing in: the WHMCS server asks for a sign-in link for a client (
POST …/clients/{id}/login); the link works once, for a minute, and lands the browser signed in. WHMCS Login as Client works too: the admin's name comes with the request, a banner says so, every action is logged as "client (WHMCS admin name)", and no app or API token can be made. - Status for the client area:
GET …/clients/{id}/summarygives the counts, each device by its Kizashi name with its status, last check and problems, and the last 10 status changes, as the client user would see them. - Servers ("Add to Kizashi"): staff add a linked client's server from WHMCS:
PUT …/clients/{id}/services/{service id}with its name, address and a device template (GET …/templateslists them) creates the device in the customer's top group and applies the template; calling it again finds the same device and only adds the sensors it lacks. Kizashi remembers which WHMCS service each device came from (GET …/clients/{id}/services); deleting the device here lets the service be added again. The key can add devices only to customers linked to WHMCS clients, never your own; the device counts against the license, and the audit log names the WHMCS admin.
Backups
The backup service writes a compressed database dump to ./backups every night at 02:30
(GOTRTG_BACKUP_TIME, timezone TZ) and keeps 14 days (GOTRTG_BACKUP_KEEP_DAYS).
Copy them off the server: the dumps hold credentials only in encrypted form, so a restore
also needs the same GOTRTG_MASTER_KEY (in .env).
Settings → Off-site backup does that: give it an SFTP server (address, port, username,
password, folder) and the offsite service pushes each new backup there after the night's run,
with the installation's .env as kizashi.env: everything needed to rebuild the server. A file
is written as <name>.partial and renamed when complete; after each push, backups in the folder
older than its Keep (days) (default 14, separate from the local GOTRTG_BACKUP_KEEP_DAYS)
are removed (other files are left alone). Test connection logs in
and writes a test file; the server's host key is trusted on the first connection and a different
one is refused afterwards (Forget the key after rebuilding that server). Push now pushes
the newest backup within a minute. A failed push is retried after 30 minutes, and the health
banner warns when the last push failed or the newest backup was not copied within 3 hours.
Anyone who can read that SFTP account can decrypt every stored password: use a private account.
To keep the master key apart from the dumps instead, copy ./backups yourself (e.g. rsync from
another machine) and keep GOTRTG_MASTER_KEY in a password manager.
make backup # back up now
make restore-check # restore the newest backup into a scratch database, verify it, drop it
make restore FILE=gotrtg-20261012-023000.dump # replace the live database with a backup
make restore stops the core and probe, keeps the current database as
gotrtg_before_restore_<time> (drop it once you are happy), restores, and starts them again.
Probes keep their results on disk while the core is down and send them afterwards.
System health
The core checks the installation itself every hour, and MSP admins see any problem in a yellow banner at the top of every page:
- Backups: each backup is recorded in the database. A backup that failed, or no successful backup in 26 hours, is a warning.
- Database upkeep: TimescaleDB's job scheduler compresses readings, removes old ones and keeps the chart summaries. If it is not running for the database (a restore could leave it stopped), the core starts it again and says so for a day; a job that failed or is overdue is a warning.
/healthz gives the number of warnings ("warnings": 0), so an HTTP sensor that requires
"warnings":0 in the response alerts on them like any other sensor. The database also keeps
query statistics (pg_stat_statements) for finding slow queries.
Using the API
API reference: kizashi.systems/docs/api lists every endpoint, grouped
by area, with its parameters, request and response formats and the permission it needs. Your own
server serves the same OpenAPI document at /api/v1/openapi.yaml, for tools that read OpenAPI
(Postman, code generators).
# log in (cookie jar); state-changing requests need the CSRF header
curl -c jar -H 'X-GOTRTG-CSRF: 1' -H 'Content-Type: application/json' \
-d '{"email":"you@example.com","password":"..."}' http://localhost:8080/api/v1/auth/login
curl -b jar http://localhost:8080/api/v1/tree
# or create an API token and use it as a bearer token (no CSRF header needed)
curl -b jar -H 'X-GOTRTG-CSRF: 1' -H 'Content-Type: application/json' \
-d '{"name":"scripts","access":"write"}' http://localhost:8080/api/v1/me/tokens
curl -H 'Authorization: Bearer gtk_...' http://localhost:8080/api/v1/tree