Page 1 of 1

Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC monitoring

Posted: Wed Feb 22, 2012 10:12 am
by tindima
hello; am faced with challenge to monitor "Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC".
i have managed to install the nagios plugins.
but when I try to install nrpe-2.12, I am hitting a snag, where I get errors as below;


# make
cd ./src/; make ; cd ..
gcc -g -O2 -I/usr/sfw//include/openssl -I/usr/sfw//include -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c -L/usr/sfw/lib/ -lssl -lcrypto -lnsl -lsocket
nrpe.c:616:3: #else without #if
nrpe.c:617:4: invalid preprocessing directive #log_facility
nrpe.c:618:3: #else without #if
nrpe.c:619:4: invalid preprocessing directive #log_facility
nrpe.c: In function `get_log_facility':
nrpe.c:621: error: syntax error before '.' token
nrpe.c: At top level:
nrpe.c:648: error: syntax error before "return"
*** Error code 1
make: Fatal error: Command failed for target `nrpe'
Current working directory /tmp/nrpe-2.12/src
*** Error code 1
make: Fatal error: Command failed for target `all'


checked the path;
# which make
/usr/ccs/bin/make

previously I have successfully installed on "Solaris 10 11/06 s10s_u3wos_10 SPARC"

what could I be missing here?

thanks

Re: Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC monitoring

Posted: Fri Feb 24, 2012 2:57 am
by tflakstad
Before running make, try this:

Code: Select all

vi src/nrpe.c
replace

Code: Select all

else if(!strcmp(varvalue,”authpriv”))
log_facility=LOG_AUTHPRIV;
else if(!strcmp(varvalue,”ftp”))
log_facility=LOG_FTP;
with

Code: Select all

else if(!strcmp(varvalue,”authpriv”))
log_facility=LOG_AUTH;
else if(!strcmp(varvalue,”ftp”))
log_facility=LOG_DAEMON;