请选择 进入手机版 | 继续访问电脑版
查看: 7097|回复: 3

原来zabbix监控进程与端口是如此的简单!

34

主题

34

帖子

138

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
138
羊大仙 发表于 2015-12-10 20:44:37 | 显示全部楼层 |阅读模式

使用zabbix自带key监控进程与端口

    每个公司都有自己的程序,自己的进程名与端口监听,对于nagios来说,这些都经常需要自己去写插件,但是zabbix不需要,它自己就有监控进程与端口的key

    在使用zabbix的key来监控进程与端口前,我也自己写了插件,但用起来很不爽,因为需要在所有agent上都要进行配置与维护。如果用zabbix自带的功能,只需要在server端维护就可以了。简直就是操十分心与操一分心的区别啊,为什么我就没有早点发现这功能呢。


开始正题......

1、监控端口

监控端口使用如下key:

keynet.tcp.listen[port]

Checks if this port is in LISTEN state. 0 - it is not, 1 - it is inLISTEN state.

翻译:监听端口状态,返回结果为1,则运行;返回结果为0,则没有运行。

例如监控443端口,net.tcp.listen[443]


2、监控进程

如果一个进程没有监听端口,则可以使用如下key

keyproc.num[<name>,<user>,<state>,<cmdline>]

Number of processes. <name> and <user> same as inproc.mem item. <state> all (default), run, sleep, zomb. <cmdline>filter by command line (supports regex).

name:是进程名

user:运行该进程的用户

state:进程状态包括run,sleep,zomb

cmdline:该项内容是模糊匹配,即用ps aux看到的最后一列中包含该字段则匹配上。

:name匹配可能不是很准,一般根据cmdline来匹配进程

 

例如监控condproc.num[,root,all,crond]

配置如下:

wKioL1QH7ODyJfXdAAIEsYjNt-g353.jpg

 

3、触发器配置

对于端口的监控,正常则返回值=1;对于进程的监控,正常则返回值>=1如果返回结果为0,则代表该进程宕掉。

例如对443端口的触发器配置如下:

如最后两次的结果都等于0时,则报警。对于进程的触发器配置,是一样的。

wKiom1QH7NvQ9oMtAADok345-Jo880.jpg

 

 

zabbix对监控进程与端口存活状态实在太方便了。最近我在自学zabbix,慢慢的探索更多好用的功能,欢迎留言交流。


本文出自 “楊雲” 博客,请务必保留此出处http://yangrong.blog.51cto.com/6945369/1548670

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

2411

主题

2699

帖子

7853

积分

论坛元老

Rank: 8Rank: 8

积分
7853
JamTrolley 发表于 2017-5-29 05:33:51 | 显示全部楼层
Cialis Ogni 24 Ore  Online Zithromax Sans Ordonnance Amoxicillin Pharmacie En Ligne Ordonnance buy accutane online cheap  levitra canada price Vipro Cialis Kamagra 100mg Oral Jelly Sildenafil  Finasteride Propecia Cheap Cialis Generic Online Vente Cialis Non Generique  Cheapest Cytotec Online Keflex And Cats Buy Cheap Cialis Uk  Purchase Dapoxetine Online Compra Cialis Foro Acheter Du Cialis En Pharmacie  Prozac Online Pharmacy Acquista Viagra Online Viagra Internet Avis  Shop Antabuse Online Productos Para Una Ereccion Mas Larga Cialis 10 Precio  Achat Furosemide Effets Secondaires Cialis Prostate Usa Pharmacy Pills Scam  Order Inderal Kamagra Aus China Buy Tidamax Real Cheap  Where To Buy Strattera Intestinal Motility Disorder Diflucan Dosage Cialis Le Meilleur Prix  Cheapest Zoloft Speedial Comprar Cialis Generico Internet  Cheap Clomiphene Achat De Valium Pas Cher Tamoxifen Citrate Buy Online  Where To Buy Vibramycin Kamagra Safety Priligy Sicher Kaufen  Cytotec Online Usa Viagra Pfizer 25 Mg Prix Gnc Natural Viagra  Cheap Antabuse Tablets Low Cost Cialis Generic Comprar Cialis Por Internet Es Seguro  Compra Antabuse Online Propecia Vault Priligy Mas Cialis  Price Generic Vibramycin Pain Meds Online Overnight Cialis Tiempo En Hacer Efecto  Generic Amoxil Propecia What Is Side Effects Levaquin Where To Purchase  Buy Cheap Zoloft Pills Venta De Viagra Sin Receta En Espana Dapoxetine 30 Mg  Buy Priligy 30mg Zithromax Pediatric Dosing Chart Achat Viagra Ligne France  Female Cialis Acquistare Sildenafil Francia Alquilo Kamagra  Xenical Pills Buy Azithromycin Zithromax Is Alli Back On The Market Yet 2014  Buy Propecia Online Usa Cialis Nachnahme Rechnung Buy Lipitor Online With No Prescription  Zithromax 500mg Uso Del Levitra Generic Levitra Soft Tabs  Where To Order Kamagra Original Kamagra Jelly Mygra 100 Mg Tablets  Purchase Vibramycin Usa Where To Buy Diclofenac In England Viagra 100 Precio  cialis Symptoms Of Too Much Prednisone Gel Kamagra Fast  Purchasing Levitra Levitra En Jovenes Cephalexin For Std  Buying Accutane Online Safe Orlistat From Mexico Cialis Boutique  Buy Generic Xenical Online Viagra Precio Farmacity Equivalente Levitra  Viagra Online Store Zithromax Medscape Cialis 10mg Effets Secondaires  Buy Cheap Clomiphene Amoxicillin For Kennel Cough Kamagra Gelee  Xenical Como Cortar Propecia Amoxicillin Adult Dose For Cat Nite  Where To Purchase Nolvadex Efecto Del Viagra Kamagra Achat  Vibramycin Online Prices Purchase 5mg Cialis Where To Buy Cialis 20mg In Uk  Order Amoxil In Usa Buy Tadalafil Generic Keflex Equivalents  Vibramycin For Sale Vente Cialis Levitra Tossicita  Levitra Brand Name Obtenez Dapoxetine Online No Prescription Viagra Levitra Differenze  Sildenafil Generic Viagraon Line Acheter Du Kamagra En France  Priligy Usa Delivery Aquafish Cephalexin Viagra 8 Stuck  Cheap Lasix Usa Dutasteride No Doctor Potenzmittel Cialis Generika  Kamagra Online Kamagra Vs Viagra Tadalafil 40 Mg Dose  Cheap Cialis 40mg Priligy 30 Mg Vademecum Gonorrhea Single Dose 875 Amoxicillin  Zithromax Buy Online Cialis Falsificado Como Identificar
回复 支持 反对

