Operating System - Linux
1827855 Members
2556 Online
109969 Solutions
New Discussion

Re: snmp error: subagent_pre_init: Invalid local port (No such file or directory)

 
SOLVED
Go to solution
Bill McNAMARA_1
Honored Contributor

snmp error: subagent_pre_init: Invalid local port (No such file or directory)

Hi,

I'm having trouble configuring/starting snmp agent on debian 2.4.20 on a rx2600 ia64 smp box.

Any quick guides on how 2 configure snmpd?

heres my snmpd.conf:

group MyROSystem v1 paranoid
group MyROSystem v2c paranoid
group MyROSystem usm paranoid
group MyROGroup v1 readonly
group MyROGroup v2c readonly
group MyROGroup usm readonly
group MyRWGroup v1 readwrite
group MyRWGroup v2c readwrite
group MyRWGroup usm readwrite
view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system
access MyROSystem "" any noauth exact system none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
syslocation Unknown (configure /etc/snmp/snmp.local.conf)
syscontact Root (configure /etc/snmp/snmp.local.conf)
proc mountd
proc ntalkd 4
proc sendmail 10 1
exec echotest /bin/echo hello world
disk / 10000
load 12 14 14
trapsess 192.168.0.195 public
trap2sink 192.168.0.195 public
master agentx
It works for me (tm)
2 REPLIES 2
U.SivaKumar_2
Honored Contributor
Solution

Re: snmp error: subagent_pre_init: Invalid local port (No such file or directory)

Hi,

Edit /etc/rc.d/init.d/snmp file. And check/put the below parameters in OPTIONS.

OPTIONS="-s -l /dev/null -P /var/run/snmpd -a"

And restart snmpd.

regards,

U.SivaKumar




Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: snmp error: subagent_pre_init: Invalid local port (No such file or directory)

If still problem comes.

#mkdir /var/agentx
#chown 700 /var/agentx

restart snmpd

regards,

U.SivaKumar
Innovations are made when conventions are broken