Re: monitoring freeradius with snmp
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 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
RE: monitoring freeradius with snmp
Title: RE: monitoring freeradius with snmp 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: [EMAIL PROTECTED] 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" <[EMAIL PROTECTED]> 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. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: monitoring freeradius with snmp
"Andy Ford" <[EMAIL PROTECTED]> 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
Re: monitoring freeradius with snmp
-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 pgpxb9j21Oa10.pgp Description: PGP signature - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
RE: monitoring freeradius with snmp
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: monitoring freeradius with snmp
On Friday 04 August 2006 09:59, Andy Ford wrote: > 4. started the radiusd and snmpd daemons. Sounds good so far. When you run in debug mode, does the SMUX registration work properly? You should see something similar to this: SMUX connect try 1 SMUX open oid: 1.3.6.1.4.1.3317.1.3.1 SMUX open progname: radiusd SMUX open password: somesecretpass SMUX register oid: 1.3.6.1.2.1.67.1.1.1.1 SMUX register priority: -1 SMUX register operation: 1 SMUX register oid: 1.3.6.1.2.1.67.2.1.1.1 SMUX register priority: -1 SMUX register operation: 1 > When I walk enterprises.3317 I get nothing. The mibs directory has loadable files so that you can use pretty names (radiusAuthServIdent) instead of OIDs in your queries. If you're just looking for confirmation that FR+SNMP is working, you can run: $ snmpwalk -v1 -c public localhost mib-2.67.1.1.1.1.1.0 RADIUS-AUTH-SERVER-MIB::radiusAuthServIdent.0 = STRING: FreeRADIUS Version 1.1.2, for host , built on Jul 6 2006 at 12:59:53 Kevin Bonner pgpzU6PQm5KJc.pgp Description: PGP signature - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: monitoring freeradius with snmp
Andy Ford <[EMAIL PROTECTED]> 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