Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
nagios-plugins-yum
> README
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File README of Package nagios-plugins-yum
Project: Check_Yum Owner: Hari_Sekhon Created: 2008-04-18 Modified: 2008-06-26 URL: http://harisekhon.com/nagios Checks for Yum Updates on RedHat/CentOS systems. Shows the number of updates and can differentiate between security and regular updates. Switches to control alerting behaviour as well as whether to update the cache or enable/disable repositories Checks for Yum Updates on Redhat Enterprise Linux or CentOS systems. Differentiates between Security and regular updates and returns the number of each type of update in the output information. Goes critical on security updates but tolerates normal updates unless you use the --warn-on-any-update switch. Has support for running only off cache or enabling/disable repositories. Can also treat all updates equally and return Critical on any available update. Uses the yum plugin yum-security to get the security information. The check_yum plugin will tell you if you do not have this installed, in which case a quick 'yum install yum-security' will do it, or you can just treat all updates equally in which case you will not need the security plugin ==== Usage Examples ==== ---- ./check_yum Yum OK: 0 Security Updates Available ./check_yum Yum CRITICAL: 24 Security Updates Available. 13 Non-Security Updates Available ./check_yum Yum OK: 0 Security Updates Available. 5 Non-Security Updates Available Warn on non-security updates as well ./check_yum --warn-on-any-update Yum WARNING: 0 Security Updates Available. 5 Non-Security Updates Available Treat all updates as equal and alert critical on all updates (You will want to do this if you don't have the yum-security plugin or don't want to or can't install it, perhaps you are on CentOS 4 instead of 5 etc...) ./check_yum --all-updates Yum CRITICAL: 37 Updates Available ==== Options ==== ---- See --help for full details ==== Warning ==== It was requested to not run as root but some experimentation has shown that when running as a normal user yum incorrectly returns less or no security updates that when run as root. I am checking in to this, to be safe you will want to run this as root or at least test that the results between root and a regular user are the same. ==== Support ==== ---- For support, bugs or feature requests contact me at hpsekhon at googlemail dot com ==== Disclaimer ==== ---- This program is released under the GPLv2 License. By downloading or using this plugin you agree to these terms