Hi Allan Thanks for you suggestions. After running configure --with-snmp I noticed (following your notes below) that the '#define WITH_SNMP 1' was missing from autoconf.h. So I added the line manually in autoconf.h as ... /* Include SNMP subagent */ /* #undef WITH_SNMP */ #define WITH_SNMP 1 ... and got a stream of error from 'make'. Here is a small snippet of the errors. ------------------ make errors ------------------------ make[4]: Entering directory `/tmp/freeradius-1.1.2/src/main' /tmp/freeradius-1.1.2/libtool --mode=compile gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I../include -DHO STINFO=\"\" -DRADIUSD_VERSION=\"1.1.2\" -c radius_snmp.c rm -f .libs/radius_snmp.lo gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I../include -DHOSTINFO=\"\" -DRADIUSD_VERSION=\"1.1.2\" -c radi us_snmp.c -fPIC -DPIC -o .libs/radius_snmp.lo In file included from radius_snmp.c:39: ../include/smux.h:60: error: parse error before "oid" ../include/smux.h:64: error: parse error before "oid" ../include/smux.h:94: error: parse error before "oid" ../include/smux.h:94: warning: no semicolon at end of struct or union ../include/smux.h:101: error: parse error before "oid" ../include/smux.h:101: warning: no semicolon at end of struct or union ../include/smux.h:115: error: parse error before '}' token ../include/smux.h:136: error: parse error before '[' token -------------------------------------------------------------- Obviously I've completely buggered something up. A little advice would be great. I downloaded the latest version i.e. freeradius-1.1.2 I also have NET-SNMP version: 5.2.rc3 installed. I can see from the list you are a very busy person, so thanks for your time. I've attached the complete output from make, along with autoconf.h. Regards Andy -----Original Message----- From: freeradius-users-bounces+andy.ford=telindus.co.uk@lists.freeradius.org [mailto:freeradius-users-bounces+andy.ford=telindus.co.uk@lists.freeradi us.org] On Behalf Of Alan DeKok Sent: 04 August 2006 18:16 To: FreeRadius users mailing list Subject: Re: monitoring freeradius with snmp Andy Ford <andy.ford@telindus.co.uk> wrote:
1. compiled freeradius with the '--with-snmp' option
Did the "configure" process find the SNMP information it needed? Does src/include/autoconf.h have a line like: #define WITH_SNMP 1 ?
2. modified the radiusd.conf file with
snmp = yes $INCLUDE ${confdir}/snmp.conf
When the server starts, does it say anything about connecting to SMUX peer? Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html This e-mail is private and may be confidential and is for the intended recipient only. If misdirected, please notify us by telephone and confirm that it has been deleted from your system and any copies destroyed. If you are not the intended recipient you are strictly prohibited from using, printing, copying, distributing or disseminating this e-mail or any information contained in it. We use reasonable endeavours to virus scan all e-mails leaving the Company but no warranty is given that this e-mail and any attachments are virus free. You should undertake your own virus checking. The right to monitor e-mail communications through our network is reserved by us.
-snip-
Obviously I've completely buggered something up.
A little advice would be great.
I downloaded the latest version i.e. freeradius-1.1.2 I also have NET-SNMP version: 5.2.rc3 installed.
This may not make any difference to your problem, but my openSUSE boxes are currently running net-snmp 5.3.0.1 (Why run an old Release Candidate?) and the latest release of FreeRADIUS is 1.1.3 Cheers -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
"Andy Ford" <Andy.Ford@telindus.co.uk> wrote:
Thanks for you suggestions. After running configure --with-snmp I noticed (following your notes below) that the '#define WITH_SNMP 1' was missing from autoconf.h.
Because "configure" didn't find the SNMP libraries it needs.
So I added the line manually in autoconf.h as ...
Which won't work.
I downloaded the latest version i.e. freeradius-1.1.2 I also have NET-SNMP version: 5.2.rc3 installed.
The server *should* be able to work with net-snmp, especially if you have built net-snmp with ucd-snmp compatibility. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
Ok - thanks I have noticed the following from the output from configure checking for asn1.h,snmp.h,snmp_impl.h... no how can I get configure to look at the directory with these header files in. I'm running Solaris 2.8 Thanks Regards Andy -----Original Message----- From: freeradius-users-bounces+andy.ford=telindus.co.uk@lists.freeradius.org on behalf of Alan DeKok Sent: Tue 9/5/2006 4:28 AM To: FreeRadius users mailing list Subject: Re: monitoring freeradius with snmp "Andy Ford" <Andy.Ford@telindus.co.uk> wrote:
Thanks for you suggestions. After running configure --with-snmp I noticed (following your notes below) that the '#define WITH_SNMP 1' was missing from autoconf.h.
Because "configure" didn't find the SNMP libraries it needs.
So I added the line manually in autoconf.h as ...
Which won't work.
I downloaded the latest version i.e. freeradius-1.1.2 I also have NET-SNMP version: 5.2.rc3 installed.
The server *should* be able to work with net-snmp, especially if you have built net-snmp with ucd-snmp compatibility. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html This e-mail is private and may be confidential and is for the intended recipient only. If misdirected, please notify us by telephone and confirm that it has been deleted from your system and any copies destroyed. If you are not the intended recipient you are strictly prohibited from using, printing, copying, distributing or disseminating this e-mail or any information contained in it. We use reasonable endeavours to virus scan all e-mails leaving the Company but no warranty is given that this e-mail and any attachments are virus free. You should undertake your own virus checking. The right to monitor e-mail communications through our network is reserved by us.
Hi,
Ok - thanks
I have noticed the following from the output from configure
checking for asn1.h,snmp.h,snmp_impl.h... no
how can I get configure to look at the directory with these header files in.
./configure --help note the CPPFLAGS option. why are your proper SNMP includes not in the compiler include PATH ? alan
participants (4)
-
A.L.M.Buxey@lboro.ac.uk -
Alan DeKok -
Andy Ford -
Peter Nixon