doc:appunti:linux:sa:snmp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
doc:appunti:linux:sa:snmp [2016/02/12 11:55] – [Esempi configurazione] niccolo | doc:appunti:linux:sa:snmp [2020/03/16 18:49] – [SNMP con systemd su Debian 9] niccolo | ||
---|---|---|---|
Line 21: | Line 21: | ||
.1.3.6.1.2.1.31.1.1.1.1.2 | .1.3.6.1.2.1.31.1.1.1.1.2 | ||
- | # snmptranslate .1.3.6.1.2.1.31.1.1.1.1.2 | + | # snmptranslate |
IF-MIB:: | IF-MIB:: | ||
Line 109: | Line 109: | ||
Come si vede il valore è disponibile sotto un MIB differente, la radice in questo caso è .1.3.6.1.4.1.2021.8.1. (UCD-SNMP-MIB:: | Come si vede il valore è disponibile sotto un MIB differente, la radice in questo caso è .1.3.6.1.4.1.2021.8.1. (UCD-SNMP-MIB:: | ||
- | Con la nuova sintassi di **'' | + | Con la nuova sintassi di **'' |
< | < | ||
Line 315: | Line 315: | ||
Unscaled[temp1]: | Unscaled[temp1]: | ||
YLegend[temp1]: | YLegend[temp1]: | ||
- | ShortLegend[temp1]: | + | ShortLegend[temp1]: |
- | Legend1[temp1]: | + | Legend1[temp1]: |
Legend2[temp1]: | Legend2[temp1]: | ||
- | LegendI[temp1]: | + | LegendI[temp1]: |
LegendO[temp1]: | LegendO[temp1]: | ||
</ | </ | ||
+ | |||
+ | It seems that MRTG does not support UTF-8 (even version 2.17.4), so the configuration file should be encoded in ISO_8859-1. Special characters used in HTML output should be encoded properly. | ||
See this article: [[http:// | See this article: [[http:// | ||
Line 400: | Line 402: | ||
rocommunity | rocommunity | ||
rocommunity6 public default | rocommunity6 public default | ||
+ | </ | ||
+ | |||
+ | ===== SNMP con systemd su Debian 9 e seguenti ===== | ||
+ | |||
+ | **Debian 9 Stretch** utilizza il sistema di init **systemd** invece del vecchio // | ||
+ | |||
+ | La risoluzione degli OIDs nella loro descrizione testuale richiede sempre l' | ||
+ | |||
+ | < | ||
+ | #mibs : | ||
+ | </ | ||
+ | |||
+ | Eventuali personalizzazioni dei parametri di snmpd non si fanno più con la variabile d' | ||
+ | |||
+ | Ecco ad esempio come modificare la riga **ExecStart** per diminuire il logging e sopprimere tutte le righe **Connection from UDP** che riempiono il syslog (nota: si modifica **%%-Lsd%%** in **%%-LSwd%%**): | ||
+ | |||
+ | < | ||
+ | ExecStart=/ | ||
+ | -I -smux, | ||
+ | </ | ||
+ | |||
+ | In alternativa a **sostituire completamente il file unit** (cioè il file / | ||
+ | |||
+ | < | ||
+ | [Service] | ||
+ | Environment=" | ||
+ | ExecStart= | ||
+ | ExecStart=/ | ||
+ | -I -smux, | ||
</ | </ | ||
doc/appunti/linux/sa/snmp.txt · Last modified: 2020/04/01 11:40 by niccolo