check_updates (1) - Linux Manuals
check_updates: a Nagios plugin to check if Red Hat or Fedora system
NAME
"check_updates" - a Nagios plugin to check if Red Hat or Fedora system is up-to-date
DESCRIPTION
check_updates is a Nagios plugin to check if Red Hat or Fedora system is up-to-dateVERSION
Version 1.6.18SYNOPSIS
check_updates [OPTIONS] -?, --usage Print usage information -h, --help Print detailed help screen -V, --version Print version information --extra-opts=[<section>[@<config_file>]] Section and/or config_file from which to load extra options (may repeat) --boot-check Check if the machine was booted with the newest kernel (default) --boot-check-warning Like --boot-check but state is warning instead of critical --no-boot-check Do not complain if the machine was booted with an old kernel --clean Cleans YUM/DNF caches -w, --warning=INTEGER Exit with WARNING status if more than INTEGER updates are available -c, --critical=INTEGER Exit with CRITICAL status if more than INTEGER updates are available --security-only Ignores non-security updates -a, --yum-arguments=STRING specific Yum arguments as STRING -t, --timeout=INTEGER Seconds before plugin times out (default: 15) -v, --verbose Show details for command-line debugging (can repeat up to 3 times)
OPTIONS
-?, --usage Print usage information -h, --help Print detailed help screen -V, --version Print version information --extra-opts=[<section>[@<config_file>]] Section and/or config_file from which to load extra options (may repeat) --boot-check Check if the machine was booted with the newest kernel (default) --boot-check-warning Like --boot-check but state is warning instead of critical --no-boot-check Do not complain if the machine was booted with an old kernel --clean Cleans YUM/DNF caches -w, --warning=INTEGER Exit with WARNING status if more than INTEGER non-security updates are available -c, --critical=INTEGER Exit with CRITICAL status if more than INTEGER non-security updates are available --security-only Ignores non-security updates -a, --yum-arguments=STRING Specifies additional arguments for Yum. Arguments containing spaces must be quoted (e.g., ./check_updates -a "-d 20") -t, --timeout=INTEGER Seconds before plugin times out (default: 15) -v, --verbose Show details for command-line debugging (can repeat up to 3 times)
Security updates always force a CRITICAL state
SECURITY UPDATES
If yum's security plugin is availableEXAMPLE
check_updatescheck_updates checks if the system is up-to-date
DIAGNOSTICS
You can specify multiple --verbose options to increase the program verbosity.EXIT STATUS
0 if OK, 1 in case of a warning, 2 in case of a critical status and 3 in case of an unkown problemDEPENDENCIES
check_updates depends on- •
- Carp
- •
- English
- •
- Getopt::Long
- •
- Monitoring::Plugin
- •
- Monitoring::Plugin::Getopt
- •
- Monitoring::Plugin::Threshold
- •
- POSIX
- •
- Readonly
INCOMPATIBILITIES
None reported.BUGS AND LIMITATIONS
Some versions of you deliver a wrong number of secuirty updates. For example
$ yum --security check-update Loaded plugins: downloadonly, product-id, rhnplugin, security This system is receiving updates from RHN Classic or RHN Satellite. Limiting package lists to security relevant ones No packages needed for security; 7 packages available mysql-libs.i686 5.1.73-5.el6_6 rhel-x86_64-server-6
Either is mysql-libs a secuirity update (and the text should report it) or the package is wrongly listed. If yum delivers a wrong count, the pluging will do the same.
Please report any bugs or feature requests to matteo [at] corti.li, or through the web interface at https://github.com/matteocorti/check_updates/issues
Be sure to include the output produced by the plugin with the --verbose option:
check_updates -v -v -v
AUTHOR
Matteo Corti <matteo [at] corti.li>LICENSE AND COPYRIGHT
Copyright (c) 2007-2016, Matteo CortiThis module is free software; you can redistribute it and/or modify it under the terms of GNU general public license (gpl) version 3 or (at your option) any later version. See the LICENSE file for details.
DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE ``AS IS'' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
ACKNOWLEDGMENTS
Many thanks to:- •
- Peter Bircher & Cristian Tuduce for several bug fixes
- •
- Mark Greenheigh for the prompt and precise bug reports
- •
- Jose Pedro Oliveria for the build and release fixes
- •
- Tomas Edwardsson for a patch fixing the detection of RH EL 6 systems
- •
- Cott Lang for the Amazon Linux patch
- •
- Joop Boonen for the yum arguments patch
- •
- Franky Van Liedekerke for the perfomance data and security plugin patch and for the openvz kernels patch
- •
- Andreas Dijkman for the Oracle UEK patch
- •
-
PhiBo (https://github.com/phibos) for the --boot-check-warning patch