Show Table of Contents
Chapter 11. Monitoring
Red Hat Update Infrastructure Manager can display information about the state of the Red Hat Update Infrastructure installation in several different ways. The most human-readable information is available in the Synchronization Status and Scheduling screen, which is described in Chapter 9, Status and Scheduling. Status and monitoring information can also be obtained in a machine-readable state, for use with automated monitoring solutions such as Nagios.
Procedure 11.1. Monitoring the state of Red Hat Update Infrastructure
- To retrieve a status code that provides a summary of the current state of the Red Hat Update Infrastructure, run the
rhui-managercommand from the shell prompt with thestatuscommand, andechothe result to standard output:# rhui-manager --username admin --password admin status # echo $? 0
This command should be automated to suit your individual requirements.Note
It is recommended that this command always be used with the--usernameand--passwordswitches specified, in order to bypass the authentication certificate and avoid the command failing due to expired credentials. - A status code of
0indicates that the Red Hat Update Infrastructure is running correctly. Other values, such as listed in Table 11.1, “Status Codes”, indicates an error exists. If multiple errors exists, the status codes are logically OR'd together.Table 11.1. Status Codes
Status Code Description 0Success 1Repository synchronization error 2CDS synchronization error 4CDS heartbeat error 8Identity certificate expiration warning 16Identity certificate expiration error 32Entitlement CA certificate expiration warning 64Entitlement CA certificate expiration error
Log Files
~/.rhui/rhui.logRed Hat Update Infrastructure Manager logs/var/log/pulp/pulp.logRed Hat Update Appliance logsNote
Thepulp.logfile is automatically written to a new enumerated log file when the base file reaches 1MB in size. The most recent four versions are kept in addition to the currently written file./var/log/pulp/grinder.logPackage synchronization outputNote
Thegrinder.logfile is automatically written to a new enumerated log file when the base file reaches 1MB in size. The most recent four versions are kept in addition to the currently written file./var/log/pulp-cds/gofer.logThegofer.logfile is located on CDS instances, and logs information about errors related to the CDS function./var/log/gofer/agent.logTheagent.logfile is located on CDS instances, and logs information about communication errors. This file contains information about whether the CDS instance was able to successfully connect to the Qpid broker running on the Red Hat Update Appliance.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.