OpenBSD by Zabbix agent
Macros used
| Name | Value |
|---|---|
| {$AGENT.TIMEOUT} | 3m |
Items collected
| Name | Description | Type | Interval | Key and additional info |
|---|---|---|---|---|
| OpenBSD: Host name of Zabbix agent running | - | - | 1h | agent.hostname |
| OpenBSD: Zabbix agent ping | The 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 | - | - | 1h | agent.version |
| OpenBSD: Maximum number of opened files | It could be increased by using the sysctl utility or modifying the file /etc/sysctl.conf. | - | 1h | kernel.maxfiles |
| OpenBSD: Maximum number of processes | It could be increased by using the sysctl utility or modifying the file /etc/sysctl.conf. | - | 1h | kernel.maxproc |
| OpenBSD: Number of running processes | The number of processes in a running state. | - | - | proc.num[,,run] |
| OpenBSD: Number of processes | The total number of processes in any state. | - | - | proc.num[] |
| OpenBSD: Host boot time | - | - | 10m | system.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 time | The time the CPU has spent doing nothing. | - | - | system.cpu.util[,idle] |
| OpenBSD: CPU interrupt time | The amount of time the CPU has been servicing hardware interrupts. | - | - | system.cpu.util[,interrupt] |
| OpenBSD: CPU nice time | The time the CPU has spent running users' processes that have been niced. | - | - | system.cpu.util[,nice] |
| OpenBSD: CPU system time | The time the CPU has spent running the kernel and its processes. | - | - | system.cpu.util[,system] |
| OpenBSD: CPU user time | The time the CPU has spent running users' processes that are not niced. | - | - | system.cpu.util[,user] |
| OpenBSD: Host name | A host name of the system. | - | 1h | system.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 | - | - | 1h | system.swap.size[,total] |
| OpenBSD: System information | The information as normally returned by the 'uname -a'. | - | 1h | system.uname |
| OpenBSD: System uptime | - | - | 10m | system.uptime |
| OpenBSD: Number of logged in users | The number of users who are currently logged in. | - | - | system.users.num |
| OpenBSD: Checksum of /etc/passwd | - | - | 15m | vfs.file.cksum[/etc/passwd,sha256] |
| OpenBSD: Get filesystems | The 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 memory | The available memory is defined as free+cached+buffers memory. | - | - | vm.memory.size[available] |
| OpenBSD: Total memory | - | - | 1h | vm.memory.size[total] |
| OpenBSD: Zabbix agent availability | Monitoring the availability status of the agent. | INTERNAL | - | zabbix[host,agent,available] |
Triggers
| Name | Description | Expression | Priority | Dependencies |
|---|---|---|---|---|
| OpenBSD: Configured max number of opened files is too low on {HOST.NAME} | - | last(/OpenBSD by Zabbix agent/kernel.maxfiles)<1024 | INFO 🔔 | 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)<256 | INFO 🔔 | OpenBSD: Maximum number of processes |
| OpenBSD: Too many processes running on {HOST.NAME} | - | avg(/OpenBSD by Zabbix agent/proc.num[,,run],5m)>30 | WARNING 📢 | OpenBSD: Number of running processes |
| OpenBSD: Too many processes on {HOST.NAME} | - | avg(/OpenBSD by Zabbix agent/proc.num[],5m)>300 | WARNING 📢 | OpenBSD: Number of processes |
| OpenBSD: Processor load is too high on {HOST.NAME} | - | avg(/OpenBSD by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5 | WARNING 📢 | 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])<50 | WARNING 📢 | 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)<0 | INFO 🔔 | 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])<20M | AVERAGE ⚠ | OpenBSD: Available memory |
| OpenBSD: Zabbix agent is not available | For 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})=0 | AVERAGE ⚠ | OpenBSD: Zabbix agent availability |
Discovery rule №1
| Name | Description | Type | Interval | Key and additional info |
|---|---|---|---|---|
| Network interface discovery | The discovery of network interfaces as defined in the global regular expression "Network interfaces for discovery". | - | 1h | net.if.discovery |
Item prototypes
| Name | Description | Type | Interval | Key and additional info |
|---|---|---|---|---|
| Interface {#IFNAME}: Incoming network traffic | - | - | - | net.if.in[{#IFNAME}] |
| Interface {#IFNAME}: Outgoing network traffic | - | - | - | net.if.out[{#IFNAME}] |
Discovery rule №2
| Name | Description | Type | Interval | Key and additional info |
|---|---|---|---|---|
| Mounted filesystem discovery | Discovery of different types of file systems as defined in the global regular expression "File systems for discovery". | DEPENDENT | 0 | vfs.fs.dependent.discovery |
Item prototypes
| Name | Description | Type | Interval | Key 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-only | The 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
| Name | Description | Expression | Priority | Dependencies |
|---|---|---|---|---|
| {#FSNAME}: Free inodes is less than 20% | - | last(/OpenBSD by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree])<20 | WARNING 📢 | {#FSNAME}: Free inodes, % |
| {#FSNAME}: Free disk space is less than 20% | - | last(/OpenBSD by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pfree])<20 | WARNING 📢 | {#FSNAME}: Free disk space, % |
| {#FSNAME}: Filesystem has become read-only | The 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])=1 | AVERAGE ⚠ | {#FSNAME}: Filesystem is read-only |