Podman

Podman is a daemonless container engine for building, running and managing OCI containers and pods. It runs containers as an ordinary user with no root daemon behind them, and its command line is a drop-in replacement for Docker.

Dostupná řešení

Zabbix version 8.0
Download

Podman by Zabbix agent

Overview

This template is designed for the effortless deployment of Podman monitoring by Zabbix agent and doesn't require any external scripts.

Check the API documentation for details.

Requirements

Zabbix version: 8.0 and higher.

Tested versions

This template has been tested on:

  • Podman 5.4.2

Configuration

Zabbix should be configured according to the instructions in the Templates out of the box section.

Setup

Run an API service that listens on localhost and custom port

Example:

podman system service --time=0 tcp:127.0.0.1:8080

Note: for convenience, you can configure automatic start of the API service on system startup.

API service security

By default, the API service listens on localhost and is not protected by authentication. All processes executing on the host can access the API service and perform any actions that the user running the API service has permissions for. This can pose a security risk if not properly configured.

Macros used

Name Description Default
{$PODMAN.PORT}

Port on which the Podman API service is listening.

8088
{$PODMAN.CONTAINER.FILTER.NAME.MATCHES}

Regex to include containers by name.

.*
{$PODMAN.CONTAINER.FILTER.NAME.NOT_MATCHES}

Regex to exclude containers by name.

CHANGE_IF_NEEDED
{$PODMAN.CONTAINER.FILTER.IMAGE.MATCHES}

Regex to include containers by image.

.*
{$PODMAN.CONTAINER.FILTER.IMAGE.NOT_MATCHES}

Regex to exclude containers by image.

CHANGE_IF_NEEDED
{$PODMAN.CONTAINER.FILTER.STATE.MATCHES}

Regex to include containers by state.

.*
{$PODMAN.CONTAINER.FILTER.STATE.NOT_MATCHES}

Regex to exclude containers by state.

CHANGE_IF_NEEDED
{$PODMAN.CONTAINER.FILTER.POD.MATCHES}

Regex to include containers by pod.

.*
{$PODMAN.CONTAINER.FILTER.POD.NOT_MATCHES}

Regex to exclude containers by pod.

CHANGE_IF_NEEDED
{$PODMAN.IMAGE.FILTER.NAME.MATCHES}

Regex to include images by name.

.*
{$PODMAN.IMAGE.FILTER.NAME.NOT_MATCHES}

Regex to exclude images by name.

CHANGE_IF_NEEDED
{$PODMAN.CONTAINER.NORMAL_STATE}

Normal state of the container. Support context macro with container name, e.g. {$PODMAN.CONTAINER.NORMAL_STATE:"container_name"}.

1
{$PODMAN.CONTAINER.CPU.HIGH}

CPU usage percentage that is considered high for containers. Support context macro with container name, e.g. {$PODMAN.CONTAINER.CPU.HIGH:"container_name"}.

80
{$PODMAN.CONTAINER.MEMORY.HIGH}

Memory usage percentage that is considered high for containers. Support context macro with container name, e.g. {$PODMAN.CONTAINER.MEMORY.HIGH:"container_name"}.

80
{$PODMAN.HOST.CPU.HIGH}

CPU usage percentage that is considered high for the host.

80
{$PODMAN.HOST.MEMORY.HIGH}

Memory usage percentage that is considered high for the host.

80

Items

Name Description Type Key and additional info
Get data [Containers]

Get data from Podman API (Containers).

