Ciao, prima discussione per me su questo forum quindi perdonate eventuali errori o strafalcioni.
Ho la versione 16.04 di Xubuntu sul mio notebook su cui ho istallato il pacchetto "SNMP" tramite Synaptic con i pacchetti che mi ha evidenziato lui ma quando provo a fare lo start mi restituisce questo errore:
[....] Restarting snmpd (via systemctl): snmpd.serviceJob for snmpd.service failed because the control process exited with error code. See "systemctl status snmpd.service" and "journalctl -xe" for details.
failed!
Queste le modifiche che ho letto in rete che andrebbero apportate, per la mia versione di Xubuntu :
- nel file /etc/snmp/snmp.conf ho commentato la riga
mibs:
- nel file /etc/snmp/snmpd.conf ho sovrascritto tutto inserendo questo blocco di righe:
smuxsocket 127.0.0.1
rocommunity setMeHere
com2sec local localhost public
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
view all included .1 80
access MyRWGroup "" any noauth exact all all none
com2sec notConfigUser default mrtg
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
view systemview included .1 80
access notConfigGroup "" any noauth exact systemview none none
syslocation Athens Greece
syscontact Ubuntu.gr <info@ubuntu.gr>
- il file /etc/default/snmpd l'ho popolato con queste righe:
# This file controls the activity of snmpd
# Don't load any MIBs by default.
# You might comment this lines once you have the MIBs downloaded.
export MIBDIRS=/usr/share/snmp/mibs
# snmpd control (yes means start daemon).
SNMPDRUN=yes
# snmpd options (use syslog, close stdin/out/err).
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid'
SNMPDOPTS=’-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid’
# snmptrapd control (yes means start daemon). As of net-snmp version
# 5.0, master agentx support must be enabled in snmpd before snmptrapd
# can be run. See snmpd.conf(5) for how to do this.
TRAPDRUN=no
# snmptrapd options (use syslog).
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
# create symlink on Debian legacy location to official RFC path
SNMPDCOMPAT=yes
- infine, ho restartato il servizio col comando:
<prompt># service snmpd start
Qualcuno può darmi un aiuto ? grazie mille.
SNMP su XUBUNTU 16.04: fallisce lo start del servizio
-
- Prode Principiante
- Messaggi: 2
- Iscrizione: martedì 22 maggio 2018, 11:19
- Desktop: plasma
- Distribuzione: Ubuntu 20.04 LTS
- Sesso: Maschile
SNMP su XUBUNTU 16.04: fallisce lo start del servizio
"Improvvisare, adattarsi e raggiungere lo scopo."
-
- Prode Principiante
- Messaggi: 2
- Iscrizione: martedì 22 maggio 2018, 11:19
- Desktop: plasma
- Distribuzione: Ubuntu 20.04 LTS
- Sesso: Maschile
Re: SNMP su XUBUNTU 16.04: fallisce lo start del servizio
Ho risolto. Ho disinstallato tramite 'apt' e installato nuovamente sempre tramite 'apt' ed è andato. Si vede che col gestore pacchetti ha istallato (o non ha istallato) qualcosa che non andava bene. Ciao a tutti.
"Improvvisare, adattarsi e raggiungere lo scopo."
Chi c’è in linea
Visualizzano questa sezione: 0 utenti iscritti e 8 ospiti