zabbix学习总结

来源:互联网 发布:卡特新秀赛季数据 编辑:程序博客网 时间:2024/06/06 13:07

入门

对于zibbix,我现在的轮廓,是多个agent,一个server,再加上一些可选的proxy。

从通信的角度来看,就是数据流从agents流向server.但是agent跟server数据传送的细节,我就无法把握了,即“一个数据怎么从agent传到server的”[原理,标准,协议]是我需要深入学习并积累的东西。
如果叫我来描述agent与server的通信的具体过程,我能说清楚吗?我能说清到哪一步?[抽象层次]。

根据zabbix的说明文档,
Zabbix server is the central component to which agents report availability and integrity information and statistics.[server的职能描述]

Zabbix agents are deployed on monitoring targets to actively monitor local resources and applications and report the gathered data to Zabbix server. [agent的职能描述]

注意到其中的“report”,可以知道数据传输[通信]的发起者是agent.[在第一次读文档的时候我为什么没有发现,而当我带着上面的疑问的时候却发现了这个关键点的字眼?]

现在的问题,
Q1.什么时候传输送数据?[因为通信是agent发起的,所以这个问题只与agent有关,server只需listening就好]
Q2.传送那些数据?[最重要的东东,这牵扯到agent与server两端,需要两端协商(配置)]
Q3.怎么传数据?[我的“感觉”是“以IP协议为基础的TCP或UDP协议”,好像有自己的看法,那就先放下这个问题?最好这样。]
Q4.这些过程是怎么控制的[配置文件在哪里?]

根据之后的深入学习我知道,原来agent与server的通信过程有passive与active两种。前者是server主动要数据,后者是agent根据server提供的Item列表,主动的提交数据数。上面的report应该是从数据流由agent “report” 到server的角度来说的。


proxy的角色解读
对agent来说,proxy冒充server,对server来说,proxy冒充agent.[一个词——“两面派”呗!].这是从通信的逻辑或策略方面解读,如果从数据流的角度解读——缓冲池。

User parameters

zabbix server把在zabbix agent上执行的命令的结果返回回来。


问题

1.zabbix的authentication是什么?什么时候会用到?
zabbix的三种authentication.Internal,LDAP,HTTP.

2.Directory Service or Naming Service
it's a software system,or a map between names(always the name(logic path) of files) and values(the real files or the data of files).


zabbix中数据库的使用

zabbix server:需要database的schema(表的结构)和dataset(数据)
zabbix proxy:只需database的schema(表的结构)
zabbix agent:不需要database


磁盘使用

1.zabbix configuration data :大小固定
2.zabbix database :History+Treads+Events


从架构层次解读zabbix

四大结点
如果从信息流的线路角度分析zabbix的架构的话,可以把zabbix提炼成四个主要的结点,分别是:agent,proxy,server和user.
agent:原始数据产生的源点.
proxy:数据缓冲结点.
server:数据集中收集处理的结点.[包括web前端]
user:人机结合点.[代表管理员]

通信标准
各个结点之间通信会涉及通信标准,主要是指数据从一个点是如何传到另一个点并被其识别的。与通信标准相关的概念主要有:item
item就是一个监测项,它最主要的属性就是key.key是由type决定的,每种type中所包含的key是固定的,这是在创建item的时候必须要确定的,即先确定item的type,然后从该type中选择一个key.[type->key]


Q1: 两不同的type中名字相同的key能否共存于同一个agent中? 不能.[那把同一个key放在不同的type中有什么用呢?或者说设置key的type有什么意义呢?]

Q2: 如何(在web前端中)查看item的值?
A2: Monitoring -->Lastest data.


item的存储形式有两种: history和trends[four kinds: max,min,avarage,total number of values in that hours]
application: 是多个相关的item的组织形式,其实就是一个集合的名字,必须从item的角度来构造,即application更像是item的属性.
script的用处: 1作为action的operation[Operation type选择Remote command,Type选择Global script]


其他特殊的角色
管理zabbix server系统的用户


从数据流向item,trigger,action,user,media之间的网状关系
item ==>trigger(参数是item的值) ==>action(参数是trigger的值或其他的能够触发的参数;operations有两种remote command和send message {to user}) -->user[包括media参数]

event source(3 kinds):
trigger events[trigger's status change]
discovery events
active agent auto-discovery events[active agent auto-registration]

原创粉丝点击