Doc: Fix install process
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
d9cf1998d3
commit
892f6aef72
1 changed files with 4 additions and 2 deletions
|
@ -5,11 +5,13 @@ This Icinga/Nagios check plugin permit to check Forgejo instance upgrade status
|
|||
## Installation
|
||||
|
||||
```
|
||||
apt install git
|
||||
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 "command[check_forgejo_upgrade]=/usr/local/lib/nagios/plugins/check_forgejo_upgrade" > /etc/nagios/nrpe.d/forgejo.cfg
|
||||
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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue