{"id":1495,"date":"2022-09-04T02:40:10","date_gmt":"2022-11-13T20:15:11","guid":{"rendered":""},"modified":"2025-02-02T00:46:17","modified_gmt":"2025-02-01T23:46:17","slug":"c-mo-instalar-la-herramienta-de-monitoreo-librenms-en-almalinux-9","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/c-mo-instalar-la-herramienta-de-monitoreo-librenms-en-almalinux-9\/","title":{"rendered":"C\u00f3mo instalar la herramienta de monitoreo LibreNMS en AlmaLinux 9"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<h1>\u00a0<\/h1>\n<p>LibreNMS es una herramienta de monitoreo de red de c\u00f3digo abierto, completa y rica en funciones. Te permite supervisar el estado y el rendimiento de tus dispositivos de red, como enrutadores, conmutadores, servidores y m\u00e1s. En este tutorial, te guiaremos a trav\u00e9s de los pasos para instalar LibreNMS en tu <a href=\"https:\/\/netcloud24.com?language=spanish&amp;currency=4\" target=\"_blank\" rel=\"follow\">servidor VPS<\/a> con AlmaLinux 9.<\/p>\n<h2>Requisitos previos<\/h2>\n<ul>\n<li>Un servidor VPS con AlmaLinux 9.<\/li>\n<li>Acceso SSH al servidor con privilegios de root o sudo.<\/li>\n<li>Un servidor web como Apache o Nginx instalado y configurado.<\/li>\n<li>PHP 8.0 o superior con las siguientes extensiones habilitadas: `bcmath`, `ctype`, `curl`, `dom`, `exif`, `fileinfo`, `filter`, `ftp`, `gd`, `gettext`, `gmp`, `iconv`, `imap`, `json`, `ldap`, `mbstring`, `mysqli`, `openssl`, `pcntl`, `pdo`, `pdo_mysql`, `posix`, `session`, `simplexml`, `snmp`, `sockets`, `tokenizer`, `xml`, `xmlreader`, `xmlwriter`, `zip`.<\/li>\n<li>Una base de datos MySQL o MariaDB.<\/li>\n<li>SNMP habilitado en los dispositivos que deseas monitorear (opcional, pero recomendado).<\/li>\n<\/ul>\n<h2>Pasos<\/h2>\n<ol>\n<li><strong>Actualizar el sistema:<\/strong>\n<pre><code>sudo dnf update -y<\/code><\/pre>\n<\/li>\n<li><strong>Instalar el servidor web, PHP, la base de datos y otras dependencias:<\/strong>\n<p>Si a\u00fan no los tienes instalados, puedes hacerlo con los siguientes comandos (ejemplo con Apache):<\/p>\n<pre><code>sudo dnf install httpd mariadb-server php php-cli php-fpm php-mysqlnd php-gd php-xml php-zip php-mbstring php-curl php-json php-openssl php-snmp php-pear php-bcmath php-gmp net-snmp net-snmp-utils cronie fping git unzip -y<\/code><\/pre>\n<\/li>\n<li><strong>Iniciar y habilitar los servicios:<\/strong>\n<pre><code>sudo systemctl start httpd\r\nsudo systemctl enable httpd\r\nsudo systemctl start mariadb\r\nsudo systemctl enable mariadb\r\nsudo systemctl start snmpd\r\nsudo systemctl enable snmpd\r\nsudo systemctl start crond\r\nsudo systemctl enable crond<\/code><\/pre>\n<\/li>\n<li><strong>Configurar la base de datos:<\/strong>\n<p>Accede a la consola de MySQL\/MariaDB:<\/p>\n<pre><code>sudo mysql -u root -p<\/code><\/pre>\n<p>Ingresa tu contrase\u00f1a de root de MySQL\/MariaDB cuando se te solicite.<\/p>\n<p>Ejecuta los siguientes comandos en la consola de MySQL\/MariaDB:<\/p>\n<pre><code>CREATE DATABASE librenms;\r\nCREATE USER 'librenms'@'localhost' IDENTIFIED BY 'tu_contrase\u00f1a_segura';\r\nGRANT ALL PRIVILEGES ON librenms.* TO 'librenms'@'localhost';\r\nFLUSH PRIVILEGES;\r\nexit<\/code><\/pre>\n<p>Reemplaza &#8220;tu_contrase\u00f1a_segura&#8221; con una contrase\u00f1a fuerte.<\/p>\n<\/li>\n<li><strong>Crear el usuario de LibreNMS:<\/strong>\n<pre><code>sudo useradd -d \/opt\/librenms -M -r -s \/bin\/bash librenms<\/code><\/pre>\n<\/li>\n<li><strong>Descargar e instalar LibreNMS:<\/strong>\n<p>Navega al directorio <code>\/opt<\/code>:<\/p>\n<pre><code>cd \/opt<\/code><\/pre>\n<p>Clona el repositorio de LibreNMS desde GitHub:<\/p>\n<pre><code>sudo git clone https:\/\/github.com\/librenms\/librenms.git librenms<\/code><\/pre>\n<p>Configura los permisos:<\/p>\n<pre><code>sudo chown -R librenms:librenms \/opt\/librenms\r\nsudo chmod -R 755 \/opt\/librenms<\/code><\/pre>\n<p>Instala las dependencias de PHP:<\/p>\n<pre><code>cd \/opt\/librenms\r\nsudo .\/scripts\/composer_wrapper.php install --no-dev<\/code><\/pre>\n<\/li>\n<li><strong>Copiar el archivo de configuraci\u00f3n de ejemplo:<\/strong>\n<pre><code>sudo cp .env.example .env<\/code><\/pre>\n<\/li>\n<li><strong>Generar la clave de aplicaci\u00f3n:<\/strong>\n<pre><code>sudo php artisan key:generate<\/code><\/pre>\n<\/li>\n<li><strong>Configurar el servidor web:<\/strong>\n<p>Configura tu servidor web (Apache o Nginx) para que apunte al directorio <code>\/opt\/librenms\/html<\/code>. Aseg\u00farate de habilitar el m\u00f3dulo `rewrite` si est\u00e1s usando Apache.<\/p>\n<\/li>\n<li><strong>Acceder al instalador web:<\/strong>\n<p>Abre tu navegador web y accede a <code>http:\/\/tu_dominio<\/code> o <code>http:\/\/tu_direccion_ip<\/code>. Sigue las instrucciones en pantalla para completar la instalaci\u00f3n.<\/p>\n<\/li>\n<\/ol>\n<h2>Conclusi\u00f3n<\/h2>\n<p>\u00a1Felicidades! Has instalado LibreNMS en tu servidor AlmaLinux 9. Ahora puedes comenzar a agregar dispositivos a tu red y monitorear su estado y rendimiento.<\/p>\n<p><a href=\"https:\/\/de.netcloud24.com\/\" target=\"_blank\">Windows VPS Deutschland<\/a><\/p>\n<p><a href=\"https:\/\/es.netcloud24.com\/\" target=\"_blank\">Windows VPS Espa\u00f1a<\/a><\/p>\n<p><a href=\"https:\/\/nl.netcloud24.com\/\" target=\"_blank\">Windows VPS Nederland<\/a><\/p>\n<p><a href=\"https:\/\/it.netcloud24.com\/\" target=\"_blank\">Windows VPS Italia<\/a><\/p>\n<p><a href=\"https:\/\/pt.netcloud24.com\/\" target=\"_blank\">Windows VPS Portugal<\/a><\/p>\n<p><a href=\"https:\/\/it.netcloud24.com\/\" target=\"_blank\">VPS Windows Italia<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS Sverige<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS Norge<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS T\u00fcrkiye<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows RDS (Remote Desktop Services)<\/a><\/p>\n<p><a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\">Windows VPS<\/a><\/p>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 LibreNMS es una herramienta de monitoreo de red de c\u00f3digo abierto, completa y rica en funciones. Te permite supervisar el estado y el rendimiento de tus\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-1495","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1495"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1495\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}