Dave, Thomas,


/usr/local/bin/net-snmp-config --configure-options
'--disable-shared' '--disable-debugging' '--with-sys-location=3DParis' =

'--with-logfile=3D/var/opt/FERMA/logs/agtchecksys.log' =

'--with-persistent-directory=3D/var/opt/FERMA' =

'--with-sys-contact=3DDT-PLTF-ADMIN@ferma.fr' '--disable-privacy' =

'--enable-static' '--enable-mini-agent' '--with-out-mib-modules=3DmibII =

snmpv3mibs snmpv3/snmpEngine snmpv3/snmpMPDStats snmpv3/usmStats =

snmpv3/usmUser snmpv3 ucd_snmp notification agentx/master =

agentx/subagent agentx examples/ucdDemoPublic examples/example ' =

'--with-mib-modules=3DmibII/vacm_vars snmp-tc checksys'

I set enable-debugging just after call configure ,

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
No log handling enabled - turning on stderr logging
trace: main(): snmpd.c, 451:
signal: registering SIGTERM signal handler
trace: main(): snmpd.c, 455:
signal: registering SIGINT signal handler
trace: main(): snmpd.c, 459:
signal: registering SIGHUP signal handler
trace: main(): snmpd.c, 463:
signal: registering SIGUSR1 signal handler
trace: main(): snmpd.c, 467:
signal: registering SIGPIPE signal handler
trace: netsnmp_ds_set_boolean(): default_store.c, 205:
netsnmp_ds_set_boolean: Setting APP:3 =3D 0/False
trace: netsnmp_ds_set_int(): default_store.c, 257:
netsnmp_ds_set_int: Setting APP:4 =3D -1
trace: netsnmp_ds_set_int(): default_store.c, 257:
netsnmp_ds_set_int: Setting APP:5 =3D -1
trace: netsnmp_ds_set_int(): default_store.c, 257:
netsnmp_ds_set_int: Setting APP:10 =3D 5
trace: netsnmp_ds_set_string(): default_store.c, 283:
netsnmp_ds_set_string: Setting LIB:6 =3D "snmpd"
trace: netsnmp_ds_set_string(): default_store.c, 283:
netsnmp_ds_set_string: Setting LIB:5 =3D "/etc/opt/FERMA/agent.cfg"
registered debug token read_config, 1
registered debug token read_config, 1
read_config: read_config: reading premib configuration tokens
reading premib configuration tokens
read_config: read_config: config path used for =

snmpd:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/home/s=
monot
/.snmp (persistent path:/var/opt/FERMA)
config path used for =

snmpd:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/home/s=
monot/.snmp =

(persistent path:/v
ar/opt/FERMA)
read_config: read_config: /usr/local/etc/snmp/snmpd.conf: No such file =

or directory
/usr/local/etc/snmp/snmpd.conf: No such file or directory
read_config: read_config: /usr/local/etc/snmp/snmpd.local.conf: No such =

file or directory
/usr/local/etc/snmp/snmpd.local.conf: No such file or directory
read_config: read_config: /usr/local/share/snmp/snmpd.conf: No such file =

or directory
/usr/local/share/snmp/snmpd.conf: No such file or directory
read_config: read_config: /usr/local/share/snmp/snmpd.local.conf: No =

such file or directory
/usr/local/share/snmp/snmpd.local.conf: No such file or directory
read_config: read_config: /usr/local/lib/snmp/snmpd.conf: No such file =

or directory
/usr/local/lib/snmp/snmpd.conf: No such file or directory
read_config: read_config: /usr/local/lib/snmp/snmpd.local.conf: No such =

file or directory
/usr/local/lib/snmp/snmpd.local.conf: No such file or directory
read_config: read_config: /home/smonot/.snmp/snmpd.conf: No such file or =

directory
/home/smonot/.snmp/snmpd.conf: No such file or directory
read_config: read_config: /home/smonot/.snmp/snmpd.local.conf: No such =

file or directory
/home/smonot/.snmp/snmpd.local.conf: No such file or directory
read_config: read_config: config path used for snmpd:/var/opt/FERMA =

