zabbix/zabbix-bash-completion

Name: zabbix-bash-completion

Owner: Zabbix

Description: Bash completion for Zabbix commands

Created: 2015-02-06 12:00:03.0

Updated: 2017-09-18 15:29:14.0

Pushed: 2016-02-16 16:33:51.0

Homepage: null

Size: 66

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Zabbix Bash Completion

Bash completion for Zabbix commands

To try this out, source the files. For example:

$ . zabbix_get-completion; . zabbix-utils-completion
$ zabbix_get -<tab><tab>

For zabbix_get, item key completion is available. Available item keys are hardcoded. If the currently completed key ends with an opening square bracket, space is not appended to allow adding positional parameters. For example:

$ zabbix_get -k system.u<tab><tab>
system.uname      system.uptime     system.users.num

For zabbix_agentd, item key completion is available. If the currently completed key ends with an opening square bracket, space is not appended to allow adding positional parameters. Available item keys are read from the agent binary that is specified. For example:

$ zabbix_agentd -t system.u<tab><tab>
system.uname      system.uptime     system.users.num

For all daemons, runtime options are completed. For log level changing:

$ zabbix_agentd -R log_level_increase=<tab><tab>
active\ checks  collector       listener

$ zabbix_server -R log_level_increase=poller,<tab><tab>
poller,1  poller,2  poller,3  poller,4  poller,5

For all completions, parameters are supported via space. Specifying them right away or via an equal sign (like -pvalue or –param=value) is not supported.

Installing

Simple testing can be done by sourcing the files. Completion for get and sender depends on zabbix-utils-completion. Completion for agentd, server and proxy depends on zabbix-daemons-completion.

To make Zabbix command completion available permanently, place all the files in /etc/bash_completion.d/ and start a new shell session.

Requirements

Troubleshooting


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.