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