librenms-agent/README.md

1.6 KiB

librenms-setup

bash <(wget --no-check-certificate -O - https://git.virtubox.net/virtubox/librenms-agent/raw/master/agent.sh)

Aucune configuration supplémentaire n'est requise pour :

nginx

bash <(wget --no-check-certificate -O - https://git.virtubox.net/virtubox/librenms-agent/raw/master/apps/nginx.sh)

Apache Plesk

bash <(wget --no-check-certificate -O - https://git.virtubox.net/virtubox/librenms-agent/raw/branch/master/apps/apache/apache.sh)

Netdata Apache

wget -O /etc/netdata/python.d/apache.conf https://git.virtubox.net/virtubox/librenms-agent/raw/branch/master/apps/apache/apache.conf
service netdata restart

OS updates

bash <(wget --no-check-certificate -O - https://git.virtubox.net/virtubox/librenms-agent/raw/master/apps/os-update.sh)

Configuration requise :

mysql

bash <(wget --no-check-certificate -O - https://git.virtubox.net/virtubox/librenms-agent/raw/master/apps/mysql.sh)

Sur Plesk :

cat /etc/psa/.psa.shadow >> /usr/lib/check_mk_agent/local/mysql.cnf

Puis remplacer root par admin et définir le mot de passe.

cp -f /usr/lib/check_mk_agent/local/mysql.cnf /etc/snmp/mysql.cnf
service snmpd restart

fail2ban

bash <(wget --no-check-certificate -O - https://git.virtubox.net/virtubox/librenms-agent/raw/master/apps/fail2ban.sh)

ajouter le crontab suivant :

crontab -e


*/3 * * * * /etc/snmp/fail2ban -u

memcached

bash <(wget --no-check-certificate -O - https://git.virtubox.net/virtubox/librenms-agent/raw/master/apps/memcached.sh)