Перейти к основному содержимому

OpenBSD by Zabbix agent

Macros used

NameValue
{$AGENT.TIMEOUT}3m

Items collected

NameDescriptionTypeIntervalKey and additional info
OpenBSD: Host name of Zabbix agent running

-

-

1hagent.hostname
OpenBSD: Zabbix agent pingThe agent always returns 1 for this item. It could be used in combination with nodata() for the availability check.

-

-

agent.ping
OpenBSD: Version of Zabbix agent running

-

-

1hagent.version
OpenBSD: Maximum number of opened filesIt could be increased by using the sysctl utility or modifying the file /etc/sysctl.conf.

-

1hkernel.maxfiles
OpenBSD: Maximum number of processesIt could be increased by using the sysctl utility or modifying the file /etc/sysctl.conf.

-

1hkernel.maxproc
OpenBSD: Number of running processesThe number of processes in a running state.

-

-

proc.num[,,run]
OpenBSD: Number of processesThe total number of processes in any state.

-

-

proc.num[]
OpenBSD: Host boot time

-

-

10msystem.boottime
OpenBSD: Interrupts per second

-

-

-

system.cpu.intr
OpenBSD: Processor load (1 min average per core)The processor load is calculated as the system CPU load divided by the number of CPU cores.

-

-

system.cpu.load[percpu,avg1]
OpenBSD: Processor load (5 min average per core)The processor load is calculated as the system CPU load divided by the number of CPU cores.

-

-

system.cpu.load[percpu,avg5]
OpenBSD: Processor load (15 min average per core)The processor load is calculated as the system CPU load divided by the number of CPU cores.

-

-

system.cpu.load[percpu,avg15]
OpenBSD: Context switches per second

-

-

-

system.cpu.switches
OpenBSD: CPU idle timeThe time the CPU has spent doing nothing.

-

-

system.cpu.util[,idle]
OpenBSD: CPU interrupt timeThe amount of time the CPU has been servicing hardware interrupts.

-

-

system.cpu.util[,interrupt]
OpenBSD: CPU nice timeThe time the CPU has spent running users' processes that have been niced.

-

-

system.cpu.util[,nice]
OpenBSD: CPU system timeThe time the CPU has spent running the kernel and its processes.

-

-

system.cpu.util[,system]
OpenBSD: CPU user timeThe time the CPU has spent running users' processes that are not niced.

-

-

system.cpu.util[,user]
OpenBSD: Host nameA host name of the system.

-

1hsystem.hostname
OpenBSD: Host local time

-

-

-

system.localtime
OpenBSD: Free swap space

-

-

-

system.swap.size[,free]
OpenBSD: Free swap space in %

-

-

-

system.swap.size[,pfree]
OpenBSD: Total swap space

-

-

1hsystem.swap.size[,total]
OpenBSD: System informationThe information as normally returned by the 'uname -a'.

-

1hsystem.uname
OpenBSD: System uptime

-

-

10msystem.uptime
OpenBSD: Number of logged in usersThe number of users who are currently logged in.

-

-

system.users.num
OpenBSD: Checksum of /etc/passwd

-

-

15mvfs.file.cksum[/etc/passwd,sha256]
OpenBSD: Get filesystemsThe vfs.fs.get key acquires raw information set about the file systems. Later to be extracted by preprocessing in dependent items.

-

-

vfs.fs.get
OpenBSD: Available memoryThe available memory is defined as free+cached+buffers memory.

-

-

vm.memory.size[available]
OpenBSD: Total memory

-

-

1hvm.memory.size[total]
OpenBSD: Zabbix agent availabilityMonitoring the availability status of the agent.INTERNAL

-

zabbix[host,agent,available]

Triggers

NameDescriptionExpressionPriorityDependencies
OpenBSD: Configured max number of opened files is too low on {HOST.NAME}

-

last(/OpenBSD by Zabbix agent/kernel.maxfiles)<1024INFO 🔔OpenBSD: Maximum number of opened files
OpenBSD: Configured max number of processes is too low on {HOST.NAME}

-

last(/OpenBSD by Zabbix agent/kernel.maxproc)<256INFO 🔔OpenBSD: Maximum number of processes
OpenBSD: Too many processes running on {HOST.NAME}

-

avg(/OpenBSD by Zabbix agent/proc.num[,,run],5m)>30WARNING 📢OpenBSD: Number of running processes
OpenBSD: Too many processes on {HOST.NAME}

-

avg(/OpenBSD by Zabbix agent/proc.num[],5m)>300WARNING 📢OpenBSD: Number of processes
OpenBSD: Processor load is too high on {HOST.NAME}

-

avg(/OpenBSD by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5WARNING 📢OpenBSD: Processor load (1 min average per core)
OpenBSD: Hostname was changed on {HOST.NAME}

-

last(/OpenBSD by Zabbix agent/system.hostname,#1)<>last(/OpenBSD by Zabbix agent/system.hostname,#2)INFO 🔔OpenBSD: Host name
OpenBSD: Lack of free swap space on {HOST.NAME}It probably means that the systems requires more physical memory.last(/OpenBSD by Zabbix agent/system.swap.size[,pfree])<50WARNING 📢OpenBSD: Free swap space in %
OpenBSD: Host information was changed on {HOST.NAME}

-

last(/OpenBSD by Zabbix agent/system.uname,#1)<>last(/OpenBSD by Zabbix agent/system.uname,#2)INFO 🔔OpenBSD: System information
OpenBSD: {HOST.NAME} has just been restarted

-

change(/OpenBSD by Zabbix agent/system.uptime)<0INFO 🔔OpenBSD: System uptime
OpenBSD: /etc/passwd has been changed on {HOST.NAME}

-

last(/OpenBSD by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/OpenBSD by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2)WARNING 📢OpenBSD: Checksum of /etc/passwd
OpenBSD: Lack of available memory on server {HOST.NAME}

-

last(/OpenBSD by Zabbix agent/vm.memory.size[available])<20MAVERAGE ⚠OpenBSD: Available memory
OpenBSD: Zabbix agent is not availableFor passive checks only the availability of the agents and a host is used with {$AGENT.TIMEOUT} as the time threshold.max(/OpenBSD by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0AVERAGE ⚠OpenBSD: Zabbix agent availability

Discovery rule №1

NameDescriptionTypeIntervalKey and additional info
Network interface discoveryThe discovery of network interfaces as defined in the global regular expression "Network interfaces for discovery".

-

1hnet.if.discovery

Item prototypes

NameDescriptionTypeIntervalKey and additional info
Interface {#IFNAME}: Incoming network traffic

-

-

-

net.if.in[{#IFNAME}]
Interface {#IFNAME}: Outgoing network traffic

-

-

-

net.if.out[{#IFNAME}]

Discovery rule №2

NameDescriptionTypeIntervalKey and additional info
Mounted filesystem discoveryDiscovery of different types of file systems as defined in the global regular expression "File systems for discovery".DEPENDENT0vfs.fs.dependent.discovery

Item prototypes

NameDescriptionTypeIntervalKey and additional info
{#FSNAME}: Free inodes, %

-

DEPENDENT

-

vfs.fs.dependent.inode[{#FSNAME},pfree]
{#FSNAME}: Free disk space

-

DEPENDENT

-

vfs.fs.dependent.size[{#FSNAME},free]
{#FSNAME}: Free disk space, %

-

DEPENDENT

-

vfs.fs.dependent.size[{#FSNAME},pfree]
{#FSNAME}: Total disk space

-

DEPENDENT

-

vfs.fs.dependent.size[{#FSNAME},total]
{#FSNAME}: Used disk space

-

DEPENDENT

-

vfs.fs.dependent.size[{#FSNAME},used]
{#FSNAME}: Get filesystem data

-

DEPENDENT

-

vfs.fs.dependent[{#FSNAME},data]
{#FSNAME}: Filesystem is read-onlyThe filesystem is mounted as read-only. It is available only for Zabbix agents 6.4 and higher.DEPENDENT

-

vfs.fs.dependent[{#FSNAME},readonly]

Trigger prototypes

NameDescriptionExpressionPriorityDependencies
{#FSNAME}: Free inodes is less than 20%

-

last(/OpenBSD by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree])<20WARNING 📢{#FSNAME}: Free inodes, %
{#FSNAME}: Free disk space is less than 20%

-

last(/OpenBSD by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pfree])<20WARNING 📢{#FSNAME}: Free disk space, %
{#FSNAME}: Filesystem has become read-onlyThe filesystem has become read-only. A possible reason is an I/O error. It is available only for Zabbix agents 6.4 and higher.last(/OpenBSD by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly],#2)=0 and last(/OpenBSD by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=1AVERAGE ⚠{#FSNAME}: Filesystem is read-only