Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
2 edited tags
| link
source | link

Report memory usage (systemd)

We have several running cronjobs on our linux system (systemd). When I issue the command: systemctl status .service then I see correctly the usage (in this case only the CPU usage (I still need to enable the Memory usage)):

systemctl status zabbix-agent.service
● zabbix-agent.service - Zabbix Agent
   Loaded: loaded (/lib/systemd/system/zabbix-agent.service; enabled; vendor
   Active: active (running) since Mon 2019-05-20 06:25:07 CEST; 5h 26min ago
     Docs: man:zabbix_agentd
 Main PID: 30179 (zabbix_agentd)
    Tasks: 13 (limit: 4915)
      CPU: 2min 5.845s

But after the process finishes I want to have a report, is there a way to get the resource information from systemd after the process has finished?