123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Install Observium on Debian/Ubuntu</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="Debian,PHP,MariaDB,MySQL,PHP Based Application,PHP Based Network Monitoring,Self-Hosted,Self-Hosted Forum,Web Based,Web Based Tools,Ubuntu,Linux,Install Guide,Homelab,Home Lab Ideas,Home Lab,Browser Based,Observium,Network Monitor,How To,Tutorial,i12bretro">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Install Observium on Debian/Ubuntu">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="revised" content="04/16/2024 08:12:12 PM" />
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Install Observium on Debian/Ubuntu</h1>
- </div>
- <div></div>
- <div id="content">
- <h2>What is Observium?</h2>
- <blockquote><em>Observium is a low-maintenance auto-discovering network monitoring platform supporting a wide range of device types, platforms and operating systems...- <a href="https://www.observium.org/" target="_blank">https://www.observium.org/</a></em></blockquote>
- <h2>Installing Observium</h2>
- <ol>
- <li>Log into the Linux device</li>
- <li>Run the following commands in a terminal window
- <div class="codeBlock"># install prerequisites<br />
- sudo apt install libapache2-mod-php7.3 php7.3-cli php7.3-mysql php7.3-gd php7.3-json php-pear snmp fping mariadb-server mariadb-client python-mysqldb rrdtool subversion whois mtr-tiny ipmitool graphviz imagemagick apache2 -y<br />
- # create a directory for observium<br />
- sudo mkdir -p /opt/observium<br />
- # download latest observium release<br />
- sudo wget http://www.observium.org/observium-community-latest.tar.gz<br />
- sudo tar zxvf observium-community-latest.tar.gz --directory /opt<br />
- # configure the MySQL database<br />
- sudo su<br />
- mysql_secure_installation</div>
- </li>
- <li>Press Enter to login as root</li>
- <li>Type Y and press Enter to set a root password, type the password twice to confirm</li>
- <li>Type Y and press Enter to remove anonymous users</li>
- <li>Type Y and press Enter to disallow root login remotely</li>
- <li>Type Y and press Enter to remove the test database</li>
- <li>Type Y and press Enter to reload privilege tables</li>
- <li>Run the following command to login into MySQL:
- <div class="codeBlock">mysql -u root -p</div>
- </li>
- <li>Authenticate with the root password set earlier</li>
- <li>Run the following commands to create the Observium database and database user
- <div class="codeBlock">CREATE DATABASE observium DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;<br />
- GRANT ALL ON observium.* to 'observium_rw'@'localhost' IDENTIFIED BY '0b5erv1um!!';<br />
- FLUSH PRIVILEGES;<br />
- EXIT;<br />
- exit</div>
- </li>
- <li>Continue with the following commands
- <div class="codeBlock">sudo cp /opt/observium/config.php.default /opt/observium/config.php<br />
- sudo nano /opt/observium/config.php</div>
- </li>
- <li>Update the MySQL connection information</li>
- <li>Press CTRL+O, Enter, CTRL+X to write the changes to config.php</li>
- <li>Continue with the following commands
- <div class="codeBlock"># create the database objects<br />
- /opt/observium/discovery.php -u<br />
- # create the logs directory<br />
- sudo mkdir -p /opt/observium/logs<br />
- # create RRDs directory<br />
- sudo mkdir /opt/observium/rrd<br />
- sudo chown www-data:www-data /opt/observium/rrd<br />
- # create observium apache2 configuration<br />
- sudo nano /etc/apache2/sites-available/observium.conf</div>
- </li>
- <li>Paste the following configuration
- <p>Listen 8001<br />
- <br />
- <VirtualHost *:8001><br />
- DocumentRoot /opt/observium/html<br />
- <Directory /><br />
- AllowOverride All<br />
- Options FollowSymLinks MultiViews<br />
- Require all granted<br />
- </Directory><br />
- </VirtualHost></p>
- </li>
- <li>Press CTRL+O, Enter, CTRL+X to write the changes to observium.conf</li>
- <li>Continue with the following commands
- <div class="codeBlock"># enable required apache modules<br />
- sudo a2enmod rewrite<br />
- # enable the observium site<br />
- sudo a2ensite observium<br />
- # restart apache2 service<br />
- sudo systemctl restart apache2<br />
- # create an admin user account<br />
- /opt/observium/adduser.php i12bretro supersecurepw 10</div>
- </li>
- <li>Open a web browser and navigate to http://DNSorIP:8001</li>
- <li>Log into Observium with the user created above</li>
- <li>Welcome to Observium</li>
- </ol>
- <p>Source: <a href="https://docs.observium.org/install_debian/" target="_blank">https://docs.observium.org/install_debian/</a></p> </div>
- </div>
- </body>
- </html>
-
|