Commands

Manage OMD versions, monitoring sites, and services with commands for administrators and site users.

Use omd to manage installed versions, monitoring sites, and their services. The commands below are grouped by the user who runs them.

General OMD commands

These commands work without a site context and can be run by any user.

CommandDescription
omd helpShow general help.
omd versionDisplay the currently used OMD version.
omd versionsList all installed OMD versions on this host.
omd sitesList the monitoring sites.

Root user commands

Run these commands as root to create and administer monitoring sites. Replace values in angle brackets with your version, site name, or backup path.

CommandExampleDescription
omd setversion <version>omd setversion 5.80Set the default OMD version for new sites.
omd create <sitename>omd create exampleCreate a site. Use -u UID and -g GID to set its user and group IDs.
omd rm <sitename>omd rm exampleRemove a site and all its data.
omd disable <sitename>omd disable exampleStop a site, unmount its tmpfs, and remove its Apache hook.
omd enable <sitename>omd enable exampleReenable a disabled site.
omd mv <source> <target>omd mv sitea sitebRename a site.
omd cp <source> <target>omd cp sitea sitebCopy a site.
omd su <site>omd su exampleOpen a shell as the site user.
omd restore <tarball>omd restore /tmp/backup.tgzRestore a site from a backup.

Site user commands

Run daily monitoring tasks as the site user. Commands without a service name apply to all services in that site.

CommandExampleDescription
omd updateomd updateUpdate the site to the newest installed OMD version.
omd -V <version> updateomd -V 5.80 updateUpdate the site to a specific installed version.
omd startomd startStart all site services.
omd start <service>omd start apacheStart a specific service.
omd stopomd stopStop all site services.
omd stop <service>omd stop apacheStop a specific service.
omd reloadomd reloadReload all site services.
omd reload <service>omd reload apacheReload a specific service.
omd statusomd statusDisplay the status of all site services.
omd status <service>omd status apacheDisplay the status of a specific service.
omd configomd configView and change the site configuration.
omd backup <tarball>omd backup /tmp/site.tgzCreate a backup of the site.

Bash completion

OMD Labs-Edition includes Bash completion. Press Tab to complete most commands and arguments.