You are not logged in.

#1 2006-10-12 19:37:37

alexmat
Member
Registered: 2004-12-31
Posts: 100

snmpd config location

I'm wondering where to put the config file for snmpd?

If I run

snmpd -Dread_config -H 2>&1 | grep "Reading" | sort -u

I get back

read_config: Reading configuration /var/net-snmp/snmpd.conf

and looking at that file I see a explicit warning not to edit it or use it for configuring snmpd.

So I just created /etc/snmp/snmpd.conf and edited the init script to look for that config file:

/usr/sbin/snmpd -c /etc/snmp/snmpd.conf

Is there a cleaner way to do this? Because I know my changes to the init script will be overwritten if snmp is updated via pacman. Otherwise, snmpd is working well.

Offline

#2 2006-10-20 07:31:12

TheGrudge
Member
Registered: 2006-06-15
Posts: 206
Website

Re: snmpd config location

same question here: Were is the config file for snmpd??


digiKam developer - www.digikam.org

Offline

#3 2008-10-21 10:28:41

pere
Member
Registered: 2008-09-11
Posts: 23

Re: snmpd config location

snmpconf

this command allows you to set snmpd.conf snmptrapd.conf and snmp.conf

Offline

#4 2009-09-12 13:15:45

opotonil
Member
Registered: 2009-09-12
Posts: 34

Re: snmpd config location

Hi.

You can create a soft link:

# ls -l /etc/snmp/snmpd.conf
lrwxrwxrwx 1 root root 26 sep 12 15:01 /etc/snmp/snmpd.conf -> /usr/share/snmp/snmpd.conf

Bye.

Offline

Board footer

Powered by FluxBB