Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC monitoring

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
tindima
Posts: 1
Joined: Wed Feb 22, 2012 9:54 am

Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC monitoring

Post 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
tflakstad
Posts: 1
Joined: Fri Feb 24, 2012 2:45 am

Re: Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC monitoring

Post 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;
Locked