tecnologia:red:monitorizacion
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tecnologia:red:monitorizacion [2021/11/22 23:09] – jose | tecnologia:red:monitorizacion [2021/11/23 00:13] (current) – jose | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Instalación en Raspberry ====== | + | Usaremos librenms para la monitorización |
| - | Descargamos | + | |
| - | + | ||
| - | https:// | + | |
| - | + | ||
| - | He descargado la lite. | + | |
| - | + | ||
| - | La planchamos en una micro SD que no esté montada: | + | |
| - | dd if=2021-10-30-raspios-bullseye-armhf-lite.img of=/ | + | |
| - | Tarda en mi portátil unos 50 segundos: | + | |
| - | < | + | |
| - | 466+0 records in | + | |
| - | 466+0 records out | + | |
| - | 1954545664 bytes (2.0 GB, 1.8 GiB) copied, 50.1178 s, 39.0 MB/s | + | |
| - | + | ||
| - | real 0m50.120s | + | |
| - | user 0m0.001s | + | |
| - | sys 0m1.786s | + | |
| - | </ | + | |
| - | + | ||
| - | Para poder conectarnos sin necesidad de teclado ni pantalla, le damos IP y configuramos SSH: | + | |
| - | + | ||
| - | Nos ha creado dos particiones: | + | |
| - | * boot | + | |
| - | * rootfs | + | |
| - | + | ||
| - | ===== IP Fija ===== | + | |
| - | Pondremos una IP del rango admin del EKO, que es 192.168.0.x \\ | + | |
| - | Por ejemplo 192.168.0.10 | + | |
| - | + | ||
| - | Editamos el fichero: | + | |
| - | rootfs/ | + | |
| - | < | + | |
| - | interface eth0 | + | |
| - | static ip_address=192.168.0.10/ | + | |
| - | static routers=192.168.0.1 | + | |
| - | static domain_name_servers=8.8.8.8 | + | |
| - | </ | + | |
| - | + | ||
| - | ===== Habilitar SSH ===== | + | |
| - | Creamos un fichero que se llame ssh en la partición boot. Da igual que esté vacio. Podemos hacer: | + | |
| - | touch boot/ssh | + | |
| - | + | ||
| - | Metemos la tarjeta en la Raspberry y la arrancamos. Tarda un poco al ser la primera vez porque hace resize de tarjeta, inicia servicios.... | + | |
| - | + | ||
| - | Conectamos por ssh y cambiamos timezone: | + | |
| - | timedatectl set-timezone Europe/ | + | |
| - | + | ||
| - | ====== Instalación de LibreMS ====== | + | |
| - | Cambiamos Timezone: | + | |
| - | rm / | + | |
| - | ln -s / | + | |
| - | + | ||
| - | < | + | |
| - | apt-get install | + | |
| - | acl apache2 \ | + | |
| - | composer \ | + | |
| - | fping \ | + | |
| - | git \ | + | |
| - | graphviz \ | + | |
| - | imagemagick \ | + | |
| - | libapache2-mod-php \ | + | |
| - | mariadb-client \ | + | |
| - | mariadb-server \ | + | |
| - | mtr-tiny \ | + | |
| - | nmap \ | + | |
| - | php-cli \ | + | |
| - | php-curl \ | + | |
| - | php-gd \ | + | |
| - | php-json \ | + | |
| - | php-mbstring \ | + | |
| - | php-mysql \ | + | |
| - | php-snmp \ | + | |
| - | php-xml \ | + | |
| - | php-zip \ | + | |
| - | python3-memcache \ | + | |
| - | python3-mysqldb \ | + | |
| - | rrdtool \ | + | |
| - | snmp \ | + | |
| - | snmpd \ | + | |
| - | whois | + | |
| - | </ | + | |
| - | + | ||
| - | useradd librenms -d / | + | |
| - | usermod -a -G librenms www-data | + | |
| - | + | ||
| - | cd /opt | + | |
| - | + | ||
| - | + | ||
tecnologia/red/monitorizacion.1637622575.txt.gz · Last modified: by jose
