Skip to content

romain-dartigues/python-yumcheckrepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

A tool to check YUM repositories and ensure they are reachable.

Example

Suppress logs, use Nagios compatibility, use a custom yum.conf and limit to only some repositories:

user@darkstar:~$ tree --noreport /path/to/custom/conf/
/path/to/custom/conf/
├── yum.conf
└── yum.repos.d
    ├── CentOS-Base.repo
    └── epel.repo

user@darkstar:~$ yumcheckrepo -c /path/to/custom/conf/yum.conf -q --nagios base epel
OK: base
FAIL: epel

user@darkstar:~$ echo $?
2