This file is indexed.

/etc/default/shinken is in shinken-common 1.4-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# Copyright (C) 2009-2011:
#    Gabes Jean, naparuba@gmail.com
#    Gerhard Lausser, Gerhard.Lausser@consol.de
#    Gregory Starck, g.starck@gmail.com
#    Hartmut Goebel, h.goebel@goebel-consult.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Shinken is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Shinken.  If not, see <http://www.gnu.org/licenses/>.


# /etc/default/shinken
# /etc/shinken/ is where we put all configuration files
# /var/lib/shinken/ is where we put some variables files (replaced by /var/run/shinken/ and /var/log/shinken/ for now)
# /var/run/shinken/ is where we put pid files
# /var/log/shinken/ is where we put log files
# /usr/share/pyshared/shinken/bin/ is where the launch scripts will be send


## These vars will override the hardcoded ones in init script ##
ETC=/etc/shinken/
VAR=/var/lib/shinken/
BIN=/usr/share/pyshared/shinken/bin/
RUN=/var/run/shinken/
LOG=/var/log/shinken/

## If you want to give a test to the BETA skonf tool, you can add skonf to the list below
AVAIL_MODULES="scheduler poller reactionner broker receiver arbiter"

### ARBITER PART ###
# location of the nagios configuration file
# Please update /etc/shinken/ instead of this one.
SHINKENCFG="$ETC/shinken.cfg"

# We got 2 configs because tools like Centreon don't generate all
# configuration (only the shinken.cfg part)
#SHINKENSPECIFICCFG="$ETC/shinken-specific.cfg"

# The command to launch
ARBITERDAEMON=$BIN/shinken-arbiter

#The ARBITER PID
if [ -r $SHINKENCFG ] ; then
    tmppid=`grep 'lock_file=' $SHINKENCFG | grep -v '#' | tail -n 1 | awk -F '=' '{print $2}'`
    ARBITERPID=${tmppid-$RUN/arbiterd.pid}
else
    ARBITERPID="$RUN/arbiterd.pid"
fi

ARBITERDEBUGFILE="$LOG/arbiter-debug.log"


### SCHEDULER PART ###
# location of the scheduler daemon configuration
SCHEDULERCFG="$ETC/daemons/schedulerd.ini"

# The command to launch
SCHEDULERDAEMON=$BIN/shinken-scheduler

# The SCHEDULER PID
SCHEDULERPID="$RUN/schedulerd.pid"

SCHEDULERDEBUGFILE="$LOG/scheduler-debug.log"


### POLLER PART ###
# location of the poller daemon configuration
POLLERCFG="$ETC/daemons/pollerd.ini"

# The command to launch
POLLERDAEMON=$BIN/shinken-poller

# The poller pid
POLLERPID="$RUN/pollerd.pid"

POLLERDEBUGFILE="$LOG/poller-debug.log"


### REACTIONNER PART ###
# location of the reactionner daemon configuration
REACTIONNERCFG="$ETC/daemons/reactionnerd.ini"

# The command to launch
REACTIONNERDAEMON=$BIN/shinken-reactionner

#The reactionner pid
REACTIONNERPID="$RUN/reactionnerd.pid"

REACTIONNERDEBUGFILE="$LOG/reactionner-debug.log"


### BROKER PART ###
# location of the broker daemon configuration
BROKERCFG="$ETC/daemons/brokerd.ini"

# The command to launch
BROKERDAEMON=$BIN/shinken-broker

# The broker pid
BROKERPID="$RUN/brokerd.pid"

BROKERDEBUGFILE="$LOG/broker-debug.log"


### RECEIVER PART ###
# location of the broker receiver configuration
RECEIVERCFG="$ETC/daemons/receiverd.ini"

# The command to launch
RECEIVERDAEMON=$BIN/shinken-receiver

#The receiver pid
RECEIVERPID="$RUN/receiverd.pid"

RECEIVERDEBUGFILE="$LOG/receiver-debug.log"



### SKONF PART ###
# location of the skonf daemon configuration
SKONFCFG="$ETC/skonf.cfg"

# The command to launch
SKONFDAEMON=$BIN/shinken-skonf

# The SKONF PID
SKONFPID="$RUN/skonfd.pid"

SKONFDEBUGFILE="$LOG/skonf-debug.log"



# nicelevel to run shinken daemon with
NICENESS=5

# user/group for the var/run rights
SHINKENUSER=shinken
SHINKENGROUP=shinken
HOME=`grep ^$SHINKENUSER: /etc/passwd | cut -d: -f 6`