Changes between Version 4 and Version 5 of Nmm2022/Agenda/oxidize
- Timestamp:
- Jun 27, 2022, 11:52:37 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Nmm2022/Agenda/oxidize
v4 v5 7 7 8 8 Ubuntu 20.04 Server with LibreNMS installed (Use the provided VM) 9 Gmail account with 2-Step Verification ''On''. 9 10 10 11 '''Oxidized Installation''' … … 44 45 }}} 45 46 47 Start oxidised service 48 49 {{{ 50 systemctl start oxidized 51 }}} 52 53 Restart oxidised service 54 55 {{{ 56 systemctl restart oxidized 57 }}} 58 59 View status of oxidised service 60 61 {{{ 62 systemctl status oxidized 63 }}} 64 46 65 '''LibreNMS Integration''' 47 66 48 Create Token 67 ''Create Token'' 49 68 50 69 Login to LibreNMS web GUI. … … 53 72 [[Image(librenms api settings.png, 600px)]][[BR]] 54 73 55 Click on 'Create API access token'. 74 Click on 'Create API access token'.[[BR]] 56 75 76 [[Image(librenms create token.png, 600px)]][[BR]] 77 78 Click 'Create API Token'. 57 79 58 80 '''Postfix Installation''' … … 64 86 }}} 65 87 88 Select ''Internet Site'' to enable Postfix to sent and receive mails and press ''Enter'' to proceed. 89 90 Put a suitable ''domain name'' for ''System mail name'' and proceed. 91 66 92 '''Postfix Configuration''' 93 94 Here Postfix will be configured to send email to your Gmail account. 95 96 {{{ 97 vim /etc/postfix/main.cf 98 }}} 99 100 {{{ 101 smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem 102 smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key 103 smtpd_tls_security_level=may 104 105 smtp_tls_CApath=/etc/ssl/certs 106 smtp_tls_security_level=may 107 smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache 108 smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt 109 110 smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination 111 myhostname = librenms 112 alias_maps = hash:/etc/aliases 113 alias_database = hash:/etc/aliases 114 myorigin = /etc/mailname 115 mydestination = $myhostname, librenms-demo.com, librenms, localhost.localdomain, localhost 116 relayhost = [smtp.gmail.com]:587 117 mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 118 mailbox_size_limit = 0 119 recipient_delimiter = + 120 inet_interfaces = all 121 inet_protocols = all 122 smtp_sasl_auth_enable = yes 123 smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd 124 smtp_sasl_security_options = noanonymous 125 }}} 67 126 68 127 69 128 70 129 130