AW: NRPE 2.0 with IRIX 6.5.19m

Wolfgang Schaefer wolfgang.schaefer at winag.com
Sun Nov 30 19:07:34 CET 2003


Hi Matt,

it looks like IRIX-Version of getopt doesn´t support the long_option feature.
If you comment this out in nrpe.c and check_nrpe.c you get it compiled without any error.

#ifdef HAVE_GETOPT_H
/*
        int option_index=0;
        static struct option long_options[]={
                {"config", required_argument, 0, 'c'},
                {"inetd", no_argument, 0, 'i'},
                {"daemon", no_argument, 0, 'd'},
                {"no-ssl", no_argument, 0, 'n'},
                {"help", no_argument, 0, 'h'},
                {"license", no_argument, 0, 'l'},
                {0, 0, 0, 0}
                };
*/
#endif

        /* no options were supplied */
        if(argc<2)
                return ERROR;

        snprintf(optchars,MAX_INPUT_BUFFER,"c:nidhl");

        while(1){
#ifdef HAVE_GETOPT_H
                c=getopt(argc,argv,optchars);
                /* c=getopt_long(argc,argv,optchars,long_options,&option_index); */
#else
                c=getopt(argc,argv,optchars);
#endif


The only Problem than is that you get another error, while trying to connect to nrpe :
sh# ./check_nrpe -H localhost
CHECK_NRPE: Error - Could not complete SSL handshake.

I turned on DEBUGGING to see what it is in detail. In the file /tmp/err.log you get :
1586365:error:1408A0C1:SSL routines:SSL3_GET_CLIENT_HELLO:no shared cipher:s3_srvr.c:865:

I put the cipherlist to all :
SSL_CTX_set_cipher_list(ctx,"ALL");

but that doesn´t change anything.

Any ideas ???

Thanks a lot,

wolfgang



-----Ursprüngliche Nachricht-----
Von: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net]Im Auftrag von Garrett, Matt M
SITI-ITDIEEE
Gesendet: Montag, 13. Oktober 2003 17:22
An: Nagios-Users (E-mail)
Betreff: [Nagios-users] NRPE 2.0 with IRIX 6.5.19m


Folks
Has any body managed to get NRPE 2.0 to compile under SGI IRIX 6.5.19m
I have tried both under  gcc and cc
Error messages are for cc
# make
        cd ./src/; make ; cd ..








/usr/bin/cc -g -I/usr/local/openssl/include/openssl -I/usr/local/openssl/include -DHAVE_CO
NFIG_H -o nrpe nrpe.c utils.c -L/usr/local/openssl/lib  -lssl -lcrypto -lnsl -lsocket
nrpe.c:
"nrpe.c", line 684: warning(1110): statement is unreachable
        syslog(LOG_NOTICE,"Terminating");
        ^
"nrpe.c", line 1442: error(1070): incomplete type is not allowed
        static struct option long_options[]={
                             ^
"nrpe.c", line 1443: error(1020): identifier "required_argument" is undefined
                {"config", required_argument, 0, 'c'},
                           ^


Error messages for Gcc
# make
        cd ./src/; make ; cd ..








gcc -g -O2 -I/usr/local/openssl/include/openssl -I/usr/local/openssl/include -DHAVE_CONFIG
_H -o nrpe nrpe.c utils.c -L/usr/local/openssl/lib  -lssl -lcrypto -lnsl -lsocket
nrpe.c: In function `process_arguments':
nrpe.c:1442: error: elements of array `long_options' have incomplete type
nrpe.c:1443: warning: excess elements in struct initializer
nrpe.c:1443: warning: (near initialization for `long_options[0]')
nrpe.c:1443: error: `required_argument' undeclared (first use in this function)
Thanks
Matt
Matthew Garrett
Unix System Support
Shell Information Technology International Limited
Seafield House, North Anderson Drive, Aberdeen AB15 6GZ, United Kingdom
Tel: +44 (0)1224 81 8373 Other Tel: Internal 630 8373
Email: Matt.M.Garrett at is.shell.com
Internet: http://www.shell.com




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list