(persistent path:/var/opt/FERMA)
config path used for snmpd:/var/opt/FERMA (persistent path:/var/opt/FERMA)
read_config: read_config: Reading configuration /var/opt/FERMA/snmpd.conf
Reading configuration /var/opt/FERMA/snmpd.conf
read_config: read_config: /var/opt/FERMA/snmpd.conf:32 examining: =

engineBoots 17
/var/opt/FERMA/snmpd.conf:32 examining: engineBoots 17
read_config: read_config: /var/opt/FERMA/snmpd.conf:33 examining: =

oldEngineID 0x80001f8880ba43a474f9014a46
/var/opt/FERMA/snmpd.conf:33 examining: oldEngineID =

0x80001f8880ba43a474f9014a46
read_config: read_config: Found a parser. Calling it: oldEngineID / =

0x80001f8880ba43a474f9014a46
Found a parser. Calling it: oldEngineID / 0x80001f8880ba43a474f9014a46
read_config: read_config: /var/opt/FERMA/snmpd.local.conf: No such file =

or directory
/var/opt/FERMA/snmpd.local.conf: No such file or directory
read_config: read_config: config path used for =

snmp:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/home/sm=
onot/
..snmp (persistent path:/var/opt/FERMA)
config path used for =

snmp:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/home/sm=
onot/.snmp =

(persistent path:/va
r/opt/FERMA)
read_config: read_config: /usr/local/etc/snmp/snmp.conf: No such file or =

directory
/usr/local/etc/snmp/snmp.conf: No such file or directory
read_config: read_config: /usr/local/etc/snmp/snmp.local.conf: No such =

file or directory
/usr/local/etc/snmp/snmp.local.conf: No such file or directory
read_config: read_config: /usr/local/share/snmp/snmp.conf: No such file =

or directory
/usr/local/share/snmp/snmp.conf: No such file or directory
read_config: read_config: /usr/local/share/snmp/snmp.local.conf: No such =

file or directory
/usr/local/share/snmp/snmp.local.conf: No such file or directory
read_config: read_config: /usr/local/lib/snmp/snmp.conf: No such file or =

directory
/usr/local/lib/snmp/snmp.conf: No such file or directory
read_config: read_config: /usr/local/lib/snmp/snmp.local.conf: No such =

file or directory
/usr/local/lib/snmp/snmp.local.conf: No such file or directory
read_config: read_config: /home/smonot/.snmp/snmp.conf: No such file or =

directory
/home/smonot/.snmp/snmp.conf: No such file or directory
read_config: read_config: /home/smonot/.snmp/snmp.local.conf: No such =

file or directory
/home/smonot/.snmp/snmp.local.conf: No such file or directory
read_config: read_config: config path used for snmp:/var/opt/FERMA =

(persistent path:/var/opt/FERMA)
config path used for snmp:/var/opt/FERMA (persistent path:/var/opt/FERMA)
read_config: read_config: /var/opt/FERMA/snmp.conf: No such file or =

directory
/var/opt/FERMA/snmp.conf: No such file or directory
read_config: read_config: /var/opt/FERMA/snmp.local.conf: No such file =

or directory
/var/opt/FERMA/snmp.local.conf: No such file or directory
read_configs_optional: read_configs_optional: reading optional =

configuration tokens for snmpd
reading optional configuration tokens for snmpd
read_config: read_config: Reading optional config file: =

"/etc/opt/FERMA/agent.cfg"
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 =

netman
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 .1.3.6.1
/etc/opt/FERMA/agent.cfg:23 examining: view rwview =

included .1.3.6.1
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
read_config: read_config: reading normal configuration tokens
reading normal configuration tokens
read_config: read_config: config path used for =

snmpd:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/home/s=
monot
/.snmp (persistent path:/var/opt/FERMA)
config path used for =

snmpd:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/home/s=
monot/.snmp =

(persistent path:/v
ar/opt/FERMA)
read_config: read_config: /usr/local/etc/snmp/snmpd.conf: No such file =

or directory
/usr/local/etc/snmp/snmpd.conf: No such file or directory
read_config: read_config: /usr/local/etc/snmp/snmpd.local.conf: No such =

file or directory
/usr/local/etc/snmp/snmpd.local.conf: No such file or directory
read_config: read_config: /usr/local/share/snmp/snmpd.conf: No such file =

or directory
/usr/local/share/snmp/snmpd.conf: No such file or directory
read_config: read_config: /usr/local/share/snmp/snmpd.local.conf: No =

