added systemd.exitstatus to zabbix-agent
This commit is contained in:
parent
27105817ff
commit
8a67aae7c4
1 changed files with 5 additions and 0 deletions
|
|
@ -4,6 +4,11 @@
|
|||
enable = true;
|
||||
server = "zabbix-server";
|
||||
package = pkgs.zabbix.agent2;
|
||||
settings = {
|
||||
UserParameter = ''
|
||||
systemd.exitstatus[*],systemctl status "$1" | grep "Main PID: " | grep -Po "(?<=status=)[0-9]{1,3}"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue