Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
centos:snmp-installation_und_konfiguration [23.01.2009 13:03. ] – neu angelegt (aus dem Ursprungsdokument übernommen) django | centos:snmp-installation_und_konfiguration [28.04.2009 12:45. ] (aktuell) – michi | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== SNMP ====== | ||
+ | SNMP((Simple Network Management Protocol, aka Security is Not My Problem)) ist ein, von der IETF entwickeltes, | ||
+ | ===== Installation ===== | ||
+ | Falls noch nicht in unserem System vorhanden, installieren wir folgende Pakete: | ||
+ | # yum install net-snmp net-snmp-utils php-common php-snmp | ||
+ | ===== Konfiguration ===== | ||
+ | Für die Kommunikation mit unseren LINUX-Rechnern passen wir die **snmp**-Konfigurationsdatei // | ||
+ | < | ||
+ | ... | ||
+ | #### | ||
+ | # First, map the community name " | ||
+ | |||
+ | # | ||
+ | #com2sec notConfigUser | ||
+ | com2sec local localhost private | ||
+ | com2sec mynetwork 192.168.100.0/ | ||
+ | |||
+ | #### | ||
+ | # Second, map the security name into a group name: | ||
+ | |||
+ | # | ||
+ | # | ||
+ | # | ||
+ | group MyROGroup v1 mynetwork | ||
+ | group MyROGroup v2c mynetwork | ||
+ | group MyROGroup v1 local | ||
+ | group MyROGroup v2c local | ||
+ | |||
+ | #### | ||
+ | # Third, create a view for us to let the group have rights to: | ||
+ | |||
+ | # Make at least snmpwalk -v 1 localhost -c public system fast again. | ||
+ | # | ||
+ | #view systemview | ||
+ | #view systemview | ||
+ | view all included .1 80 | ||
+ | |||
+ | #### | ||
+ | # Finally, grant the group read-only access to the systemview view. | ||
+ | |||
+ | # | ||
+ | # | ||
+ | access MyROGroup "" | ||
+ | access MyRWGroup "" | ||
+ | ===== Serverstart ===== | ||
+ | Der erste Start unseres Daemons erfolgt dem gewohnten Syntaxschema: | ||
+ | # service snmpd start | ||
+ | snmpd starten: | ||
+ | Im syslog wird der erfolgreiche Start entsprechend quittiert: | ||
+ | Jan 10 14:12:38 nss snmpd[27826]: | ||
+ | Jan 10 14:12:38 nss snmpd[27826]: | ||
+ | Damit der snmp-Daemon **snmpd** automatisch bei jedem Systemstart startet, kann die Einrichtung eines Start-Scriptes über folgenden Befehl erreicht werden: | ||
+ | # chkconfig snmpd on | ||
+ | Ein Überprüfung ob der Dienst (Daemon) sshd wirklich bei jedem Systemstart automatisch mit gestartet wird, kann durch folgenden Befehl erreicht werden: | ||
+ | # chkconfig --list | grep snmpd | ||
+ | |