最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

Zabbix Agent item監(jiān)控項(xiàng)講解

2023-02-15 11:02 作者:樂(lè)維_lwops  | 我要投稿


前言

agent與snmp是Zabbix兩種重要的監(jiān)控方式,這一期主要介紹Zabbix Agent item監(jiān)控項(xiàng)。。Zabbix agent分為主動(dòng)代理、被動(dòng)代理,配置item類(lèi)型時(shí),可以選擇需要的類(lèi)型:

Zabbix agent :用于被動(dòng)檢查

Zabbix agent(active):用戶主動(dòng)檢查


1.?測(cè)試獲取監(jiān)控參數(shù)內(nèi)容:

在Zabbix Server上使用zabbix_get命令可以從監(jiān)控對(duì)象獲取監(jiān)控參數(shù)的具體內(nèi)容。zabbix_get命令的具體使用方法如下:

zabbix_get ?-s ?目標(biāo)服務(wù)器IP ?-p??端口(10050)??-k ?{key}

具體執(zhí)行結(jié)果如下:

zabbix_get -s 192.168.3.166 -p 10050 -k system.boottime

2.?監(jiān)控參數(shù)實(shí)際意義

2.1.?監(jiān)控操作系統(tǒng)信息(OS)

system.boottime

# 系統(tǒng)啟動(dòng)的時(shí)間點(diǎn)(Host boot time)(單位:時(shí)間戳);API中參數(shù)history需指定為3;

system.uptime

# 系統(tǒng)已運(yùn)行時(shí)長(zhǎng)(System uptime)(單位:秒);API中參數(shù)history需指定為3;

system.localtime

# 系統(tǒng)時(shí)間(Host local time)(單位:時(shí)間戳);API中參數(shù)history需指定為3;

system.hostname

# 主機(jī)名(Host name);API中參數(shù)history需指定為1;


2.2.?網(wǎng)卡信息(Network interfaces)

對(duì)傳輸網(wǎng)卡信息進(jìn)行監(jiān)控查看等

net.if.out[br0]

# 網(wǎng)卡流速,流出方向;時(shí)間間隔60s;

# 獲取指定網(wǎng)卡(br0)的流出流量的流速值(Outgoing network traffic on br0),br0為網(wǎng)卡名稱,根據(jù)實(shí)際情況填寫(xiě);時(shí)間間隔60s;

net.if.in[br0]

# 網(wǎng)卡流速,流入方向(單位:字節(jié));

API中參數(shù)history需指定為3;下同;時(shí)間間隔60s;

# 獲取指定網(wǎng)卡(br0)的流入流量的流速值(Incoming network traffic on br0),br0為網(wǎng)卡名稱,根據(jù)實(shí)際情況填寫(xiě);時(shí)間間隔60s;


2.3.?進(jìn)程信息

proc.num[]#?目前系統(tǒng)中的進(jìn)程總數(shù)(Number of processes);時(shí)間間隔60s;

proc.num[,,run]#?目前正在運(yùn)行(處于運(yùn)行態(tài))的進(jìn)程總數(shù)(Number of running processes);時(shí)間間隔60s;


2.4.?CPU信息

合理的控制用戶態(tài)、系統(tǒng)態(tài)、io等待時(shí)間可以保證進(jìn)程高效率的運(yùn)行。

系統(tǒng)態(tài)運(yùn)行時(shí)間較高說(shuō)明進(jìn)程進(jìn)行系統(tǒng)調(diào)用的次數(shù)比較多。一般的程序,如果系統(tǒng)態(tài)運(yùn)行時(shí)間占用過(guò)高,就需要優(yōu)化程序,減少系統(tǒng)調(diào)用。

io等待時(shí)間的比例過(guò)高,則表明硬盤(pán)的IO性能差,如果是讀寫(xiě)文件比較頻繁,讀寫(xiě)效率要求比較高,可以考慮更換硬盤(pán),或者使用多磁盤(pán)做Raid的方案。

system.cpu.switches

# CPU的進(jìn)程上下文切換(Context switches per seconds),單位sps,表示每秒采樣次數(shù);API中參數(shù)history需指定為3;時(shí)間間隔60s;

