zabbix-3.2.6之get使用方法

努力哥-运维自动化 努力哥-运维自动化     2022-09-06     784

关键词:

一、zabbix-get介绍

Zabbix-Get是zabbix中的一个程序,用于zabbix-server到zabbix-agent的数据获取,通常用来检测验证agnet的配置是否正确。

在zabbix-server上面安装

下载软件包:zabbix-get-3.2.6-1.el7.x86_64.rpm

地址:http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/

[root@zabbix-server ~]# cd /home/nulige/tools/

[root@zabbix-server tools]# rz -E
rz waiting to receive.
[root@zabbix-server tools]# ls
simkai.ttf  zabbix-get-3.2.6-1.el7.x86_64.rpm

#安装zabbix-get
[root@zabbix-server tools]# rpm -ivh zabbix-get-3.2.6-1.el7.x86_64.rpm 
Preparing...                          ################################# [100%]
Updating / installing...
   1:zabbix-get-3.2.6-1.el7           ################################# [100%]

#获取客户端系统参数
1、linux系统
[root@zabbix-server tools]# zabbix_get -s 192.168.30.136 -k system.uname
Linux zabbix-client 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64

2、windows系统
[root@zabbix-server tools]# zabbix_get -s 192.168.30.141 -k system.uname
Windows WIN-194215QI0VR 6.1.7601 Microsoft Windows 7 企业版  Service Pack 1 x64

  

 

zabbix-3.2.6之监控windows主机

一、下载zabbix_agents_3.0.4.win.zip修改三个参数:#找到conf下的配置文件zabbix_agentd.win.conf,修改LogFile、Server、、ServerActive、Hostname这四个参数。具体配置如下:LogFile=c:zabbix_agentd.log#默认参数,启动后会自动生成。Server=192.168.30.141#被... 查看详情

zabbix-3.2.6之snmp监控(无需安装agent也能监控)

...我们需要监控打印机、路由器、UPS等设备,肯定不能使用zabbix agentd,因为他们不能安装软件的,还好他们一般都支持SNMP协议,这样我可以使用SNMP来监控他们.如果你希望使用SNMPagent来获取这些设备的信息,那么在安装zabbixserver的... 查看详情

zabbix-3.2.6之监控一台新主机

1、更改主机名[[email protected]~]#hostnamezabbix-client[[email protected]-client~]#hostnamectlset-hostnamezabbix-client[[email protected]-client~]#logout2、安装zabbix源[[email protected]~]#m 查看详情

zabbix-3.2.6之snmp方式监控windows

一、在windows中添加snmp在服务中添加public和接受服务器的IP地址。 二、在zabbix-server服务器中安装net-snmp软件1、修改配置文件[[email protected]tools]#vi/etc/snmp/snmpd.conf #Third,createaviewforustoletthegrouphaverightsto:#Makea 查看详情

安装zabbix

/usr/local/zabbix-3.2.6/usr/local/php-5.6.3 cd/usr/local/src #进入软件包下载目录tarzxvfzabbix-3.2.6.tar.gz #解压cd /usr/local/zabbix-3.2.6/database/mysql   #进入mysql数据库创建脚本目录ls #列出文件 查看详情

安装zabbix-3.2.6编译报错noacceptableccompiler

执行安装zabbix在编译的时候./configure--prefix=/usr/local/zabbix/--enable-server--enable-agent--with-mysql--enable-ipv6--with-net-snmp--with-libcurl报错如下:configure:3625:error:noacceptableCcompilerfoundin$PATH解决方案 查看详情

zabbix的源码安装

下载软件包 1.下载并解压安装包cd/usr/local/srcwgethttps://ncu.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.2.6/zabbix-3.2.6.tar.gztar-xvfzabbix-3.2.6.tar.gz 2.创建zabbix的运行用户 为了安全考虑zabb 查看详情

centos_install_zabbix-3.2.6

[[email protected]~]#cat/etc/redhat-releaseCentOSLinuxrelease7.2.1511(Core)[[email protected]~]#uname-r3.10.0-327.el7.x86_64 [[email protected]~]#hostnamezabbix-server[[email  查看详情

zabbix分布式zabbix_proxy(代码片段)

Zabbix是一个分布式监控系统,它可以以一个中心点、多个分节点的模式运行,使用Proxy能大大的降低ZabbixServer的压力,ZabbixProxy可以运行在独立的服务器上1)下载zabbix软件包wgethttp://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/3... 查看详情

zabbix-3.2.6之自定制监控项参数监控http80端口是否正常

...看到新添加的参数。2、item(监控项)参数参考:https://www.zabbix.com/documentation/3.2/manual/config/items/item键值:https://www.zabbix.com/documentation/3.2/man 查看详情

zabbix的启动管理方式

1)一般启动方式启动:[[email protected]~]#/usr/local/zabbix-3.2.6/sbin/zabbix_server[[email protected]core5]#netstat-tulpnActiveInternetconnections(onlyservers)ProtoRecv-QSend-QLocalAddressForeignAddr 查看详情

zabbix的启动和关闭脚本

1.zabbix客户端的系统服务脚本  1.1拷贝启动脚本  zabbix的源码提供了系统服务脚本,在/usr/local/src/zabbix-3.2.6/misc/init.d目录下,我的系统是CentOS的,所以选择fedora下的脚本复制到/etc/init.d下[[email protected]core5]#pwd/usr/... 查看详情

javascript之set/get方法的使用

varfe={  name:‘leony‘,   $age:null,   getage(){     if(this.$age==undefined){  //this.$age==undefined或 this.$age==null       returnnewDate().getFullYear()-1989;     }else{       retur 查看详情

http方法之get与post对比

...度限制(url长度最大为2048get请求不应该在有敏感数据时使用(相较于p 查看详情

javascript属性之get/set

varo={getx(){return7;},setx(val){console.info("不能设置x的值");}}o.x//7读取x值的时候,会使用get方法o.x=9//不能设置x的值赋值x时,会使用set方法get/set与原型链  //不包含get/set的原型functionp(){}p.prototype.z=9;varp1=newp();p1.z//9//对象上 查看详情

c++之cin.get()用法(代码片段)

/************************************************************************@filecin_get.cpp*@authorZhenHaiyang*@version1.0*@date2021-05-2500:18:07*@briefcin.get()使用方法**************** 查看详情

springresttemplate之get请求

...高客户端的编写效率二、RestTemplate中几种常见请求方法的使用    ●get请求:在RestTemplate中,发送一个GET请求,我们可以通过如下两种方式   查看详情

spring之resttemplate常用api实践(代码片段)

...RestTemplate初始化配置3、RestTemplate常用API实践3.1、GET类型方法3.1.1、GET无参请求方法之getForObject()3.1.2、GET占位符传参请求方法之getForObject()3.1.3、GET带参Restful请求方法之getForObject()3.1.4、GET带参Restful请求方法之getForEntity()3.2、POST类... 查看详情