Skip to content

Commit

Permalink
Changes for CentOS 5 (yeah, the old one)
Browse files Browse the repository at this point in the history
  • Loading branch information
John C. Frickson committed May 9, 2016
1 parent 3e4094d commit c59e1ec
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 23 deletions.
2 changes: 1 addition & 1 deletion build-aux/ax_nagios_get_init
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ AC_DEFUN([AX_NAGIOS_GET_INIT],
if `/sbin/init --version 2>/dev/null | grep "upstart" >/dev/null`; then
init_type="upstart"
init_type_wanted=no
elif test -f "/etc/rc"; then
elif test -f "/etc/rc" -a ! -L "/etc/rc"; then
init_type="newbsd"
init_type_wanted=no
else
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -2963,7 +2963,7 @@ esac
if `/sbin/init --version 2>/dev/null | grep "upstart" >/dev/null`; then
init_type="upstart"
init_type_wanted=no
elif test -f "/etc/rc"; then
elif test -f "/etc/rc" -a ! -L "/etc/rc"; then
init_type="newbsd"
init_type_wanted=no
else
Expand Down
18 changes: 5 additions & 13 deletions sample-config/nrpe.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -198,43 +198,35 @@ connection_timeout=300
# If an "or above" version is used, the best will be negotiated. So if both
# ends are able to do TLSv1.2 and use specify SSLv2, you will get TLSv1.2.

# ssl_version=SSLv2+
ssl_version=TLSv1+
#ssl_version=SSLv2+

# SSL USE ADH
# This is for backward compatibility and is DEPRECATED. Set to 1 to enable
# ADH or 2 to require ADH. 1 is currently the default but will be changed
# in a later version.

# ssl_use_adh=1
# ssl_use_adh=2
#ssl_use_adh=1

# SSL CIPHER LIST
# This lists which ciphers can be used. For backward compatibility, this
# defaults to 'ssl_cipher_list=ALL:!MD5:@STRENGTH' in this version but
# will be changed to something like the example below in a later version of NRPE.

# ssl_cipher_list=ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH
ssl_cipher_list=ALL:!MD5:@STRENGTH
# ssl_cipher_list=ADH
# ssl_cipher_list=ECDH
#ssl_cipher_list=ALL:!MD5:@STRENGTH

# SSL Certificate and Private Key Files

#ssl_cacert_file=/etc/ssl/servercerts/ca-cert.pem
#ssl_cert_file=/etc/ssl/servercerts/nagios-cert.pem
#ssl_privatekey_file=/etc/ssl/servercerts/nagios-key.pem
ssl_cacert_file=/usr/local/nagios/etc/ssl/ca/ca_cert.pem
ssl_cert_file=/usr/local/nagios/etc/ssl/server_certs/db_server.pem
ssl_privatekey_file=/usr/local/nagios/etc/ssl/server_certs/db_server.key

# SSL USE CLIENT CERTS
# This options determines client certificate usage.
# Values: 0 = Don't ask for or require client certificates
# 1 = Ask for client certificates
# 2 = Require client certificates

ssl_client_certs=2
#ssl_client_certs=0

# SSL LOGGING
# This option determines which SSL messages are send to syslog. OR values
Expand All @@ -249,7 +241,7 @@ ssl_client_certs=2
# 0x20 (32) = Log details of client's certificate if it has one
# -1 or 0xff or 0x2f = All of the above

ssl_logging=0x2f
#ssl_logging=0x00



Expand Down
14 changes: 7 additions & 7 deletions startup/default-init.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@ if [ -f /etc/rc.status ]; then
EXIT_CMD="rc_exit"
rc_reset

elif [ -f /lib/lsb/init-functions ]; then

. /lib/lsb/init-functions
START_CMD="start_daemon -p $PID_FILE"
QSTAT_CMD="pidofproc -p $PID_FILE $NRPE_BIN"
PRT_STAT="status_of_proc -p $PID_FILE $NRPE_BIN nrpe"

elif [ -f /etc/rc.d/init.d/functions ]; then

. /etc/rc.d/init.d/functions
Expand All @@ -67,6 +60,13 @@ elif [ -f /etc/init.d/functions ]; then

. /etc/init.d/functions

elif [ -f /lib/lsb/init-functions ]; then

. /lib/lsb/init-functions
START_CMD="start_daemon -p $PID_FILE"
QSTAT_CMD="pidofproc -p $PID_FILE $NRPE_BIN"
PRT_STAT="status_of_proc -p $PID_FILE $NRPE_BIN nrpe"

elif [ -f /etc/rc.d/functions ]; then

. /etc/rc.d/functions
Expand Down
2 changes: 1 addition & 1 deletion uninstall.in
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ rm_startup () {
;;
esac
}
prt_msg 2 0 1 "($INIT_TYPE) Delete $INETD_DIR/$INIT_FILE" && {
prt_msg 2 0 1 "($INIT_TYPE) Delete $INIT_DIR/$INIT_FILE" && {
rm $force "$INIT_DIR/$INIT_FILE"
if test $INIT_TYPE = upstart; then
prt_msg 2 0 1 "($INIT_TYPE) initctl reload-configuration" && {
Expand Down

0 comments on commit c59e1ec

Please sign in to comment.