Skip to content

Zabbix Template: systemd-udevd

class: software target: systemd-udevd vendor: RaBe version: 6.4

Monitoring of systemd-udevd.

This template is part of RaBe's Zabbix template and helpers collection.

Items

Item: systemd-udevd: process summary

component: raw

Get info about systemd-udevd processes

proc.get[systemd-udevd,root,,summary]

Settings:

Item Setting Value
Type ZABBIX_ACTIVE
Value type TEXT

Item: systemd-udevd: Unit active state

component: service

State value that reflects whether the unit is currently active or not. The following states are currently defined: "active", "reloading", "inactive", "failed", "activating", and "deactivating".

rabe.systemd-udevd.active_state

Settings:

Item Setting Value
Type DEPENDENT
History 7d
Source item systemd.unit.get["systemd-udevd.service"]

Preprocessing steps:

Type Parameters
JSONPATH ["$.ActiveState.state"]
DISCARD_UNCHANGED_HEARTBEAT ["30m"]

Item: systemd-udevd: CPU seconds (system)

component: systemd-udevd

Total CPU seconds (system) of systemd-udevd processes.

rabe.systemd-udevd.cputime_system

Settings:

Item Setting Value
Type DEPENDENT
Value type FLOAT
History 7d
Source item proc.get[systemd-udevd,root,,summary]

Preprocessing steps:

Type Parameters
JSONPATH ["$[*].cputime_system.first()"]
SIMPLE_CHANGE [""]
DISCARD_UNCHANGED_HEARTBEAT ["5m"]

Item: systemd-udevd: CPU seconds (user)

component: systemd-udevd

Total CPU seconds (user) of systemd-udevd processes.

rabe.systemd-udevd.cputime_user

Settings:

Item Setting Value
Type DEPENDENT
Value type FLOAT
History 7d
Source item proc.get[systemd-udevd,root,,summary]

Preprocessing steps:

Type Parameters
JSONPATH ["$[*].cputime_user.first()"]
SIMPLE_CHANGE [""]
DISCARD_UNCHANGED_HEARTBEAT ["5m"]

Item: systemd-udevd: Service load state

component: service

State value that reflects whether the configuration file of this unit has been loaded. The following states are currently defined: "loaded", "error", and "masked".

rabe.systemd-udevd.load_state

Settings:

Item Setting Value
Type DEPENDENT
History 7d
Source item systemd.unit.get["systemd-udevd.service"]

Preprocessing steps:

Type Parameters
JSONPATH ["$.LoadState.state"]
DISCARD_UNCHANGED_HEARTBEAT ["30m"]

Item: systemd-udevd: Number of processes

component: systemd-udevd

Number of systemd-udevd processes.

rabe.systemd-udevd.processes

Settings:

Item Setting Value
Type DEPENDENT
History 7d
Source item proc.get[systemd-udevd,root,,summary]

Preprocessing steps:

Type Parameters
JSONPATH ["$[*].processes.first()"]
DISCARD_UNCHANGED_HEARTBEAT ["5m"]

Item: systemd-udevd: Memory usage (RSS)

component: systemd-udevd

Memory usage of systemd-udevd processes.

rabe.systemd-udevd.rss

Settings:

Item Setting Value
Type DEPENDENT
History 7d
Source item proc.get[systemd-udevd,root,,summary]

Preprocessing steps:

Type Parameters
JSONPATH ["$[*].rss.first()"]
DISCARD_UNCHANGED_HEARTBEAT ["5m"]

Item: systemd-udevd: Swap usage

component: systemd-udevd

Swap usage of systemd-udevd processes.

rabe.systemd-udevd.swap

Settings:

Item Setting Value
Type DEPENDENT
History 7d
Source item proc.get[systemd-udevd,root,,summary]

Preprocessing steps:

Type Parameters
JSONPATH ["$[*].swap.first()"]
DISCARD_UNCHANGED_HEARTBEAT ["5m"]

Item: systemd-udevd: Number of threads

component: systemd-udevd

Number of systemd-udevd threads.

rabe.systemd-udevd.threads

Settings:

Item Setting Value
Type DEPENDENT
History 7d
Source item proc.get[systemd-udevd,root,,summary]

Preprocessing steps:

Type Parameters
JSONPATH ["$[*].threads.first()"]
DISCARD_UNCHANGED_HEARTBEAT ["5m"]

Item: systemd-udevd: Unit file state

component: service

Encodes the install state of the unit file of FragmentPath. It currently knows the following states: "enabled", "enabled-runtime", "linked", "linked-runtime", "masked", "masked-runtime", "static", "disabled", and "invalid".

rabe.systemd-udevd.unitfile_state

Settings:

Item Setting Value
Type DEPENDENT
History 7d
Source item systemd.unit.get["systemd-udevd.service"]

Preprocessing steps:

Type Parameters
JSONPATH ["$.UnitFileState.state"]
DISCARD_UNCHANGED_HEARTBEAT ["30m"]

Item: systemd-udevd: Uptime

component: service

Number of seconds since unit entered the active state.

rabe.systemd-udevd.uptime

Settings:

Item Setting Value
Type DEPENDENT
Value type FLOAT in uptime
History 7d
Source item systemd.unit.get["systemd-udevd.service"]

Preprocessing steps:

Type Parameters
JAVASCRIPT ["data = JSON.parse(value);\nif (data.ActiveEnterTimestamp > data.ActiveExitTimestamp) {\n return Math.floor(Date.now() / 1000) - Number(data.ActiveEnterTimestamp) / 1000000;\n}\nreturn null;\n"]

Item: systemd-udevd: unit info

component: raw component: unit

Get unit info from systemd

systemd.unit.get["systemd-udevd.service"]

Settings:

Item Setting Value
Type ZABBIX_ACTIVE
Value type TEXT

Triggers

Trigger: systemd-udevd: Service is not running

scope: availability

Settings:

Trigger Setting Values
Priority WARNING
Manual close YES
last(/systemd-udevd/rabe.systemd-udevd.active_state)<>1

Trigger: systemd-udevd: No running processes

scope: availability

No running systemd-udevd processes. Settings:

Trigger Setting Values
Priority HIGH
last(/systemd-udevd/rabe.systemd-udevd.processes)<{$SYSTEMDUDEVD.THRESHOLD.MIN_PROC}

Trigger: systemd-udevd: has been restarted

scope: notice

Settings:

Trigger Setting Values
Priority INFO
Manual close YES
last(/systemd-udevd/rabe.systemd-udevd.uptime)<=10m

Macros

The following Zabbix macros are configured via this template.

Macro: {$SYSTEMDUDEVD.THRESHOLD.MIN_PROC}

Minimum amount of processes expected to be running at all times.

Default:

1

Dashboards

The following Zabbix dashboards are included in this template.

  • systemd-udevd: Overview

License

This template is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License.

Copyright (c) 2017 - 2024 Radio Bern RaBe