0

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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.