This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:systeme_mana:monitoring [2020/09/03 16:58] ghi [SNMP agent] |
wiki:systeme_mana:monitoring [2022/09/14 15:13] (current) cgu [Persistency on Update] |
||
---|---|---|---|
Line 24: | Line 24: | ||
By default, no configuration (''/etc/snmp/snmpd.conf'') is provided.\\ | By default, no configuration (''/etc/snmp/snmpd.conf'') is provided.\\ | ||
Create the folder ''/etc/snmp'' and the file ''/etc/snmp/snmpd.conf''.\\ | Create the folder ''/etc/snmp'' and the file ''/etc/snmp/snmpd.conf''.\\ | ||
- | Hereunder a valid basic configuration: | + | Here under a valid basic configuration: |
<code conf snmpd.conf> | <code conf snmpd.conf> | ||
Line 168: | Line 168: | ||
* A monitoring task can be added thanks to [[wiki:systeme_mana:monitoring#monit_daemon|Monit daemon]]. | * A monitoring task can be added thanks to [[wiki:systeme_mana:monitoring#monit_daemon|Monit daemon]]. | ||
+ | ==== Persistency on Update ==== | ||
+ | in order to make the configuration stay after an update you will need to create the file snmp.conf in the folder /etc/sysupgrade.d/ with the three following lines: | ||
+ | <code conf snmp.conf> | ||
+ | /etc/init.d/snmpd | ||
+ | /etc/rcU.d/S59snmpd | ||
+ | /etc/rcK.d/K59snmpd | ||
+ | </code> | ||
+ | |||
===== Supported MIBs ===== | ===== Supported MIBs ===== | ||