RE: monitoring freeradius with snmp

2006-09-05 Thread Andy Ford
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

2006-09-04 Thread Andy Ford
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


monitoring freeradius with snmp

2006-08-04 Thread Andy Ford
Hi,

I have a requirement to monitor freeradius with snmp.
According to the freeradius web site and other sources I've done the
following...
1. compiled freeradius with the '--with-snmp' option
2. modified the freeradius snmp.conf file to include

smux_password = verysecret

2. modified the radiusd.conf file with 

snmp = yes
$INCLUDE  ${confdir}/snmp.conf

3. modified the net-snmp snmpd.conf file to include

smuxpeer .1.3.6.1.4.1.3317.1.3.1 verysecret

4. started the radiusd and snmpd daemons.

When I do an 'snmpwalk -v1 -c public localhost system' I get the
'system' info from the MIB (as expected).
When I walk enterprises.3317 I get nothing.

I didn't actually expect to get much as I have a huge gap in my
knowledge which is the smux. I'm not sure how it works or how I
implement it successfully.

Has anyone implemented an smux or monitoring freeradius with snmp.
If you have, It would be great if you would impart with any knowledge
you may have so I can sort this out.

Thanks for your time

Regards

Andy
-- 
perl -e print qq^bIG VeRN ! ^^qq^#'#Yv#=D+ ^

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