Zabbix agent web.page.get[http://127.0.0.1:{$PODMAN.PORT}/v6.0.0/libpod/containers/json?all=true]

Preprocessing

  • Regular expression: ^([\s\S]*?)\r?\n\r?\n([\s\S]*)$ \2

  • JavaScript: The text is too long. Please see the template.

  • Check for not supported value: any error

    ⛔️Custom on fail: Set value to: {"error": "Error getting data from Podman API", "data": ""}

Get data error

Error message when failing to get data from Podman API.

Dependent item podman.get_data.error

Preprocessing

  • JSON Path: $.error

  • Discard unchanged with heartbeat: 12h

Get data [Images]

Get data from Podman API (Images).

Zabbix agent web.page.get[http://127.0.0.1:{$PODMAN.PORT}/v6.0.0/libpod/images/json]

Preprocessing

  • Regular expression: ^([\s\S]*?)\r?\n\r?\n([\s\S]*)$ \2

Get data [DF]

Get data from Podman API (DF).

Zabbix agent web.page.get[http://127.0.0.1:{$PODMAN.PORT}/v6.0.0/libpod/system/df]

Preprocessing

  • Regular expression: ^([\s\S]*?)\r?\n\r?\n([\s\S]*)$ \2

Get data [Container stats]

Get data from Podman API (Container stats).

Zabbix agent web.page.get[http://127.0.0.1:{$PODMAN.PORT}/v6.0.0/libpod/containers/stats?stream=false]

Preprocessing

  • Regular expression: ^([\s\S]*?)\r?\n\r?\n([\s\S]*)$ \2

Get data [Info]

Get data from Podman API (Info).

Zabbix agent web.page.get[http://127.0.0.1:{$PODMAN.PORT}/v6.0.0/libpod/info]

Preprocessing

  • Regular expression: ^([\s\S]*?)\r?\n\r?\n([\s\S]*)$ \2

  • JavaScript: The text is too long. Please see the template.

Images size

Total size of all images in Podman.

Dependent item podman.images.size

Preprocessing

  • JSON Path: $.ImagesSize

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Podman API version

Version of the Podman API.

Dependent item podman.host.api.version

Preprocessing

  • JSON Path: $.data.info.version.APIVersion

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Podman version

Version of Podman.

Dependent item podman.host.version

Preprocessing

  • JSON Path: $.data.info.version.Version

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Podman host OS architecture

OS architecture of the host running Podman.

Dependent item podman.host.os.arch

Preprocessing

  • JSON Path: $.data.info.version.OsArch

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Number of images

Total number of images in Podman.

Dependent item podman.images.number

Preprocessing

  • JSON Path: $.data.info.store.imageStore.number

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Number of containers

Total number of containers in Podman.

Dependent item podman.containers.number

Preprocessing

  • JSON Path: $.data.info.store.containerStore.number

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Number of paused containers

Number of paused containers in Podman.

Dependent item podman.containers.paused

Preprocessing

  • JSON Path: $.data.info.store.containerStore.paused

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Number of running containers

Number of running containers in Podman.

Dependent item podman.containers.running

Preprocessing

  • JSON Path: $.data.info.store.containerStore.running

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Number of stopped containers

Number of stopped containers in Podman.

Dependent item podman.containers.stopped

Preprocessing

  • JSON Path: $.data.info.store.containerStore.stopped

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Number of CPU cores

Number of CPU cores on the host running Podman.

Dependent item podman.host.cpu.number

Preprocessing

  • JSON Path: $.data.info.host.cpus

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Host CPU utilization in user mode

CPU utilization in user mode on the host running Podman.

Dependent item podman.host.cpu.util.user

Preprocessing

  • JSON Path: $.data.info.host.cpuUtilization.userPercent

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 10m

Host CPU utilization in system mode

CPU utilization in system mode on the host running Podman.

Dependent item podman.host.cpu.util.system

Preprocessing

  • JSON Path: $.data.info.host.cpuUtilization.systemPercent

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 10m

Host CPU utilization in idle mode

CPU utilization in idle mode on the host running Podman.

Dependent item podman.host.cpu.util.idle

Preprocessing

  • JSON Path: $.data.info.host.cpuUtilization.idlePercent

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 10m

Host total memory

Total memory on the host running Podman.

Dependent item podman.host.memory.total

Preprocessing

  • JSON Path: $.data.info.host.memTotal

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Host free memory

Free memory on the host running Podman.

Dependent item podman.host.memory.free

Preprocessing

  • JSON Path: $.data.info.host.memFree

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Host total swap

Total swap on the host running Podman.

Dependent item podman.host.swap.total

Preprocessing

  • JSON Path: $.data.info.host.swapTotal

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Host used memory

Used memory on the host running Podman.

Dependent item podman.host.memory.used

Preprocessing

  • JSON Path: $.data.info.memUse

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Host free swap

Free swap on the host running Podman.

Dependent item podman.host.swap.free

Preprocessing

  • JSON Path: $.data.info.host.swapFree

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Host used swap

Used swap on the host running Podman.

Dependent item podman.host.swap.used

Preprocessing

  • JSON Path: $.data.info.swapUse

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Triggers

Name Description Expression Severity Dependencies and additional info
Podman: Get data error

Trigger when there is an error getting data from Podman API
Additional information:
"{ITEM.VALUE}".

last(/Podman by Zabbix agent/podman.get_data.error)<>"" High
Podman: Has been changed

Trigger when Podman version changes.
Current version: {ITEM.LASTVALUE}.

change(/Podman by Zabbix agent/podman.host.version)<>0 Info
Podman: Host CPU utilization is high

Trigger when the CPU utilization of the host running Podman is too high.

min(/Podman by Zabbix agent/podman.host.cpu.util.idle,5m)>(100 - {$PODMAN.HOST.CPU.HIGH}) Warning
Podman: Host memory utilization is high

Trigger when the memory utilization of the host running Podman is too high.

min(/Podman by Zabbix agent/podman.host.memory.free,5m)/ (last(/Podman by Zabbix agent/podman.host.memory.total)+(last(/Podman by Zabbix agent/podman.host.memory.total)=0)) * 100 * (last(/Podman by Zabbix agent/podman.host.memory.total)>0)>{$PODMAN.HOST.MEMORY.HIGH} Warning

LLD rule Containers discovery

Name Description Type Key and additional info
Containers discovery

Discovery of Podman containers.

Dependent item podman.containers.discovery

Preprocessing

  • JSON Path: $.data.containers

    ⛔️Custom on fail: Set value to: []

Item prototypes for Containers discovery

Name Description Type Key and additional info
Container [{#CONTAINER.NAME}]: Get data

Get data for a specific container.

Zabbix agent web.page.get[http://127.0.0.1:{$PODMAN.PORT}/v6.0.0/libpod/containers/{#CONTAINER.NAME}/json]

Preprocessing

  • Regular expression: ^([\s\S]*?)\r?\n\r?\n([\s\S]*)$ \2

  • JavaScript: The text is too long. Please see the template.

  • Check for not supported value: any error

    ⛔️Custom on fail: Set value to: {"error": "Error getting data form container \"{#CONTAINER.NAME}\"", "data": ""}

Container [{#CONTAINER.NAME}]: Get data error

Error message when failing to get data for a specific container.

Dependent item podman.container.error[{#CONTAINER.ID}]

Preprocessing

  • JSON Path: $.error

  • Discard unchanged with heartbeat: 12h

Container [{#CONTAINER.NAME}]: Created

Creation time of the container.

Dependent item podman.container.created[{#CONTAINER.ID}]

Preprocessing

  • JSON Path: $.data.Created

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

  • JavaScript: The text is too long. Please see the template.

Container [{#CONTAINER.NAME}]: Status

Current status of the container.

Dependent item podman.container.status[{#CONTAINER.ID}]

Preprocessing

  • JSON Path: $.data.State.Status

    ⛔️Custom on fail: Set value to: unknown

  • Discard unchanged with heartbeat: 12h

  • JavaScript: The text is too long. Please see the template.

Container [{#CONTAINER.NAME}]: Started

Start time of the container.

Dependent item podman.container.started[{#CONTAINER.ID}]

Preprocessing

  • JSON Path: $.data.State.StartedAt

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

  • JavaScript: The text is too long. Please see the template.

Container [{#CONTAINER.NAME}]: Finished

Finish time of the container.

Dependent item podman.container.finished[{#CONTAINER.ID}]

Preprocessing

  • JSON Path: $.data.State.FinishedAt

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

  • JavaScript: The text is too long. Please see the template.

Container [{#CONTAINER.NAME}]: Checkpointed

Checkpoint time of the container.

Dependent item podman.container.checkpointed[{#CONTAINER.ID}]

Preprocessing

  • JSON Path: $.data.State.CheckpointedAt

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

  • JavaScript: The text is too long. Please see the template.

Container [{#CONTAINER.NAME}]: Restored

Restore time of the container.

Dependent item podman.container.restored[{#CONTAINER.ID}]

Preprocessing

  • JSON Path: $.data.State.RestoredAt

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

  • JavaScript: The text is too long. Please see the template.

Container [{#CONTAINER.NAME}]: Average CPU usage

Average CPU usage of the container.

Dependent item podman.container.avgcpu[{#CONTAINER.ID}]

Preprocessing

  • JSON Path: $.Stats[?(@.ContainerID=="{#CONTAINER.ID}")].AvgCPU.first()

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 10m

Container [{#CONTAINER.NAME}]: Memory usage percentage

Memory usage percentage of the container.

Dependent item podman.container.mem_percentage[{#CONTAINER.ID}]

Preprocessing

  • JSON Path: $.Stats[?(@.ContainerID=="{#CONTAINER.ID}")].MemPerc.first()

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 10m

Container [{#CONTAINER.NAME}]: Memory usage

Memory usage of the container in bytes.

Dependent item podman.container.mem_usage[{#CONTAINER.ID}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 10m

Container [{#CONTAINER.NAME}]: Memory limit

Memory limit of the container in bytes.

Dependent item podman.container.mem_limit[{#CONTAINER.ID}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 10m

Container [{#CONTAINER.NAME}]: Block input

Block input of the container in bytes.

Dependent item podman.container.block_input[{#CONTAINER.ID}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 10m

Container [{#CONTAINER.NAME}]: Block output

Block output of the container in bytes.

Dependent item podman.container.block_output[{#CONTAINER.ID}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 10m

Container [{#CONTAINER.NAME}]: Size of root filesystem

Size of the container's root filesystem in bytes.

Dependent item podman.container.size_rootfs[{#CONTAINER.ID}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Container [{#CONTAINER.NAME}]: Size of read-write layer

Size of the container's read-write layer in bytes.

Dependent item podman.container.size_rw[{#CONTAINER.ID}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Trigger prototypes for Containers discovery

Name Description Expression Severity Dependencies and additional info
Podman: Container [{#CONTAINER.NAME}]: Get data error

Trigger when there is an error getting data for a specific container
Additional information:
"{ITEM.VALUE}".

last(/Podman by Zabbix agent/podman.container.error[{#CONTAINER.ID}])<>"" High Depends on:
  • Podman: Get data error
Podman: Container [{#CONTAINER.NAME}]: Not in normal state

Trigger when the container is not in a normal state (e.g., not running).

last(/Podman by Zabbix agent/podman.container.status[{#CONTAINER.ID}])<>{$PODMAN.CONTAINER.NORMAL_STATE:"{#CONTAINER.NAME}"} Warning
Podman: Container [{#CONTAINER.NAME}]: High CPU usage

Trigger when the average CPU usage of the container is too high.

min(/Podman by Zabbix agent/podman.container.avgcpu[{#CONTAINER.ID}],5m)>{$PODMAN.CONTAINER.CPU.HIGH:"{#CONTAINER.NAME}"} Warning
Podman: Container [{#CONTAINER.NAME}]: High memory usage

Trigger when the memory usage percentage of the container is too high.

min(/Podman by Zabbix agent/podman.container.mem_percentage[{#CONTAINER.ID}],5m)>{$PODMAN.CONTAINER.MEMORY.HIGH:"{#CONTAINER.NAME}"} Warning

LLD rule Mounts discovery for [{#CONTAINER.NAME}]

Name Description Type Key and additional info
Mounts discovery for [{#CONTAINER.NAME}]

Discovery of container mounts.

Zabbix agent web.page.get[http://127.0.0.1:{$PODMAN.PORT}/v6.0.0/libpod/containers/{#CONTAINER.NAME}/json?placebo=foo]

Preprocessing

  • Regular expression: ^([\s\S]*?)\r?\n\r?\n([\s\S]*)$ \2

  • JSON Path: $.Mounts

    ⛔️Custom on fail: Set value to: []

Item prototypes for Mounts discovery for [{#CONTAINER.NAME}]

Name Description Type Key and additional info
Container [{#CONTAINER.NAME}]: Mount [{#MOUNT.DESTINATION}]: Get data

Get mount data for a specific container.

Zabbix agent web.page.get[http://127.0.0.1:{$PODMAN.PORT}/v6.0.0/libpod/containers/{#CONTAINER.NAME}/json?placebo=bar&cruft={#MOUNT.NAME}]

Preprocessing

  • Regular expression: ^([\s\S]*?)\r?\n\r?\n([\s\S]*)$ \2

  • JSON Path: $.Mounts

Container [{#CONTAINER.NAME}]: Mount [{#MOUNT.DESTINATION}] source

Source of the container mount.

Dependent item podman.container.mount.source[{#CONTAINER.ID},{#MOUNT.NAME}]

Preprocessing

  • JSON Path: $[?(@.Name=="{#MOUNT.NAME}")].Source.first()

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Container [{#CONTAINER.NAME}]: Mount [{#MOUNT.DESTINATION}] mode

Mode of the container mount (read-only or read-write).

Dependent item podman.container.mount.mode[{#CONTAINER.ID},{#MOUNT.NAME}]

Preprocessing

  • JSON Path: $[?(@.Name=="{#MOUNT.NAME}")].Mode.first()

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Container [{#CONTAINER.NAME}]: Mount [{#MOUNT.DESTINATION}] read-write

Whether the container mount is read-write (1) or read-only (0).

Dependent item podman.container.mount.rw[{#CONTAINER.ID},{#MOUNT.NAME}]

Preprocessing

  • JSON Path: $[?(@.Name=="{#MOUNT.NAME}")].RW.first()

    ⛔️Custom on fail: Discard value

  • JavaScript: return value === "true" ? 1 : 0;

  • Discard unchanged with heartbeat: 12h

Container [{#CONTAINER.NAME}]: Mount [{#MOUNT.DESTINATION}] propagation

Propagation mode of the container mount.

Dependent item podman.container.mount.propagation[{#CONTAINER.ID},{#MOUNT.NAME}]

Preprocessing

  • JSON Path: $[?(@.Name=="{#MOUNT.NAME}")].Propagation.first()

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Container [{#CONTAINER.NAME}]: Mount [{#MOUNT.DESTINATION}] options

Additional options of the container mount.

Dependent item podman.container.mount.options[{#CONTAINER.ID},{#MOUNT.NAME}]

Preprocessing

  • JSON Path: $[?(@.Name=="{#MOUNT.NAME}")].Options.first()

    ⛔️Custom on fail: Discard value

  • JavaScript: The text is too long. Please see the template.

  • Discard unchanged with heartbeat: 12h

Container [{#CONTAINER.NAME}]: Mount [{#MOUNT.DESTINATION}] size

Size of the container mount in bytes.

Dependent item podman.container.mount.size[{#CONTAINER.ID},{#MOUNT.NAME}]

Preprocessing

  • JSON Path: $.Volumes[?(@.VolumeName=="{#MOUNT.NAME}")].Size.first()

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Container [{#CONTAINER.NAME}]: Mount [{#MOUNT.DESTINATION}] reclaimable size

Size that can be reclaimed of the container mount in bytes.

Dependent item podman.container.mount.reclaimable_size[{#CONTAINER.ID},{#MOUNT.NAME}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

LLD rule Networks discovery for [{#CONTAINER.NAME}]

Name Description Type Key and additional info
Networks discovery for [{#CONTAINER.NAME}]

Discovery of container networks.

Dependent item podman.containers.networks.discovery[{#CONTAINER.ID}]

Preprocessing

  • JSON Path: $.Stats[?(@.ContainerID=="{#CONTAINER.ID}")].Network.first()

    ⛔️Custom on fail: Set value to: {}

  • JavaScript: The text is too long. Please see the template.

Item prototypes for Networks discovery for [{#CONTAINER.NAME}]

Name Description Type Key and additional info
Container [{#CONTAINER.NAME}]: Interface [{#NETWORK.INTERFACE}] received bytes

Total bytes received on the network interface of the container.

Dependent item podman.container.network.rx_bytes[{#CONTAINER.ID},{#NETWORK.INTERFACE}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 10m

Container [{#CONTAINER.NAME}]: Interface [{#NETWORK.INTERFACE}] transmitted bytes

Total bytes transmitted on the network interface of the container.

Dependent item podman.container.network.tx_bytes[{#CONTAINER.ID},{#NETWORK.INTERFACE}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 10m

Container [{#CONTAINER.NAME}]: Interface [{#NETWORK.INTERFACE}] input rate

Average bits received per second on the network interface of the container.

Dependent item podman.container.network.rx_rates[{#CONTAINER.ID},{#NETWORK.INTERFACE}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Change per second
  • Custom multiplier: 8

  • Discard unchanged with heartbeat: 10m

Container [{#CONTAINER.NAME}]: Interface [{#NETWORK.INTERFACE}] output rate

Average bits transmitted per second on the network interface of the container.

Dependent item podman.container.network.tx_rates[{#CONTAINER.ID},{#NETWORK.INTERFACE}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Change per second
  • Custom multiplier: 8

  • Discard unchanged with heartbeat: 10m

Container [{#CONTAINER.NAME}]: Interface [{#NETWORK.INTERFACE}] input packets rate

Average packets received per second on the network interface of the container.

Dependent item podman.container.network.packets_rx_rates[{#CONTAINER.ID},{#NETWORK.INTERFACE}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Change per second
  • Discard unchanged with heartbeat: 10m

Container [{#CONTAINER.NAME}]: Interface [{#NETWORK.INTERFACE}] output packets rate

Average packets transmitted per second on the network interface of the container.

Dependent item podman.container.network.packets_tx_rates[{#CONTAINER.ID},{#NETWORK.INTERFACE}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Change per second
  • Discard unchanged with heartbeat: 10m

Container [{#CONTAINER.NAME}]: Interface [{#NETWORK.INTERFACE}] receive errors

Count of receive errors on the network interface of the container.

Dependent item podman.container.network.errors_rx[{#CONTAINER.ID},{#NETWORK.INTERFACE}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 10m

Container [{#CONTAINER.NAME}]: Interface [{#NETWORK.INTERFACE}] transmit errors

Count of transmit errors on the network interface of the container.

Dependent item podman.container.network.errors_tx[{#CONTAINER.ID},{#NETWORK.INTERFACE}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 10m

Container [{#CONTAINER.NAME}]: Interface [{#NETWORK.INTERFACE}] receive dropped packets

Count of dropped packets on the network interface of the container.

Dependent item podman.container.network.dropped_rx[{#CONTAINER.ID},{#NETWORK.INTERFACE}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 10m

Container [{#CONTAINER.NAME}]: Interface [{#NETWORK.INTERFACE}] transmit dropped packets

Count of dropped packets on the network interface of the container.

Dependent item podman.container.network.dropped_tx[{#CONTAINER.ID},{#NETWORK.INTERFACE}]

Preprocessing

  • JSON Path: The text is too long. Please see the template.

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 10m

Trigger prototypes for Networks discovery for [{#CONTAINER.NAME}]

Name Description Expression Severity Dependencies and additional info
Podman: Container [{#CONTAINER.NAME}]: Interface [{#NETWORK.INTERFACE}] errors

Trigger when count of errors on the network interface of the container is changing.

change(/Podman by Zabbix agent/podman.container.network.errors_tx[{#CONTAINER.ID},{#NETWORK.INTERFACE}])>0 or change(/Podman by Zabbix agent/podman.container.network.errors_rx[{#CONTAINER.ID},{#NETWORK.INTERFACE}])>0 Warning

LLD rule Images discovery

Name Description Type Key and additional info
Images discovery

Discovery of Podman images.

Dependent item podman.images.discovery

Item prototypes for Images discovery

Name Description Type Key and additional info
Image [{#IMAGE.NAME}]: Creation time

Creation time of the image in Unix timestamp format.

Dependent item podman.image.created[{#IMAGE.ID}]

Preprocessing

  • JSON Path: $[?(@.Id=="{#IMAGE.ID}")].Created.first()

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Image [{#IMAGE.NAME}]: Size

Size of the image in bytes.

Dependent item podman.image.size[{#IMAGE.ID}]

Preprocessing

  • JSON Path: $[?(@.Id=="{#IMAGE.ID}")].Size.first()

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Image [{#IMAGE.NAME}]: Shared size

Shared size of the image in bytes.

Dependent item podman.image.shared_size[{#IMAGE.ID}]

Preprocessing

  • JSON Path: $[?(@.Id=="{#IMAGE.ID}")].SharedSize.first()

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Image [{#IMAGE.NAME}]: Virtual size

Virtual size of the image in bytes.

Dependent item podman.image.virtual_size[{#IMAGE.ID}]

Preprocessing

  • JSON Path: $[?(@.Id=="{#IMAGE.ID}")].VirtualSize.first()

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Image [{#IMAGE.NAME}]: Containers count

Number of containers using the image.

Dependent item podman.image.containers[{#IMAGE.ID}]

Preprocessing

  • JSON Path: $[?(@.Id=="{#IMAGE.ID}")].Containers.first()

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Image [{#IMAGE.NAME}]: Architecture

Architecture of the image.

Dependent item podman.image.architecture[{#IMAGE.ID}]

Preprocessing

  • JSON Path: $[?(@.Id=="{#IMAGE.ID}")].Arch.first()

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Image [{#IMAGE.NAME}]: Operating system

Operating system of the image.

Dependent item podman.image.os[{#IMAGE.ID}]

Preprocessing

  • JSON Path: $[?(@.Id=="{#IMAGE.ID}")].Os.first()

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Image [{#IMAGE.NAME}]: Unique size

Unique size of the image in bytes.

Dependent item podman.image.unique_size[{#IMAGE.ID}]

Preprocessing

  • JSON Path: $.Images[?(@.ImageID=="{#IMAGE.ID}")].UniqueSize.first()

    ⛔️Custom on fail: Discard value

  • Discard unchanged with heartbeat: 12h

Trigger prototypes for Images discovery

Name Description Expression Severity Dependencies and additional info
Podman: Image [{#IMAGE.NAME}]: Unused

Trigger when the image is not used by any container.

last(/Podman by Zabbix agent/podman.image.containers[{#IMAGE.ID}])=0 Info

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 at ZABBIX forums

Články a dokumentace

+ Navrhněte nový článek

Nenašli jste integraci, kterou potřebujete?