Ubuntu 安装 zabbix-get,Command 'zabbix_get' not found 解决办法

背景

在上回 Ubuntu 安装 nginx 版 zabbix 之后,执行 zabbix_get 提示命令不存在:

[root@Ubuntu:zabbix]# zabbix_get -s 127.0.0.1 -k 'nginx.status[ping]'

Command 'zabbix_get' not found, but can be installed with:

apt install zabbix-proxy-mysql  
apt install zabbix-proxy-pgsql  
apt install zabbix-proxy-sqlite3
apt install zabbix-server-mysql 
apt install zabbix-server-pgsql 

解决方法

apt 安装 zabbix-get

[root@Ubuntu:~]# apt install zabbix-get
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  zabbix-get
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
Need to get 72.7 kB of archives.
After this operation, 249 kB of additional disk space will be used.
ionic [72.7 kB]
Fetched 72.7 kB in 0s (222 kB/s)

Selecting previously unselected package zabbix-get.
(Reading database ... 106406 files and directories currently installed.)
Preparing to unpack .../zabbix-get_1%3a5.0.0~alpha2-1+bionic_amd64.deb ...
Unpacking zabbix-get (1:5.0.0~alpha2-1+bionic) .................................................] 
Setting up zabbix-get (1:5.0.0~alpha2-1+bionic) ...######.......................................] 
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...##############################.............] 

之后就可以愉快地执行 zabbix_get

[root@Ubuntu:zabbix]# zabbix_get -s 127.0.0.1 -k 'php-fpm.status[ping]' 
0
[root@Ubuntu:zabbix]# zabbix_get -s 127.0.0.1 -k 'php-fpm.status[conn]'
15743

切记

安装的是 zabbix-get !而不是 zabbix_get,否则会出现以下情况

[root@Ubuntu:zabbix]# apt install zabbix_get
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package zabbix_get
[root@Ubuntu:zabbix]# which zabbix_get
[root@Ubuntu:zabbix]# 
[root@Ubuntu:zabbix]# zabbix_get -s 127.0.0.1 -k 'nginx.status[ping]'

Command 'zabbix_get' not found, but can be installed with:

apt install zabbix-proxy-mysql  
apt install zabbix-proxy-pgsql  
apt install zabbix-proxy-sqlite3
apt install zabbix-server-mysql 
apt install zabbix-server-pgsql 
Responses
  1. Dix

    In writing, its crucial that you steer clear of prejudice. Employing"I" or"we all" creates the article regarding you personally along with your own experiences, alternatively of concrete and research particulars. ... although that really is fine if designing a letter that is private, it isn't fine informal writing, notably documents or research documents. http://irec.gr/archives/130689 http://cprhealthcaretrainingacademy.com/the-way-to-compose-conclusion-for-a-research-paper/ http://www.faia.paris/where-does-the-abstract-go-in-a-research-paper/

    Reply
  2. Outliff

    As the timeless 5 paragraph article is still if by expert authors, it is delegated to aid them develop and organize their own thoughts. It may be a means to compose a reaction to a essay question. https://diaridelsestudiants.com/business-coursework-composing-guidelines/

    Reply
  3. Subscribe to the web scraping telegram group webscrapingsite.com! If you need to order web scraping (parsing), then feel free to follow the link https://t.me/webscrapingsite_com

    Reply
  4. [url=https://ljcialishe.com/]10mg cialis[/url] [url=https://cialisvja.com/]is there a generic cialis available in the us[/url] [url=https://viagraonlinejc.com/]viagra otc[/url] [url=https://viagratx.com/]does generic viagra work[/url] [url=https://buycialisxz.com/]cialis manufacturer[/url]

    Reply
  5. [url=https://kloviagrli.com/]where can i buy viagra over the counter[/url] [url=https://vigedon.com/]generic viagra in usa[/url] [url=https://llecialisjaw.com/]canadian pharmacy cialis[/url] [url=https://jwcialislrt.com/]how fast does cialis work[/url] [url=https://jecialisbn.com/]cialis online without pres[/url]

    Reply