6 lines
258 B
Bash
6 lines
258 B
Bash
#!/bin/bash
|
|
|
|
# systemd statistics
|
|
systemd_units_failed=$(systemctl --state=failed|grep -Po '\d+(?= loaded units listed.)')
|
|
gmetric --name="systemd_units_failed" --title="systemd failed units" --value="$systemd_units_failed" --type="uint16" --group="process"
|