Monitoring plugin to check Forgejo instance upgrade status
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Benjamin Renard 892f6aef72
ci/woodpecker/push/woodpecker Pipeline was successful Details
Doc: Fix install process
3 weeks ago
debian Initial release 3 weeks ago
.gitignore Initial release 3 weeks ago
.pre-commit-config.yaml Fix some pylint warnings and configure pre-commit to run all tests on commit 3 weeks ago
.woodpecker.yml CI: Switch tests on brenard/python-pre-commit docker image to speed up execution 3 weeks ago
README.md Doc: Fix install process 3 weeks ago
build.sh Initial release 3 weeks ago
check_forgejo_upgrade Fix some pylint warnings and configure pre-commit to run all tests on commit 3 weeks ago

README.md

Monitoring plugin to check Forgejo instance upgrade status

This Icinga/Nagios check plugin permit to check Forgejo instance upgrade status by comparing the local forgejo binary version against the latest stable release.

Installation

apt install git python3-requests python3-xmltodict
git clone https://gitea.zionetrix.net/bn8/check_forgejo_upgrade.git /usr/local/src/check_forgejo_upgrade
mkdir -p /usr/local/lib/nagios/plugins
ln -s /usr/local/src/check_forgejo_upgrade/check_forgejo_upgrade /usr/local/lib/nagios/plugins/
echo "nagios ALL=NOPASSWD: /usr/local/lib/nagios/plugins/check_forgejo_upgrade" > /etc/sudoers.d/nagios-gitea
chmod 0400 /etc/sudoers.d/nagios-gitea
echo "command[check_forgejo_upgrade]=sudo /usr/local/lib/nagios/plugins/check_forgejo_upgrade" > /etc/nagios/nrpe.d/forgejo.cfg
service nagios-nrpe-server reload

Usage

usage: check_forgejo_upgrade [-h] [-d] [-p PATH] [-U URL] [--rc]

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug
  -p PATH, --path PATH  Forgejo bin path
  -U URL, --url URL     Forgejo releases RSS URL
  --rc                  Allow release candidate (default: only stable release are
                        considered)

Copyright (c) 2023 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.