Changes between Version 8 and Version 9 of Nmm2022/Agenda/oxidize


Ignore:
Timestamp:
Jun 29, 2022, 10:55:52 AM (2 years ago)
Author:
dushmantha
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Nmm2022/Agenda/oxidize

    v8 v9  
    66'''Requirements:'''
    77
    8 Ubuntu 20.04 Server with LibreNMS installed (Use the provided VM)
     8Ubuntu 20.04 Server with LibreNMS installed (Use the provided VM)[[BR]]
     9
    910Gmail account with 2-Step Verification ''On''.
    1011
     
    3940Click 'Create API Token'.
    4041
     42Login to CLI as libreNMS user and continue.
     43
     44{{{
     45sudo su - librenms
     46lnms config:set oxidized.enabled true
     47lnms config:set oxidized.url http://127.0.0.1:8888
     48lnms config:set oxidized.features.versioning true
     49lnms config:set oxidized.group_support true
     50lnms config:set oxidized.default_group f
     51}}}
     52
     53
    4154'''Oxidized Configuration'''
    4255
     
    5063}}}
    5164
    52 Change the configuration file by adding / updating the following information. Replace '''oxidizedfor''', '''cisco''', '''123''' , '''09db454fb0ec6927c777e214c2f82d60''' (LibreNMS token  value) with your corresponding values.
     65Change 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).
    5366 
    5467{{{
     
    109122  email_output:
    110123    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 oxidizedfor@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'
    113126    async: true
    114127    timeout: 120
     
    144157}}}
    145158
     159Login to LibreNMS GUI by browsing 10.1.5.10 in web.
     160
     161Oxidized can be accessed as in the following.[[BR]]
     162
     163[[Image(oxidised librenms.png, 600px)]][[BR]]
     164
     165A 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
    146170'''Postfix Installation'''
    147171
     
    165189
    166190Generate app password by selecting custom option as follows and note down the password. [[BR]]
     191
    167192[[Image(select app.png, 600px)]][[BR]]
    168193
     
    205230}}}
    206231
    207 {{{
    208 [smtp.gmail.com]:587 oxidizedfor@gmail.com:gecqeehdvtrrsed5
    209 }}}
    210 
     232Add 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
     237Close the above file and continue.
    211238{{{
    212239chown root:root /etc/postfix/sasl_passwd
     
    216243}}}
    217244
    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 
     245Check email sending. Replace '''oxidized''' accordingly.
     246{{{
     247echo "Test Postfix Gmail SMTP Relay" | mail -s "Postfix Gmail SMTP Relay" oxidized@gmail.com
     248}}}
     249sed
     250An email will be sent to the Gmail account after a saved configuration change at each time Oxidized get refreshed.