| 1 | | '''Network Device Configuration Management - Oxidized ''' |
| | 1 | |
| | 2 | == '''Network Device Configuration Management - Oxidized ''' == |
| | 3 | |
| | 4 | In this lab you will install Oxidized and integrate it with LibreNMS. |
| | 5 | |
| | 6 | '''Requirements:''' |
| | 7 | |
| | 8 | Ubuntu 20.04 Server with LibreNMS installed (Use the provided VM) |
| | 9 | |
| | 10 | '''Oxidized Installation''' |
| | 11 | |
| | 12 | Since most of the tasks in this lab require you to be "root", the first thing you should do is to connect to your server and start a root shell. |
| | 13 | |
| | 14 | {{{ |
| | 15 | sudo su |
| | 16 | apt update |
| | 17 | apt-get install ruby ruby-dev libsqlite3-dev libssl-dev pkg-config cmake libssh2-1-dev libicu-dev zlib1g-dev g++ |
| | 18 | sysctl -w net.ipv6.conf.all.disable_ipv6=1 |
| | 19 | sysctl -w net.ipv6.conf.default.disable_ipv6=1 |
| | 20 | sysctl -w net.ipv6.conf.lo.disable_ipv6=1 |
| | 21 | gem install oxidized |
| | 22 | gem install oxidized-script oxidized-web |
| | 23 | }}} |
| | 24 | |
| | 25 | '''Oxidized Configuration''' |
| | 26 | |
| | 27 | Create the oxidized user. |
| | 28 | |
| | 29 | {{{ |
| | 30 | useradd -s /bin/bash -m oxidized |
| | 31 | }}} |
| | 32 | |
| | 33 | Continue with oxidized user. |
| | 34 | |
| | 35 | '''Setup Oxidized Service''' |
| | 36 | |
| | 37 | |
| | 38 | |
| | 39 | '''LibreNMS Integration''' |
| | 40 | |
| | 41 | |
| | 42 | |
| | 43 | '''Postfix Installation''' |
| | 44 | |
| | 45 | Postfix will be installed to have email notification of configuration changes. |
| | 46 | |
| | 47 | {{{ |
| | 48 | apt install postfix |
| | 49 | }}} |
| | 50 | |
| | 51 | '''Postfix Configuration''' |
| | 52 | |
| | 53 | |
| | 54 | |
| | 55 | |