loader

Dynatrace OneAgent Status

Check Dynatrace OneAgent status on CentOS directly using “systemctl status oneagent“command.

[root@TESTSRV3 ~]# systemctl status oneagent
● oneagent.service - Dynatrace OneAgent
Loaded: loaded (/etc/systemd/system/oneagent.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2021-01-19 08:25:14 EET; 2 weeks 5 days ago
Process: 28825 ExecStart=/opt/dynatrace/oneagent/agent/initscripts/oneagent start (code=exited, status=0/SUCCESS)
Main PID: 645 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/oneagent.service
├─15566 oneagentplugin -Dcom.compuware.apm.WatchDogPort=50003 -Dcom.compuware.apm.WatchDogTimeout=900
├─28908 /opt/dynatrace/oneagent/agent/lib64/oneagentwatchdog -bg -config=/opt/dynatrace/oneagent/agent/conf/watchdog.conf
├─28924 oneagentos -Dcom.compuware.apm.WatchDogPort=50000 -Dcom.compuware.apm.WatchDogTimeout=900
├─28926 oneagentloganalytics -Dcom.compuware.apm.WatchDogPort=50001 -Dcom.compuware.apm.WatchDogTimeout=900
└─28927 oneagentnetwork -Dcom.compuware.apm.WatchDogPort=50002 -Dcom.compuware.apm.WatchDogTimeout=900
Jan 19 08:25:13 TESTSRV3 systemd[1]: Starting Dynatrace OneAgent…
Jan 19 08:25:14 TESTSRV3 oneagent[28825]: 08:25:14 Dynatrace OneAgent service started.
Jan 19 08:25:14 TESTSRV3 systemd[1]: Started Dynatrace OneAgent.
[root@TESTSRV3 ~]# cd /opt/dynatrace/
[root@TESTSRV3 dynatrace]#
[root@docker10 initscripts]# pwd
/opt/dynatrace/oneagent/agent/initscripts
[root@docker10 initscripts]# ./oneagent --status
20:49:31 usage: ./oneagent {start|stop|restart|status}
[root@docker10 initscripts]# ./oneagent status
20:49:37 Dynatrace OneAgent is running. Watchdog pid: 23880. Agent pid: 23896.
[root@docker10 initscripts]#

Leave a Reply