Linux Snmp: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „=Install= *apt-get install snmpd Changes in /etc/snmp/snmpd.conf <pre> agentaddress 0.0.0.0,[::1] view systemonly included .1.3.6.1.2.1 sysLocation vh…“)
 
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 3: Zeile 3:
 
Changes in /etc/snmp/snmpd.conf
 
Changes in /etc/snmp/snmpd.conf
 
<pre>
 
<pre>
agentaddress  0.0.0.0,[::1]
+
#agentaddress  127.0.0.1,[::1]
 +
agentaddress  0.0.0.0
 +
#view  systemonly  included  .1.3.6.1.2.1.1
 
view  systemonly  included  .1.3.6.1.2.1
 
view  systemonly  included  .1.3.6.1.2.1
sysLocation    vhost on peter
+
sysLocation    Schulungsraum
 
sysContact    Technik technik@xinux.de
 
sysContact    Technik technik@xinux.de
 
sysServices    72
 
sysServices    72
 +
rocommunity  P@ssw0rd default -V systemonly
 +
#rocommunity6 public default -V systemonly
 
</pre>
 
</pre>
 +
 
=Restart=
 
=Restart=
*systemd restart snmpd
+
*systemctl restart snmpd

Aktuelle Version vom 10. Februar 2023, 07:32 Uhr

Install

  • apt-get install snmpd

Changes in /etc/snmp/snmpd.conf

#agentaddress  127.0.0.1,[::1]
agentaddress  0.0.0.0
#view   systemonly  included   .1.3.6.1.2.1.1
view   systemonly  included   .1.3.6.1.2.1
sysLocation    Schulungsraum
sysContact     Technik technik@xinux.de
sysServices    72
rocommunity  P@ssw0rd default -V systemonly
#rocommunity6 public default -V systemonly

Restart

  • systemctl restart snmpd