4.0
2019-08-14T16:03:04Z
Templates/Linux
service monitoring using systemctl
service monitoring using systemctl
Templates/Linux
systemctl condition
systemctl contains condition
systemctl raw
systemctl startup
systemctl status
systemctl list-unit-files
7
services.systemctl
1h
0
0
0
0
0
0
{#NAME}
(kdump|systemd-readahead-drop|irqbalance|dbus-org.freedesktop.nm-dispatcher|NetworkManager-dispatcher|zabbix-agent|wpa_supplicant|dbus-fi.w1.wpa_supplicant1)
9
A
{#STATUS}
(enabled|disabled)
8
B
0
contains condition {#NAME}
18
contains.condition[{#NAME}]
0
90d
365d
0
3
0
0
0
0
0
systemctl contains condition
systemctl.condition
5
((.*)(\n)?)+
\0;Condition= no
5
Condition..(.*)
\1
5
(.*)
\1;no=0;start=1
5
(no|start)(?=.*;\1=(\d))
\2
3s
200
1
0
0
0
0
0
0
0
systemctl.status[{#NAME}]
startup {#NAME}
18
startup[{#NAME}]
0
90d
365d
0
3
0
0
0
0
0
systemctl startup
systemctl.loaded
5
(Loaded.*)(\n)?
\1
5
;.(.*);
\1
5
(.*)
\1;disabled=0;enabled=1;static=2;indirect=3
5
(disabled|enabled|static|indirect)(?=.*;\1=(\d))
\2
3s
200
1
0
0
0
0
0
0
0
systemctl.status[{#NAME}]
status {#NAME}
18
status[{#NAME}]
0
90d
365d
0
3
0
0
0
0
0
systemctl status
systemctl.active
5
Active..(.*)(\n)?
\1
5
\((.*)\)
\1
5
(.*)
\1;dead=0;running=1;exited=2;start=3;Result: exit-code=4
5
(dead|running|exited|start|Result: exit-code)(?=.*;\1=(\d))
\2
3s
200
1
0
0
0
0
0
0
0
systemctl.status[{#NAME}]
status of "{#NAME}"
7
systemctl.status[{#NAME}]
1m
0
0
0
4
0
0
0
0
0
systemctl raw
3s
200
1
0
0
0
0
0
0
0
{service monitoring using systemctl:status[{#NAME}].last({$SERVICE_STARTUP_WINDOW})}=3
0
Service "{#NAME}" is not completely started in last {$SERVICE_STARTUP_WINDOW}
0
0
2
Maybe the pid file do not match from config with the startup init file
0
0
{service monitoring using systemctl:status[{#NAME}].last()}=4
0
Service "{#NAME}" is not in healthy state
0
0
4
0
0
{service monitoring using systemctl:status[{#NAME}].last()}=0 and {service monitoring using systemctl:startup[{#NAME}].last()}=1 and {service monitoring using systemctl:contains.condition[{#NAME}].last()}=0
0
Service "{#NAME}" is not running but configured at startup
0
0
3
some services like:
* rhel-autorelabel
* rhel-autorelabel-mark
* rhel-configure
* rhel-loadmodules
* systemd-readahead-collect
contains a triggered start. A workaround has been made to detect if the service contains even an condition
0
0
{service monitoring using systemctl:status[{#NAME}].last()}=1 and {service monitoring using systemctl:startup[{#NAME}].last()}=0
0
Service "{#NAME}" is running but not enabled at startup
0
0
1
0
0
3s
200
1
0
0
0
0
0
0
{$SERVICE_STARTUP_WINDOW}
8m
systemctl.active
0
dead
1
running
2
exited
3
start
4
something wrong
systemctl.condition
0
no
1
yes
systemctl.loaded
0
disabled
1
enabled
2
static
3
indirect