使用道具 举报

0

主题

276

帖子

556

积分

高级会员

Rank: 4

积分
556
chenyingying 发表于 2017-11-3 13:55:26 | 显示全部楼层
north face jackets
burberry scarves
mbt outlet
ugg outlet
moncler outlet
giuseppe zanotti sneakers
christian louboutin uk
cheap jordan shoes
soccer jerseys
michael kors uk
cheap jordan shoes
ugg schweiz
carrera sunglasses
nike uk
ugg boots
uggs classic boots
coach factory online
moncler dunjacka
coach outlet
north face jackets
tory burch outlet
kate spade outlet
d&g sunglasses
coach wallets
christian louboutin outlet
cheap nhl jerseys
hermes birkin bag
ugg boots
ugg outlet
cheap nfl jerseys
ugg outlet store
coach outlet
nike running uk
ugg boots
coach bags
ray ban sunglasses outlet
ralph lauren polo shirts
michael kors outlet
canada goose outlet
doudoune canada goose
coach factory outlet
cheap jordans
fitflops shoes
hermes belt outlet
kate spade outlet online
chicago blackhawks jersey
cheap ray ban sunglasses
manolo blahnik outlet
uggs outlet
true religion jeans
oakley sunglasses cheap
tory burch outlet
coach outlet online 70% off
michael kors
cheap oakley sunglasses
adidas outlet clearance
polo ralph lauren
montblanc pen
ray ban sunglasses
cheap nfl jerseys
fitflops sale clearance
coach factory outlet online
longchamp handbags
oakley sunglasses outlet
burberry scarf
cheap ray ban sunglasses
canada goose outlet
ugg outlet
michael kors outlet clearance
coach outlet online
ralph lauren outlet
canada goose nederland
nike jordans
coach outlet 70% off
nike air max
uggs uk
ugg factory outlet
nike nfl jerseys
longchamp bags
adidas wings
ugg outlet
north face outlet
air jordan pas cher
coach outlet online
ugg sale
louis vuitton
pandora charms
air max thea
air max 90
canada goose jackets
coach outlet
michael kors outlet clearance
nike store
converse shoes
longchamp outlet store
cheap ugg boots
north face clearance
ugg outlet online
ugg boots
oakley vault
chenyingying20171103
回复 支持 反对

使用道具 举报

0

主题

18

帖子

38

积分

新手上路

Rank: 1

积分
38
zzzzz 发表于 2017-11-27 09:33:44 | 显示全部楼层
fitflops sale
mont blanc pens
basketball shoes
coach outlet online
armani exchange
chicago bulls jersey
houston texans jerseys
gucci shoes
nike shoes
jimmy choo shoes
jordan shoes
eagles jerseys
cheap snapbacks
cheap jordans
nike blazer pas cher
birkenstock sandals
coach outlet online
nike blazer
ed hardy uk
cheap ray bans
kate spade sale
salomon shoes
jaguars jersey
polo ralph lauren
cheap jordan shoes
coach outlet
canada goose sale
miami heat jersey
nike air huarache
ugg outlet
indianapolis colts jerseys
ugg outlet
michael kors outlet
true religion outlet
ugg outlet
air jordan uk
ralph lauren polo
prada outlet
nike shoes
colts jerseys
coach outlet
golden state warriors jerseys
coach factory outlet
coach outlet store
jordan shoes
cheap nhl jerseys
coach outlet
christian louboutin sale
snapbacks wholesale
nike trainers
cheap mlb jerseys
christian louboutin outlet
pandora outlet
arizona cardinals jerseys
cheap oakley sunglasses
cheap jordans
tods outlet
chargers jerseys
oakley sunglasses wholesale
kate spade handbags
oakley sunglasses
new orleans saints jerseys
yeezy shoes
coach factory outlet
burberry outlet
cleveland cavaliers jerseys
ferragamo shoes
hugo boss outlet
coach handbags
nhl jerseys
jets jersey
coach factory outlet
ugg outlet
dolphins jerseys
polo ralph lauren outlet
kate spade outlet
ed hardy outlet
nike roshe run
uggs outlet
christian louboutin outlet
tennessee titans jersey
broncos jerseys
polo ralph lauren
hermes belt
cheap oakley sunglasses
true religion outlet store
oklahoma city thunder jerseys
ugg outlet
coach outlet store online
uggs outlet
ralph lauren outlet
nike huarache
polo ralph lauren
coach outlet
uggs outlet
ralph lauren outlet
nike outlet
salomon boots
yeezy boost 350
michael kors outlet
zzzzz
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表