such file or directory
/usr/local/share/snmp/snmpd.local.conf: No such file or directory
read_config: read_config: /usr/local/lib/snmp/snmpd.conf: No such file =

or directory
/usr/local/lib/snmp/snmpd.conf: No such file or directory
read_config: read_config: /usr/local/lib/snmp/snmpd.local.conf: No such =

file or directory
/usr/local/lib/snmp/snmpd.local.conf: No such file or directory
read_config: read_config: /home/smonot/.snmp/snmpd.conf: No such file or =

directory
/home/smonot/.snmp/snmpd.conf: No such file or directory
read_config: read_config: /home/smonot/.snmp/snmpd.local.conf: No such =

file or directory
/home/smonot/.snmp/snmpd.local.conf: No such file or directory
read_config: read_config: config path used for snmpd:/var/opt/FERMA =

(persistent path:/var/opt/FERMA)
config path used for snmpd:/var/opt/FERMA (persistent path:/var/opt/FERMA)
read_config: read_config: Reading configuration /var/opt/FERMA/snmpd.conf
Reading configuration /var/opt/FERMA/snmpd.conf
read_config: read_config: /var/opt/FERMA/snmpd.conf:32 examining: =

engineBoots 17
/var/opt/FERMA/snmpd.conf:32 examining: engineBoots 17
read_config: read_config: Found a parser. Calling it: engineBoots / 17
Found a parser. Calling it: engineBoots / 17
read_config: read_config: /var/opt/FERMA/snmpd.conf:33 examining: =

oldEngineID 0x80001f8880ba43a474f9014a46
/var/opt/FERMA/snmpd.conf:33 examining: oldEngineID =

0x80001f8880ba43a474f9014a46
read_config: read_config: /var/opt/FERMA/snmpd.local.conf: No such file =

or directory
/var/opt/FERMA/snmpd.local.conf: No such file or directory
read_config: read_config: config path used for =

snmp:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/home/sm=
onot/
..snmp (persistent path:/var/opt/FERMA)
config path used for =

snmp:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/home/sm=
onot/.snmp =

(persistent path:/va
r/opt/FERMA)
read_config: read_config: /usr/local/etc/snmp/snmp.conf: No such file or =

directory
/usr/local/etc/snmp/snmp.conf: No such file or directory
read_config: read_config: /usr/local/etc/snmp/snmp.local.conf: No such =

file or directory
/usr/local/etc/snmp/snmp.local.conf: No such file or directory
read_config: read_config: /usr/local/share/snmp/snmp.conf: No such file =

or directory
/usr/local/share/snmp/snmp.conf: No such file or directory
read_config: read_config: /usr/local/share/snmp/snmp.local.conf: No such =

file or directory
/usr/local/share/snmp/snmp.local.conf: No such file or directory
read_config: read_config: /usr/local/lib/snmp/snmp.conf: No such file or =

directory
/usr/local/lib/snmp/snmp.conf: No such file or directory
read_config: read_config: /usr/local/lib/snmp/snmp.local.conf: No such =

file or directory
/usr/local/lib/snmp/snmp.local.conf: No such file or directory
read_config: read_config: /home/smonot/.snmp/snmp.conf: No such file or =

directory
/home/smonot/.snmp/snmp.conf: No such file or directory
read_config: read_config: /home/smonot/.snmp/snmp.local.conf: No such =

file or directory
/home/smonot/.snmp/snmp.local.conf: No such file or directory
read_config: read_config: config path used for snmp:/var/opt/FERMA =

(persistent path:/var/opt/FERMA)
config path used for snmp:/var/opt/FERMA (persistent path:/var/opt/FERMA)
read_config: read_config: /var/opt/FERMA/snmp.conf: No such file or =

directory
/var/opt/FERMA/snmp.conf: No such file or directory
read_config: read_config: /var/opt/FERMA/snmp.local.conf: No such file =

or directory
/var/opt/FERMA/snmp.local.conf: No such file or directory
read_configs_optional: read_configs_optional: reading optional =

configuration tokens for snmpd
reading optional configuration tokens for snmpd
read_config: read_config: Reading optional config file: =

"/etc/opt/FERMA/agent.cfg"
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 =

netman
read_config: read_config: Found a parser. Calling it: com2sec / =

lrw localhost netman
Found a parser. Calling it: com2sec / lrw localhost netman
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: Found a parser. Calling it: group / lrwgp =

v1 lrw
Found a parser. Calling it: group / lrwgp v1 lrw
read_config: read_config: /etc/opt/FERMA/agent.cfg:23 examining: view =

rwview included .1.3.6.1
/etc/opt/FERMA/agent.cfg:23 examining: view rwview =

included .1.3.6.1
read_config: read_config: Found a parser. Calling it: view / =

rwview included .1.3.6.1
Found a parser. Calling it: view / rwview included .1.3.6.1
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
read_config: read_config: Found a parser. Calling it: access / =

lrwgp "" any noauth exact rwview rwview none
Found a parser. Calling it: access / lrwgp "" any =

noauth exact rwview rwview none
read_config: read_config: storing: #
# net-snmp (or ucd-snmp) persistent data file.
#
################################################## ##########################
# STOP STOP STOP STOP STOP STOP STOP STOP STOP
#
# **** DO NOT EDIT THIS FILE ****
#
# STOP STOP STOP STOP STOP STOP STOP STOP STOP
################################################## ##########################
#
# DO NOT STORE CONFIGURATION ENTRIES HERE.
# Please save normal configuration tokens for snmpd in =

SNMPCONFPATH/snmpd.conf.
# Only "createUser" tokens should be placed here by snmpd administrators.
# (Did I mention: do not edit this file?)
#


storing: #
# net-snmp (or ucd-snmp) persistent data file.
#
################################################## ##########################
# STOP STOP STOP STOP STOP STOP STOP STOP STOP
#
# **** DO NOT EDIT THIS FILE ****
#
# STOP STOP STOP STOP STOP STOP STOP STOP STOP
################################################## ##########################
#
# DO NOT STORE CONFIGURATION ENTRIES HERE.
# Please save normal configuration tokens for snmpd in =

SNMPCONFPATH/snmpd.conf.
# Only "createUser" tokens should be placed here by snmpd administrators.
# (Did I mention: do not edit this file?)
#




read_config: read_config: storing: engineBoots 18
storing: engineBoots 18
read_config: read_config: storing: oldEngineID 0x80001f8880ba43a474f9014a46
storing: oldEngineID 0x80001f8880ba43a474f9014a46
NET-SNMP version 5.4
NET-SNMP version 5.4



When I try to request it :

/usr/local/bin/snmpgetnext -v 1 -c public -r 0 localhost:7075 system
Timeout: No Response from localhost:7075.


on agent windown :

NET-SNMP version 5.4
NET-SNMP version 5.4

Received 41 bytes from UDP: [127.0.0.1]:49416

Received 41 bytes from UDP: [127.0.0.1]:49416
0000: 30 27 02 01 00 04 06 70 75 62 6C 69 63 A1 1A 02 0'.....public...
0000: 30 27 02 01 00 04 06 70 75 62 6C 69 63 A1 1A 02 0'.....public...
0016: 04 13 8F EC 00 02 01 00 02 01 00 30 0C 30 0A 06 ...........0.0..
0016: 04 13 8F EC 00 02 01 00 02 01 00 30 0C 30 0A 06 ...........0.0..
0032: 06 2B 06 01 02 01 01 05 00 .+.......
0032: 06 2B 06 01 02 01 01 05 00 .+.......


Received SNMP packet(s) from UDP: [127.0.0.1]:49416
Received SNMP packet(s) from UDP: [127.0.0.1]:49416
GETNEXT message
GETNEXT message
-- SNMPv2-MIB::system
-- SNMPv2-MIB::system



Sandrine.

Thomas Anders a =E9crit :
> Sandrine MONOT wrote:
> =


>> /opt/FERMA/sbin/agtcks -c /etc/opt/FERMA/agent.cfg -f -Le -Dread_config =


>> -d localhost:7075
>> registered debug token read_config, 1
>> NET-SNMP version 5.4
>> =


>
> What's the output of "net-snmp-config --configure-options"?
> It looks like you've disabled debugging completely.
>
>
> +Thomas
>
> --
> Thomas Anders (thomas.anders at blue-cable.de)
>
> =




-------------------------------------------------------------------------
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.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders