This is a discussion on Re: agents with net-snmp 5.4 - SNMP ; Dave, before try to change the /etc/opt/FERMA/agents.cfg, I have a question about debug traces config read : Usually, I use two confs files /etc/opt/FERMA/agents.cfg and = /etc/snmp/snmpd.conf. The debug traces that i send you seem to show that snmpd.conf file ...
before try to change the /etc/opt/FERMA/agents.cfg,
I have a question about debug traces config read :
Usually, I use two confs files /etc/opt/FERMA/agents.cfg and =
The debug traces that i send you seem to show that snmpd.conf file is =
not found because the file is loocked for in /usr/local/etc/snmp and
not in /etc/snmp
You are sur that the problem is not due to that ?
my /etc/snmp/snmpd.conf :
# Ferma Agent CHECKSYS
proxy -v 1 -c netman localhost:7075 .18.104.22.168.4.1.2322.214.171.124
my /etc/opt/FERMA/agents.cfg file:
com2sec lrw localhost netman
group lrwgp v1 lrw
view rwview included .126.96.36.199
access lrwgp "" any noauth exact rwview rwview none
Dave Shield a =E9crit :
> On 21/05/07, Sandrine MONOT
>> /usr/local/bin/net-snmp-config --configure-options
>> '--disable-shared' '--disable-debugging' ....
> Yup - that would explain why you weren't getting any debug output!
> [Good catch, Thomas]
>> after build again the agent,
>> I have the following result, when i launch it :
>> /opt/FERMA/sbin/agtcks -c /etc/opt/FERMA/agent.cfg -f -Le -Dread_config
>> -d localhost:7075
>> Reading optional config file: "/etc/opt/FERMA/agent.cfg"
>> read_config: read_config: Reading configuration /etc/opt/FERMA/agent.cfg
>> Reading configuration /etc/opt/FERMA/agent.cfg
>> read_config: read_config: /etc/opt/FERMA/agent.cfg:6 examining: com2sec
>> lrw localhost netman
>> /etc/opt/FERMA/agent.cfg:6 examining: com2sec lrw localhost
>> read_config: read_config: /etc/opt/FERMA/agent.cfg:11 examining: group
>> lrwgp v1 lrw
>> /etc/opt/FERMA/agent.cfg:11 examining: group lrwgp v1 lrw
>> read_config: read_config: /etc/opt/FERMA/agent.cfg:23 examining: view
>> rwview included .188.8.131.52
>> /etc/opt/FERMA/agent.cfg:23 examining: view rwview
>> included .184.108.40.206
>> read_config: read_config: /etc/opt/FERMA/agent.cfg:30 examining: access
>> lrwgp "" any noauth exact rwview rwvi
>> ew none
>> /etc/opt/FERMA/agent.cfg:30 examining: access lrwgp ""
>> any noauth exact rwview rwview none
> Now we're getting somewhere.
> You've said on several occasions that you are using a config file
> that starts
> com2sec nro default public
> com2sec nrw default netman
> group nrogp v1 nro
> group nrogp v2c nro
> group nrwgp v1 nrw
> group nrwgp v2c nrw
> [etc, etc, etc]
> However the debug output aboce seems to show that the config file being
> read in actually contains:
> com2sec lrw localhost netman
> group lrwgp v1 lrw
> view rwview included .220.127.116.11
> access lrwgp "" any noauth exact rwview rwview none
> and nothing else (apart perhaps from assorted comments).
> So it's not too surprising that using the community string "public"
> doesn't work.
> Please take a good look at the file /etc/opt/FERMA/agent.cfg
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
Net-snmp-coders mailing list