Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/os/openbsd?at=release/6.0
OpenBSD by Zabbix agent
Overview
For Zabbix version: 6.0 and higher
Official OpenBSD template. Requires agent of Zabbix 6.0 and newer.
Setup
See Zabbix template operation for basic instructions.
Install Zabbix agent on OpenBSD according to Zabbix documentation.
Zabbix configuration
No specific Zabbix configuration is required.
Macros used
Name | Description | Default |
---|---|---|
{$AGENT.TIMEOUT} | Timeout after which agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (passive mode). |
3m |
Template links
There are no template links in this template.
Discovery rules
Name | Description | Type | Key and additional info |
---|---|---|---|
Mounted filesystem discovery | Discovery of file systems of different types as defined in global regular expression "File systems for discovery". |
ZABBIX_PASSIVE | vfs.fs.discovery Filter: - {#FSTYPE} MATCHES_REGEX |
Network interface discovery | Discovery of network interfaces as defined in global regular expression "Network interfaces for discovery". |
ZABBIX_PASSIVE | net.if.discovery Filter: - {#IFNAME} MATCHES_REGEX |
Items collected
Group | Name | Description | Type | Key and additional info |
---|---|---|---|---|
CPU | Interrupts per second | - |
ZABBIX_PASSIVE | system.cpu.intr Preprocessing: - CHANGE_PER_SECOND: `` |
CPU | Processor load (1 min average per core) | The processor load is calculated as system CPU load divided by number of CPU cores. |
ZABBIX_PASSIVE | system.cpu.load[percpu,avg1] |
CPU | Processor load (5 min average per core) | The processor load is calculated as system CPU load divided by number of CPU cores. |
ZABBIX_PASSIVE | system.cpu.load[percpu,avg5] |
CPU | Processor load (15 min average per core) | The processor load is calculated as system CPU load divided by number of CPU cores. |
ZABBIX_PASSIVE | system.cpu.load[percpu,avg15] |
CPU | Context switches per second | - |
ZABBIX_PASSIVE | system.cpu.switches Preprocessing: - CHANGE_PER_SECOND: `` |
CPU | CPU idle time | The time the CPU has spent doing nothing. |
ZABBIX_PASSIVE | system.cpu.util[,idle] |
CPU | CPU interrupt time | The amount of time the CPU has been servicing hardware interrupts. |
ZABBIX_PASSIVE | system.cpu.util[,interrupt] |
CPU | CPU nice time | The time the CPU has spent running users' processes that have been niced. |
ZABBIX_PASSIVE | system.cpu.util[,nice] |
CPU | CPU system time | The time the CPU has spent running the kernel and its processes. |
ZABBIX_PASSIVE | system.cpu.util[,system] |
CPU | CPU user time | The time the CPU has spent running users' processes that are not niced. |
ZABBIX_PASSIVE | system.cpu.util[,user] |
Filesystems | Filesystems: Free inodes on {#FSNAME} (percentage) | - |
ZABBIX_PASSIVE | vfs.fs.inode[{#FSNAME},pfree] |
Filesystems | Filesystems: Free disk space on {#FSNAME} | - |
ZABBIX_PASSIVE | vfs.fs.size[{#FSNAME},free] |
Filesystems | Filesystems: Free disk space on {#FSNAME} (percentage) | - |
ZABBIX_PASSIVE | vfs.fs.size[{#FSNAME},pfree] |
Filesystems | Filesystems: Total disk space on {#FSNAME} | - |
ZABBIX_PASSIVE | vfs.fs.size[{#FSNAME},total] |
Filesystems | Filesystems: Used disk space on {#FSNAME} | - |
ZABBIX_PASSIVE | vfs.fs.size[{#FSNAME},used] |
General | Host boot time | - |
ZABBIX_PASSIVE | system.boottime |
General | Host name | System host name. |
ZABBIX_PASSIVE | system.hostname Preprocessing: - DISCARD_UNCHANGED_HEARTBEAT: |
General | Host local time | - |
ZABBIX_PASSIVE | system.localtime |
General | System information | The information as normally returned by 'uname -a'. |
ZABBIX_PASSIVE | system.uname Preprocessing: - DISCARD_UNCHANGED_HEARTBEAT: |
General | System uptime | - |
ZABBIX_PASSIVE | system.uptime |
Memory | Free swap space | - |
ZABBIX_PASSIVE | system.swap.size[,free] |
Memory | Free swap space in % | - |
ZABBIX_PASSIVE | system.swap.size[,pfree] |
Memory | Total swap space | - |
ZABBIX_PASSIVE | system.swap.size[,total] |
Memory | Available memory | Available memory is defined as free+cached+buffers memory. |
ZABBIX_PASSIVE | vm.memory.size[available] |
Memory | Total memory | - |
ZABBIX_PASSIVE | vm.memory.size[total] |
Monitoring agent | Version of Zabbix agent running | - |
ZABBIX_PASSIVE | agent.version Preprocessing: - DISCARD_UNCHANGED_HEARTBEAT: |
Monitoring agent | Host name of Zabbix agent running | - |
ZABBIX_PASSIVE | agent.hostname Preprocessing: - DISCARD_UNCHANGED_HEARTBEAT: |
Monitoring agent | Zabbix agent ping | The agent always returns 1 for this item. It could be used in combination with nodata() for availability check. |
ZABBIX_PASSIVE | agent.ping |
Network interfaces | Network interfaces: Incoming network traffic on {#IFNAME} | - |
ZABBIX_PASSIVE | net.if.in[{#IFNAME}] Preprocessing: - CHANGE_PER_SECOND: |
Network interfaces | Network interfaces: Outgoing network traffic on {#IFNAME} | - |
ZABBIX_PASSIVE | net.if.out[{#IFNAME}] Preprocessing: - CHANGE_PER_SECOND: |
OS | Maximum number of opened files | It could be increased by using sysctl utility or modifying file /etc/sysctl.conf. |
ZABBIX_PASSIVE | kernel.maxfiles |
OS | Maximum number of processes | It could be increased by using sysctl utility or modifying file /etc/sysctl.conf. |
ZABBIX_PASSIVE | kernel.maxproc |
OS | Number of logged in users | Number of users who are currently logged in. |
ZABBIX_PASSIVE | system.users.num |
Processes | Number of running processes | Number of processes in running state. |
ZABBIX_PASSIVE | proc.num[,,run] |
Processes | Number of processes | Total number of processes in any state. |
ZABBIX_PASSIVE | proc.num[] |
Security | Checksum of /etc/passwd | - |
ZABBIX_PASSIVE | vfs.file.cksum[/etc/passwd,sha256] |
Status | Zabbix agent availability | Monitoring agent availability status |
INTERNAL | zabbix[host,agent,available] |
Triggers
Name | Description | Expression | Severity | Dependencies and additional info |
---|---|---|---|---|
Processor load is too high on {HOST.NAME} | - |
avg(/OpenBSD by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5 |
WARNING | |
Filesystems: Free inodes is less than 20% on volume {#FSNAME} | - |
last(/OpenBSD by Zabbix agent/vfs.fs.inode[{#FSNAME},pfree])<20 |
WARNING | |
Filesystems: Free disk space is less than 20% on volume {#FSNAME} | - |
last(/OpenBSD by Zabbix agent/vfs.fs.size[{#FSNAME},pfree])<20 |
WARNING | |
Hostname was changed on {HOST.NAME} | - |
last(/OpenBSD by Zabbix agent/system.hostname,#1)<>last(/OpenBSD by Zabbix agent/system.hostname,#2) |
INFO | |
Host information was changed on {HOST.NAME} | - |
last(/OpenBSD by Zabbix agent/system.uname,#1)<>last(/OpenBSD by Zabbix agent/system.uname,#2) |
INFO | |
{HOST.NAME} has just been restarted | - |
change(/OpenBSD by Zabbix agent/system.uptime)<0 |
INFO | |
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])<50 |
WARNING | |
Lack of available memory on server {HOST.NAME} | - |
last(/OpenBSD by Zabbix agent/vm.memory.size[available])<20M |
AVERAGE | |
Configured max number of opened files is too low on {HOST.NAME} | - |
last(/OpenBSD by Zabbix agent/kernel.maxfiles)<1024 |
INFO | |
Configured max number of processes is too low on {HOST.NAME} | - |
last(/OpenBSD by Zabbix agent/kernel.maxproc)<256 |
INFO | |
Too many processes running on {HOST.NAME} | - |
avg(/OpenBSD by Zabbix agent/proc.num[,,run],5m)>30 |
WARNING | |
Too many processes on {HOST.NAME} | - |
avg(/OpenBSD by Zabbix agent/proc.num[],5m)>300 |
WARNING | |
/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 | |
Zabbix agent is not available | For passive only agents, host availability is used with {$AGENT.TIMEOUT} as time threshold. |
max(/OpenBSD by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0 |
AVERAGE | Manual close: YES |
Feedback
Please report any issues with the template at https://support.zabbix.com
You can also provide feedback, discuss the template or ask for help with it at ZABBIX forums.