better regex for systemd.exitstatus
This commit is contained in:
parent
8a67aae7c4
commit
bb1ce1dbd9
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
|||
package = pkgs.zabbix.agent2;
|
||||
settings = {
|
||||
UserParameter = ''
|
||||
systemd.exitstatus[*],systemctl status "$1" | grep "Main PID: " | grep -Po "(?<=status=)[0-9]{1,3}"
|
||||
systemd.exitstatus[*],systemctl status "$1" | grep "Main PID: " | grep -Po "(?<=status=)[0-9]{1,3}(?=(/|))"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue