Issues with snmp based monitoring of FreeRADIUS server.

classic Classic list List threaded Threaded
3 messages Options
| Threaded
Open this post in threaded view
|

Issues with snmp based monitoring of FreeRADIUS server.

Vishwanath Srikant Pattanshetti

Hi

I am trying to use SNMP to monitor FreeRadius 1.0.4 server installed on a solaris 10 machine.

 

When I run the configure scripts, I see error message for snmp.h, asn1.h and snmp_impl.h saying either update these header files or compile with 

--enable-ucd-snmp-compatibility option. I searched the mailing list and found that I can comment out the ifdef is these header files, which include the net-snmp header files.

 

I made those changes and now when I run the configure script the I get following error message in config.log file:

 

configure:8336: checking for asn1.h,snmp.h,snmp_impl.h

configure:8364: gcc -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_

NO_KRB5   -Wall -D_GNU_SOURCE -DNDEBUG  conftest.c 1>&5

configure: In function `main':

configure:8360: warning: unused variable `a'

configure:8533: checking for snmp_build_var_op in -lsnmp

configure:8545: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -

DOPENSSL_NO_KRB5   -Wall -D_GNU_SOURCE -DNDEBUG   conftest.c -lnsl -lresolv -lso

cket -lposix4  -lpthread -lcrypto -lssl -lsnmp 1>&5

ld: fatal: library -lsnmp: not found

ld: fatal: File processing errors. No output written to conftest

collect2: ld returned 1 exit status

configure: failed program was:

#line 8538 "configure"

#include "confdefs.h"

extern char snmp_build_var_op();

int main() {

 snmp_build_var_op()

; return 0; }

configure:8567: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -

Wall -D_GNU_SOURCE -DNDEBUG   conftest.c -lnsl -lresolv -lsocket -lposix4  -lpthread -lcrypto -lssl

-L/usr/lib -lsnmp 1>&5

ld: fatal: library -lsnmp: not found

ld: fatal: File processing errors. No output written to conftest

collect2: ld returned 1 exit status

configure: failed program was:

#line 8560 "configure"

#include "confdefs.h"

extern char snmp_build_var_op();

int main() {

 snmp_build_var_op()

; return 0; }

configure:8589: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -

Wall -D_GNU_SOURCE -DNDEBUG   conftest.c -lnsl -lresolv -lsocket -lposix4  -lpthread -lcrypto -lssl

-L/usr/lib -lsnmp -lcrypto 1>&5

ld: fatal: library -lsnmp: not found

ld: fatal: File processing errors. No output written to conftest

collect2: ld returned 1 exit status

configure: failed program was:

#line 8582 "configure"

#include "confdefs.h"

extern char snmp_build_var_op();

int main() {

 snmp_build_var_op()

; return 0; }

configure:8611: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -

Wall -D_GNU_SOURCE -DNDEBUG   conftest.c -lnsl -lresolv -lsocket -lposix4  -lpthread -lcrypto -lssl

-L/usr/lib -lsnmp -lcrypto -lkstat 1>&5

ld: fatal: library -lsnmp: not found

ld: fatal: File processing errors. No output written to conftest

collect2: ld returned 1 exit status

configure: failed program was:

#line 8604 "configure"

#include "confdefs.h"

extern char snmp_build_var_op();

int main() {

 snmp_build_var_op()

; return 0; }

configure:8567: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -

Wall -D_GNU_SOURCE -DNDEBUG   conftest.c -lnsl -lresolv -lsocket -lposix4  -lpthread -lcrypto -lssl

-L/usr/local/lib -lsnmp 1>&5

ld: fatal: library -lsnmp: not found

ld: fatal: File processing errors. No output written to conftest

collect2: ld returned 1 exit status

configure: failed program was:

#line 8560 "configure"

#include "confdefs.h"

extern char snmp_build_var_op();

int main() {

 snmp_build_var_op()

; return 0; }

 

There are lots of such errors.

I have following .so files in /usr/sfw/lib directory.

libnetsnmp.so

libnetsnmpagent.so

libnetsnmphelpers.so

libnetsnmpmibs.so

snmp/lib/libnetsnmp.so

 

And the /usr/sfw/lib directory is in both PATH and LD_LIBRARY_PATH variables.

 

Can some one please tell me what do I do to get this damn thing working. Any pointers/procedures to get snmp based monitoring of radius server up is r most welcome.

 

Thanks in advance.

-Vishwa.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
| Threaded
Open this post in threaded view
|

Re: Issues with snmp based monitoring of FreeRADIUS server.

Kevin Bonner
On Monday 02 January 2006 05:54, Vishwanath Srikant Pattanshetti wrote:
> Can some one please tell me what do I do to get this damn thing working.
> Any pointers/procedures to get snmp based monitoring of radius server up
> is r most welcome.
>
> Thanks in advance.
>
> -Vishwa.

Vishwa,

We've used the patch at [1] for over a year now to gather radius info via
SNMP.  There's also a HUP issue (bug#150) which will tie up your SNMP daemon
until radiusd is restarted.

Kevin Bonner

[1]
http://lists.cistron.nl/pipermail/freeradius-users/2004-October/036912.html

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html

attachment0 (196 bytes) Download Attachment
| Threaded
Open this post in threaded view
|

RE: Issues with snmp based monitoring of FreeRADIUS server.

Michael Mitchell
In reply to this post by Vishwanath Srikant Pattanshetti
You need to tell configure where to find the libraries.
 
For snmp support you need to include these configure options:
 
   --with-snmp=yes
   --with-snmp-include-dir=/usr/sfw/include 
   --with-snmp-lib-dir=/usr/sfw/lib
Give that a go. And good luck with building on Solaris - its not always straight forward, as you've probably seen on this list already.
 
cheers,
Mike
 
 


From: freeradius-devel-bounces+mitchell.michael=[hidden email] [mailto:freeradius-devel-bounces+mitchell.michael=[hidden email]] On Behalf Of Vishwanath Srikant Pattanshetti
Sent: Monday, 2 January 2006 9:54 PM
To: [hidden email]
Subject: Issues with snmp based monitoring of FreeRADIUS server.
Importance: High

Hi

I am trying to use SNMP to monitor FreeRadius 1.0.4 server installed on a solaris 10 machine.

 

When I run the configure scripts, I see error message for snmp.h, asn1.h and snmp_impl.h saying either update these header files or compile with 

--enable-ucd-snmp-compatibility option. I searched the mailing list and found that I can comment out the ifdef is these header files, which include the net-snmp header files.

 

I made those changes and now when I run the configure script the I get following error message in config.log file:

 

configure:8336: checking for asn1.h,snmp.h,snmp_impl.h

configure:8364: gcc -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_

NO_KRB5   -Wall -D_GNU_SOURCE -DNDEBUG  conftest.c 1>&5

configure: In function `main':

configure:8360: warning: unused variable `a'

configure:8533: checking for snmp_build_var_op in -lsnmp

configure:8545: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -

DOPENSSL_NO_KRB5   -Wall -D_GNU_SOURCE -DNDEBUG   conftest.c -lnsl -lresolv -lso

cket -lposix4  -lpthread -lcrypto -lssl -lsnmp 1>&5

ld: fatal: library -lsnmp: not found

ld: fatal: File processing errors. No output written to conftest

collect2: ld returned 1 exit status

configure: failed program was:

#line 8538 "configure"

#include "confdefs.h"

extern char snmp_build_var_op();

int main() {

 snmp_build_var_op()

; return 0; }

configure:8567: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -

Wall -D_GNU_SOURCE -DNDEBUG   conftest.c -lnsl -lresolv -lsocket -lposix4  -lpthread -lcrypto -lssl

-L/usr/lib -lsnmp 1>&5

ld: fatal: library -lsnmp: not found

ld: fatal: File processing errors. No output written to conftest

collect2: ld returned 1 exit status

configure: failed program was:

#line 8560 "configure"

#include "confdefs.h"

extern char snmp_build_var_op();

int main() {

 snmp_build_var_op()

; return 0; }

configure:8589: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -

Wall -D_GNU_SOURCE -DNDEBUG   conftest.c -lnsl -lresolv -lsocket -lposix4  -lpthread -lcrypto -lssl

-L/usr/lib -lsnmp -lcrypto 1>&5

ld: fatal: library -lsnmp: not found

ld: fatal: File processing errors. No output written to conftest

collect2: ld returned 1 exit status

configure: failed program was:

#line 8582 "configure"

#include "confdefs.h"

extern char snmp_build_var_op();

int main() {

 snmp_build_var_op()

; return 0; }

configure:8611: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -

Wall -D_GNU_SOURCE -DNDEBUG   conftest.c -lnsl -lresolv -lsocket -lposix4  -lpthread -lcrypto -lssl

-L/usr/lib -lsnmp -lcrypto -lkstat 1>&5

ld: fatal: library -lsnmp: not found

ld: fatal: File processing errors. No output written to conftest

collect2: ld returned 1 exit status

configure: failed program was:

#line 8604 "configure"

#include "confdefs.h"

extern char snmp_build_var_op();

int main() {

 snmp_build_var_op()

; return 0; }

configure:8567: gcc -o conftest -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5   -

Wall -D_GNU_SOURCE -DNDEBUG   conftest.c -lnsl -lresolv -lsocket -lposix4  -lpthread -lcrypto -lssl

-L/usr/local/lib -lsnmp 1>&5

ld: fatal: library -lsnmp: not found

ld: fatal: File processing errors. No output written to conftest

collect2: ld returned 1 exit status

configure: failed program was:

#line 8560 "configure"

#include "confdefs.h"

extern char snmp_build_var_op();

int main() {

 snmp_build_var_op()

; return 0; }

 

There are lots of such errors.

I have following .so files in /usr/sfw/lib directory.

libnetsnmp.so

libnetsnmpagent.so

libnetsnmphelpers.so

libnetsnmpmibs.so

snmp/lib/libnetsnmp.so

 

And the /usr/sfw/lib directory is in both PATH and LD_LIBRARY_PATH variables.

 

Can some one please tell me what do I do to get this damn thing working. Any pointers/procedures to get snmp based monitoring of radius server up is r most welcome.

 

Thanks in advance.

-Vishwa.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html