Monitoring plugin to check if pip upgrades is available
Go to file
Benjamin Renard 51ddd1ab35
Run tests / test-precommit (push) Successful in 1m6s Details
Switch from Woodpecker CI to Forgejo Actions
2024-03-15 09:24:46 +01:00
.forgejo/workflows Switch from Woodpecker CI to Forgejo Actions 2024-03-15 09:24:46 +01:00
.gitignore First version 2022-10-08 10:09:51 +02:00
.pre-commit-config.yaml Introduce pre-commit hooks 2024-03-15 09:07:44 +01:00
.yamllint.yml Introduce pre-commit hooks 2024-03-15 09:07:44 +01:00
README.md Introduce pre-commit hooks 2024-03-15 09:07:44 +01:00
check_pip_upgrade Introduce pre-commit hooks 2024-03-15 09:07:44 +01:00

README.md

Monitoring plugin to check if pip upgrades is available

This Icinga/Nagios check plugin permit to check if pip upgrades is available.

Installation

apt install git
git clone https://gitea.zionetrix.net/bn8/check_pip_upgrade.git /usr/local/src/check_pip_upgrade
mkdir -p /usr/local/lib/nagios/plugins
ln -s /usr/local/src/check_pip_upgrade/check_pip_upgrade /usr/local/lib/nagios/plugins/
echo "command[check_pip_upgrade]=/usr/local/lib/nagios/plugins/check_pip_upgrade" > /etc/nagios/nrpe.d/pip.cfg
service nagios-nrpe-server reload

Usage

usage: check_pip_upgrade [-h] [-d] [-b BIN] [packages ...]

positional arguments:
  packages           Python package(s) to check. By default, all installed packages are checkesd.

optional arguments:
  -h, --help         show this help message and exit
  -d, --debug
  -b BIN, --bin BIN  Python binary path

Copyright (c) 2022 Benjamin Renard brenard@zionetrix.net

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.