Skip to content


 Zabbix
 Grafana
 Prometheus
 Threejs and TypeScript
 SocketIO and TypeScript
 Blender Topological Earth
 Sweet Home 3D
 Design Patterns Python
 Design Patterns TypeScript
   
 Course Coupon Codes
Three.js and TypeScript
Kindle Edition
$9.99 $14.99 Paperback 
$29.99 $34.99




Design Patterns in TypeScript
Kindle Edition
$9.99 $14.99 Paperback
$19.99 $24.99




Design Patterns in Python
Kindle Edition
$9.99 $14.99 Paperback
$19.99 $24.99




UserParameters

Video Lecture

UserParameters UserParameters UserParameters

Description

User Parameters in Zabbix.

I create several examples of UserParameters in this video.

Example 1

Starting as simple as possible.

I create an item to check isalive

Inside the zabbix agent configuration file, on the host that will run the UserParameter, I add UserParameter=isalive,echo 1

I save it, then I test it using,

zabbix_agentd -t isalive

I then restart the zabbix agent process,

sudo service zabbix-agent restart

I then add a new item to my host with

name = is alive

key = isalive

type of information = numeric

I go to Monitoring-->Latest Data and wait for it to appear.

Example 2

And now for something a bit more complicated, and that is Flexible User Parameters

Inside the conf file I add,

UserParameter=isalive[*],echo $1

I can test it using

zabbix_agentd -t isalive[123]

Restart the zabbix agent process,

sudo service zabbix-agent restart

The item inside Zabbix Server has, name = is alive key = isalive[123456] type of information = text

Example 3

And now, I convert an existing system.run command to a UserParameter.

The script called in this system.run command is outlined in my previous lecture Check SSL Certificate Expiry on Websites using Custom Script and system.run

Inside the conf file I add,

UserParameter=ssl.check[*],/home/zabbix/checkssl.sh $1 $2

I can test it using

zabbix_agentd -t ssl.check[example.com,443]

Restart the zabbix agent process,

sudo service zabbix-agent restart

The item inside Zabbix Server has,

name = Check SSL example.com

key = ssl.check[example.com,443]

type of information = numeric

User Parameters