How to check status of core Satellite 6 services?
Environment
- Red Hat Satellite 6
Issue
- How can we check that all Satellite services are running on Satellite 6?
Resolution
- Run
satellite-maintain service status, optionally on older Satellite versionsforeman-maintain service statusor evenkatello-service status. Example successful output is below:
# satellite-maintain service status
Running Status Services
================================================================================
Get status of applicable services:
Displaying the following service(s):
rh-mongodb34-mongod, postgresql, qdrouterd, qpidd, squid, pulp_celerybeat, pulp_resource_manager, pulp_streamer, pulp_workers, smart_proxy_dynflow_core, tomcat, dynflowd, httpd, puppetserver, foreman-proxy
/ displaying rh-mongodb34-mongod
● rh-mongodb34-mongod.service - High-performance, schema-free document-oriented database
Loaded: loaded (/usr/lib/systemd/system/rh-mongodb34-mongod.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2020-02-08 11:54:40 CET; 1 weeks 1 days ago
Main PID: 25788 (mongod)
Tasks: 65
CGroup: /system.slice/rh-mongodb34-mongod.service
└─25788 /opt/rh/rh-mongodb34/root/usr/bin/mongod -f /etc/opt/rh/rh-mongodb34/mongod.conf run
Feb 15 08:56:49 satellite007.example.com mongod.27017[25788]: [conn1371] received client metadata from 127.0.0.1:35940 conn1371: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.9" }, os: { type: "Linux", name: "Red Hat Enterprise Linux Server release 7.7 (Maipo)", architecture: "x86_64", version: "Kernel 3.10.0-1062.el7.x86_64" } }
..
..
(around 300 lines skipped)
..
..
\ displaying puppetserver
● puppetserver.service - puppetserver Service
Loaded: loaded (/usr/lib/systemd/system/puppetserver.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2020-02-08 12:02:41 CET; 1 weeks 1 days ago
Main PID: 28885 (java)
Tasks: 60 (limit: 4915)
CGroup: /system.slice/puppetserver.service
└─28885 /usr/bin/java -Xms2G -Xmx2G -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger -Djava.security.egd=/dev/urandom -XX:OnOutOfMemoryError=kill -9 %p -cp /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar:/opt/puppetlabs/server/apps/puppetserver/jruby-1_7.jar:/opt/puppetlabs/server/data/puppetserver/jars/* clojure.main -m puppetlabs.trapperkeeper.main --config /etc/puppetlabs/puppetserver/conf.d --bootstrap-config /etc/puppetlabs/puppetserver/services.d/,/opt/puppetlabs/server/apps/puppetserver/config/services.d/ --restart-file /opt/puppetlabs/server/data/puppetserver/restartcounter
Feb 08 12:01:58 satellite007.example.com systemd[1]: Starting puppetserver Service...
Feb 08 12:02:41 satellite007.example.com systemd[1]: Started puppetserver Service.
\ displaying foreman-proxy
● foreman-proxy.service - Foreman Proxy
Loaded: loaded (/usr/lib/systemd/system/foreman-proxy.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2020-02-08 12:29:35 CET; 1 weeks 1 days ago
Main PID: 1845 (ruby)
Tasks: 10
CGroup: /system.slice/foreman-proxy.service
└─1845 ruby /usr/share/foreman-proxy/bin/smart-proxy --no-daemonize
Feb 14 12:46:28 satellite007.example.com smart-proxy[1845]: pmoravec-sat66-on-rhev - - [14/Feb/2020:12:46:28 CET] "GET /pulp/status/disk_usage HTTP/1.1" 200 638
Feb 14 12:46:28 satellite007.example.com smart-proxy[1845]: - -> /pulp/status/disk_usage
Feb 15 00:46:46 satellite007.example.com smart-proxy[1845]: pmoravec-sat66-on-rhev - - [15/Feb/2020:00:46:46 CET] "GET /pulp/status/disk_usage HTTP/1.1" 200 638
Feb 15 00:46:46 satellite007.example.com smart-proxy[1845]: - -> /pulp/status/disk_usage
Feb 15 12:47:02 satellite007.example.com smart-proxy[1845]: pmoravec-sat66-on-rhev - - [15/Feb/2020:12:47:02 CET] "GET /pulp/status/disk_usage HTTP/1.1" 200 638
Feb 15 12:47:02 satellite007.example.com smart-proxy[1845]: - -> /pulp/status/disk_usage
Feb 16 00:47:06 satellite007.example.com smart-proxy[1845]: pmoravec-sat66-on-rhev - - [16/Feb/2020:00:47:06 CET] "GET /pulp/status/disk_usage HTTP/1.1" 200 638
Feb 16 00:47:06 satellite007.example.com smart-proxy[1845]: - -> /pulp/status/disk_usage
Feb 16 12:47:19 satellite007.example.com smart-proxy[1845]: pmoravec-sat66-on-rhev - - [16/Feb/2020:12:47:19 CET] "GET /pulp/status/disk_usage HTTP/1.1" 200 638
Feb 16 12:47:19 satellite007.example.com smart-proxy[1845]: - -> /pulp/status/disk_usage
\ All services are running [OK]
--------------------------------------------------------------------------------
#
Diagnostic Steps
-
Check quickly for the last line of output =
Success!(for nativekatello-service) or| All services are running [OK](forforeman-maintaincommand). -
If one or more of the services failed to start or are not running, you can attempt to restart all services with
katello-service restart/foreman-maintain service restart. If this fails, please open a support case with Red Hat Technical Support.
SBR
Product(s)
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.