Changes between Version 8 and Version 9 of Nmm2022/Agenda/oxidize
- Timestamp:
- Jun 29, 2022, 10:55:52 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Nmm2022/Agenda/oxidize
v8 v9 6 6 '''Requirements:''' 7 7 8 Ubuntu 20.04 Server with LibreNMS installed (Use the provided VM) 8 Ubuntu 20.04 Server with LibreNMS installed (Use the provided VM)[[BR]] 9 9 10 Gmail account with 2-Step Verification ''On''. 10 11 … … 39 40 Click 'Create API Token'. 40 41 42 Login to CLI as libreNMS user and continue. 43 44 {{{ 45 sudo su - librenms 46 lnms config:set oxidized.enabled true 47 lnms config:set oxidized.url http://127.0.0.1:8888 48 lnms config:set oxidized.features.versioning true 49 lnms config:set oxidized.group_support true 50 lnms config:set oxidized.default_group f 51 }}} 52 53 41 54 '''Oxidized Configuration''' 42 55 … … 50 63 }}} 51 64 52 Change the configuration file by adding / updating the following information. Replace '''oxidized for''', '''cisco''', '''123''' , '''09db454fb0ec6927c777e214c2f82d60''' (LibreNMS token value) with your corresponding values.65 Change the configuration file by adding / updating the following information. Replace '''oxidized''', '''cisco''' (telnet/ssh username), '''123''' (telnet/ssh password), '''09db454fb0ec6927c777e214c2f82d60''' (LibreNMS token value) with your corresponding values. ''Interval'' value (in seconds) is the ''auto refresh interval'' (you can change that one). 53 66 54 67 {{{ … … 109 122 email_output: 110 123 type: exec 111 events: [post_store , node_fail]112 cmd: '/home/oxidized/.config/oxidized/oxidized-report-git-commits -s "Oxidized updates for ${OX_NODE_NAME}" -r oxidized for@gmail.com'124 events: [post_store] 125 cmd: '/home/oxidized/.config/oxidized/oxidized-report-git-commits -s "Oxidized updates for ${OX_NODE_NAME}" -r oxidized@gmail.com' 113 126 async: true 114 127 timeout: 120 … … 144 157 }}} 145 158 159 Login to LibreNMS GUI by browsing 10.1.5.10 in web. 160 161 Oxidized can be accessed as in the following.[[BR]] 162 163 [[Image(oxidised librenms.png, 600px)]][[BR]] 164 165 A device configuration can be accessed by clicking the icon (see the below red arrow). [[BR]] 166 167 [[Image(librenms oxidized.png, 1000px)]][[BR]] 168 169 146 170 '''Postfix Installation''' 147 171 … … 165 189 166 190 Generate app password by selecting custom option as follows and note down the password. [[BR]] 191 167 192 [[Image(select app.png, 600px)]][[BR]] 168 193 … … 205 230 }}} 206 231 207 {{{ 208 [smtp.gmail.com]:587 oxidizedfor@gmail.com:gecqeehdvtrrsed5 209 }}} 210 232 Add the following content to /etc/postfix/sasl_passwd while changing '''oxidized''' and '''gecqeehdvtrrsed5''' (app password). 233 {{{ 234 [smtp.gmail.com]:587 oxidized@gmail.com:gecqeehdvtrrsed5 235 }}} 236 237 Close the above file and continue. 211 238 {{{ 212 239 chown root:root /etc/postfix/sasl_passwd … … 216 243 }}} 217 244 218 Check email sending. Replace '''oxidizedfor''' accordingly. 219 {{{ 220 echo "Test Postfix Gmail SMTP Relay" | mail -s "Postfix Gmail SMTP Relay" oxidizedfor@gmail.com 221 }}} 222 245 Check email sending. Replace '''oxidized''' accordingly. 246 {{{ 247 echo "Test Postfix Gmail SMTP Relay" | mail -s "Postfix Gmail SMTP Relay" oxidized@gmail.com 248 }}} 249 sed 250 An email will be sent to the Gmail account after a saved configuration change at each time Oxidized get refreshed.