Keyturn docsHow-to guides

Check a server's health

Ten checks on one screen: server, tasks, disk, mail queue, certificates, replication, cluster, license, backups, and errors. Add --context-group domain for a verdict per server and one for the domain.

keyturn report health
keyturn report health --context-group domain | tail -8
keyturn fleet report --all-servers                # one row a server: status, disk, tasks, DDM, replication, mail
report health for mail1
One server. Each WARN names what to look at: a task not running, held and dead mail, failed replications, an open DDM report.
report health across the domain
The whole domain, ending in one verdict.

Other quick looks: server status, server disk, task list, stat get Mem.Free, stat watch Mem.Free, ddm status, log query, schedule audit (what runs when, and where heavy tasks overlap), and damaged scan (databases log.nsf says are damaged, with a repair plan).

Set up event generators and DDM probes

Everything the Administrator's Monitoring Configuration does with generators and probes: a statistic threshold, a task that goes down, a database's unused space, a server that cannot be reached, TCP services, a mail probe, ACL changes, replication that stops, and the nine kinds of DDM probe. A new probe starts as a copy of HCL's default probe of its type and subtype, so it carries every setting Domino would give it. HCL's default probes ship turned off: turn on the ones you want, and change their schedule or targets. They can be deleted only with --force; disable them instead.

keyturn event generator create --type task --task Router --when down,stalled --severity failure --description "Router down"
keyturn event generator create --type tcp --on mail1/Acme --target web1/Acme --services HTTP,SMTP --description "web1 TCP"
keyturn event generator disable "Router down"          # Disabled 1 is off, on every form
keyturn ddm probes list --type Database
keyturn ddm probe enable 9AB3A12B524057E785256FC4006A6D23 --dry-run
keyturn ddm probe create --type database --subtype compact --target-db mail/ --on "*" --every 60 --description "Mail files compact check"

--field NAME=VALUE sets any other field of the form by its own name (Freespace=0.25, db.freespace=0.2), checked against the form's type and choices. The Monitoring Configuration profile is read and changed as the Administrator's profile editor does: monitoring config show, and monitoring config set --ddm-days 14 --ddm-severities fatal,failure.