0411.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install Observium on Debian/Ubuntu</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <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">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install Observium on Debian/Ubuntu">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="04/16/2024 08:12:12 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Install Observium on Debian/Ubuntu</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is Observium?</h2>
  26. <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>
  27. <h2>Installing Observium</h2>
  28. <ol>
  29. <li>Log into the Linux device</li>
  30. <li>Run the following commands in a terminal window
  31. <div class="codeBlock"># install prerequisites<br />
  32. 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 />
  33. # create a directory for observium<br />
  34. sudo mkdir -p /opt/observium<br />
  35. # download latest observium release<br />
  36. sudo wget http://www.observium.org/observium-community-latest.tar.gz<br />
  37. sudo tar zxvf observium-community-latest.tar.gz --directory /opt<br />
  38. # configure the MySQL database<br />
  39. sudo su<br />
  40. mysql_secure_installation</div>
  41. </li>
  42. <li>Press Enter to login as root</li>
  43. <li>Type Y and press Enter to set a root password, type the password twice to confirm</li>
  44. <li>Type Y and press Enter to remove anonymous users</li>
  45. <li>Type Y and press Enter to disallow root login remotely</li>
  46. <li>Type Y and press Enter to remove the test database</li>
  47. <li>Type Y and press Enter to reload privilege tables</li>
  48. <li>Run the following command to login into MySQL:
  49. <div class="codeBlock">mysql -u root -p</div>
  50. </li>
  51. <li>Authenticate with the root password set earlier</li>
  52. <li>Run the following commands to create the Observium database and database user
  53. <div class="codeBlock">CREATE DATABASE observium DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;<br />
  54. GRANT ALL ON observium.* to &#39;observium_rw&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;0b5erv1um!!&#39;;<br />
  55. FLUSH PRIVILEGES;<br />
  56. EXIT;<br />
  57. exit</div>
  58. </li>
  59. <li>Continue with the following commands
  60. <div class="codeBlock">sudo cp /opt/observium/config.php.default /opt/observium/config.php<br />
  61. sudo nano /opt/observium/config.php</div>
  62. </li>
  63. <li>Update the MySQL connection information</li>
  64. <li>Press CTRL+O, Enter, CTRL+X to write the changes to config.php</li>
  65. <li>Continue with the following commands
  66. <div class="codeBlock"># create the database objects<br />
  67. /opt/observium/discovery.php -u<br />
  68. # create the logs directory<br />
  69. sudo mkdir -p /opt/observium/logs<br />
  70. # create RRDs directory<br />
  71. sudo mkdir /opt/observium/rrd<br />
  72. sudo chown www-data:www-data /opt/observium/rrd<br />
  73. # create observium apache2 configuration<br />
  74. sudo nano /etc/apache2/sites-available/observium.conf</div>
  75. </li>
  76. <li>Paste the following configuration
  77. <p>Listen 8001<br />
  78. <br />
  79. &lt;VirtualHost *:8001&gt;<br />
  80. DocumentRoot /opt/observium/html<br />
  81. &lt;Directory /&gt;<br />
  82. AllowOverride All<br />
  83. Options FollowSymLinks MultiViews<br />
  84. Require all granted<br />
  85. &lt;/Directory&gt;<br />
  86. &lt;/VirtualHost&gt;</p>
  87. </li>
  88. <li>Press CTRL+O, Enter, CTRL+X to write the changes to observium.conf</li>
  89. <li>Continue with the following commands
  90. <div class="codeBlock"># enable required apache modules<br />
  91. sudo a2enmod rewrite<br />
  92. # enable the observium site<br />
  93. sudo a2ensite observium<br />
  94. # restart apache2 service<br />
  95. sudo systemctl restart apache2<br />
  96. # create an admin user account<br />
  97. /opt/observium/adduser.php i12bretro supersecurepw 10</div>
  98. </li>
  99. <li>Open a web browser and navigate to http://DNSorIP:8001</li>
  100. <li>Log into Observium with the user created above</li>
  101. <li>Welcome to Observium</li>
  102. </ol>
  103. <p>Source: <a href="https://docs.observium.org/install_debian/" target="_blank">https://docs.observium.org/install_debian/</a></p> </div>
  104. </div>
  105. </body>
  106. </html>