system.cpu.intr

# CPU中斷數(shù)量(Interrupts per second);

API中參數(shù)history需指定為3;

system.cpu.load[percpu,avg1]

# CPU每分鐘的負(fù)載值,按照核數(shù)做平均值(Processor load (1 min average per core));API中參數(shù)history需指定為0;下同

system.cpu.load[percpu,avg5]

# CPU每5分鐘的負(fù)載值,按照核數(shù)做平均值(Processor load (5 min average per core))

system.cpu.load[percpu,avg15]

# CPU每15分鐘的負(fù)載值,按照核數(shù)做平均值(Processor load (15 min average per core))

system.cpu.util[,softirq]

# CPU的軟中斷時(shí)間,百分比形式(CPU softirq time);API中參數(shù)history需指定為0;下同

system.cpu.util[,steal]

# CPU的偷盜的時(shí)間,百分比形式(CPU steal time);

system.cpu.util[,idle]

# CPU的空閑時(shí)間,百分比形式(CPU idle time);API中參數(shù)history需指定為0;下同;時(shí)間間隔60s;

system.cpu.util[,user]

# CPU的用戶態(tài)運(yùn)行時(shí)間,百分比形式(CPU user time);時(shí)間間隔60s;

system.cpu.util[,system]

# CPU的系統(tǒng)態(tài)運(yùn)行時(shí)間,百分比形式(CPU system time);時(shí)間間隔60s;

system.cpu.util[,iowait]

# CPU的io等待時(shí)間,百分比形式(CPU iowait time)

system.cpu.util[,interrupt]

# CPU的中斷時(shí)間,百分比形式(CPU interrupt time)

system.cpu.util[,nice]

# CPU的nice時(shí)間,百分比形式(CPU nice time)


2.5.?內(nèi)存信息

zabbix_get獲取內(nèi)存使用信息

system.swap.size[available]

# 物理內(nèi)存目前可用的容量(Available memory)(單位:字節(jié));API中參數(shù)history需指定為3;時(shí)間間隔60s;

system.swap.size[,total]

# swap分區(qū)的總?cè)萘?Total swap space);API中參數(shù)history需指定為3;時(shí)間間隔3600s;

system.swap.size[,free]

# swap分區(qū)尚可使用的容量(Free swap space);API中參數(shù)history需指定為3;時(shí)間間隔60s;

system.swap.size[,pfree]

# swap分區(qū)尚可使用的容量,百分比形式(Free swap space in %);API中參數(shù)history需指定為0;時(shí)間間隔60s;

vm.memory.size[total]

# 物理內(nèi)存總量(Total memory)(單位:字節(jié));API中參數(shù)history需指定為3;時(shí)間間隔3600s;

[if !supportLists]2.6.?[endif]agent信息

agent.ping

# Agent的在線狀態(tài)(Agent ping);API中參數(shù)history需指定為3;

agent.hostname

# Zabbix Agent的hostname(Host name of zabbix_agentd running);

agent.version

# Agent的軟件版本號(hào)(Version of zabbix_agent(d) running)

以上就是這一期的內(nèi)容。大家好,我是樂(lè)樂(lè),專(zhuān)注運(yùn)維技術(shù)研究與分享,關(guān)注我,學(xué)習(xí)更多Zabbix技術(shù)知識(shí)。如有Zabbix問(wèn)題還可以到樂(lè)維社區(qū)提問(wèn)留言,一起交流Zabbix技術(shù)心得。


Zabbix Agent item監(jiān)控項(xiàng)講解的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
墨玉县| 台中县| 桂平市| 磐石市| 炉霍县| 固阳县| 德江县| 阳春市| 息烽县| 龙井市| 中宁县| 石林| 吉水县| 榕江县| 西畴县| 渝中区| 望谟县| 谷城县| 容城县| 三明市| 嘉定区| 芜湖县| 讷河市| 安国市| 青岛市| 公安县| 佛教| 红原县| 铜陵市| 集贤县| 浦东新区| 宁波市| 桐庐县| 云安县| 江阴市| 崇义县| 裕民县| 绍兴市| 五家渠市| 萨迦县| 福海县|