11月 292019
 

 

https://github.com/unioslo/zabbix-cli

虽然star不算多,但是功能还不算少;

基本使用:

下载:

git clone https://github.com/unioslo/zabbix-cli.git

安装:

sudo python setup.py install

 

初始化:

zabbix-cli-init -z http://$zabbix-server/zabbix/api_jsonrpc.php

配置记住用户名密码:

在 ~/.zabbix-cli/zabbix-cli.conf 中添加:

配置了 use_auth_token_file 后, 用户名token就会被记录在 ~/.zabbix-cli_auth_token 中,token是用户名密码登录后获取到的,是会过期的

 

基本用法:

查看可用的命令:

执行很多命令:

设置输出格式:

 Posted by at 下午 5:28

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据