Zabbix monitoring Linux-specific processes

Source: Internet
Author: User

using Zabbix proc.num method monitoring Linux service process

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

Number of processes that monitor a user's state

name-Process Name (default "All Processes")User-User name (default "All users") State-Available values: All(default),Run,Sleep,Zomb cmdline  -  command line filtering (regular expression)

A method for monitoring a service process in detail

First, create a new template, in the Monitoring item entry to create a new monitoring item as shown in

Proc.num[,,all,api-task-parser]

[,, All,api-task-parser]>>,, represents default all processes, all users, all defaults, Api-task-parser (Linux Host service contains unique fields)

Monitoring items can be checked for errors on the zabbix-server side

[Email protected] ~]# zabbix_get-s 10.0.0.107-p 10050-k "Proc.num[,,all,api-task-parser]"
1

Second, create a trigger

{Template Web Monitor:proc.num[,,all,api-task-parser].max (#2)}=0

Template Web monitor>> represents the name of the templates

Methods of Proc.num Zabbix-get

Max (#2) represents a two-time detection process with a return value of 0 to trigger an alarm

III. testing and monitoring of availability

We stop the api-task-parser service on the zabbix-agent server side

You can see the monitoring page display

We'll start the api-task-parser service again.


This simple Zabbix monitoring Process method Monitoring service configuration is complete

Zabbix monitoring Linux-specific processes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.