diff --git a/README.md b/README.md index 85f99b4..dd03303 100644 --- a/README.md +++ b/README.md @@ -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 ```