Skip to main content

check-dnf-repos

Overview

Validates that DNF package repositories are reachable and accessible. Ensures that package installation and system updates can proceed without repository connectivity issues.

Requirements

  • dnf: DNF package manager (standard on RHEL/CentOS 8+ and Fedora)
  • Network access to configured repositories

Command-Line Options

OptionTypeDefaultDescription
--timeoutInteger300Command execution timeout in seconds
--sinkStringdo_nothingTelemetry sink destination
--sink-optsMultiple-Sink-specific configuration
--verbose-outFlagFalseDisplay detailed output
--log-levelChoiceINFODEBUG, INFO, WARNING, ERROR, CRITICAL
--log-folderString/var/log/fb-monitoringLog directory
--heterogeneous-cluster-v1FlagFalseEnable heterogeneous cluster support

Exit Conditions

Exit CodeCondition
OK (0)Feature flag disabled (killswitch active)
OK (0)Command succeeds with output
CRITICAL (2)Command fails
CRITICAL (2)No output produced

Usage Examples

Basic DNF Repository Check

# Verify repositories are accessible
health_checks check-node check-dnf-repos [CLUSTER] app

With Telemetry

health_checks check-node check-dnf-repos \
--sink otel \
--sink-opts "log_resource_attributes={'attr_1': 'value1'}" \
[CLUSTER] \
app

Debug Mode

health_checks check-node check-dnf-repos \
--log-level DEBUG \
--verbose-out \
[CLUSTER] \
app