2 #$ETC$ is where we put all configuration files
3 #$VAR$ is where we put all variables files (pid, and all)
4 #$SCRIPTS_BIN$ is where the launch scripts will be send
7 ## These vars will overRide the hardcoded ones in init script
14 # location of the nagios configuration file
15 SHINKENCFG="$ETC/nagios.cfg"
17 # We got 2 configs because tools like Centreon don't generate all
18 #configuration (only the shinken.cfg part)
19 SHINKENSPECIFICCFG="$ETC/shinken-specific.cfg"
21 # The command to launch
22 ARBITERDAEMON=$BIN/shinken-arbiter
25 if [ -r $SHINKENCFG ] ; then
26 tmppid=`grep 'lock_file=' $SHINKENCFG | grep -v '#' | tail -n 1 | awk -F '=' '{print $2}'`
27 ARBITERPID=${tmppid-$VAR/arbiterd.pid}
29 ARBITERPID="$VAR/arbiterd.pid"
33 # location of the scheduler daemon configuration
34 SCHEDULERCFG="$ETC/schedulerd.ini"
36 # The command to launch
37 SCHEDULERDAEMON=$BIN/shinken-scheduler
40 SCHEDULERPID="$VAR/schedulerd.pid"
44 # location of the poller daemon configuration
45 POLLERCFG="$ETC/pollerd.ini"
47 # The command to launch
48 POLLERDAEMON=$BIN/shinken-poller
51 POLLERPID="$VAR/pollerd.pid"
55 # location of the reactionner daemon configuration
56 REACTIONNERCFG="$ETC/reactionnerd.ini"
58 # The command to launch
59 REACTIONNERDAEMON=$BIN/shinken-reactionner
62 REACTIONNERPID="$VAR/reactionnerd.pid"
66 # location of the broker daemon configuration
67 BROKERCFG="$ETC/brokerd.ini"
69 # The command to launch
70 BROKERDAEMON=$BIN/shinken-broker
73 BROKERPID="$VAR/brokerd.pid"
77 # location of the broker daemon configuration
78 RECEIVERCFG="$ETC/receiverd.ini"
80 # The command to launch
81 RECEIVERDAEMON=$BIN/shinken-receiver
84 RECEIVERPID="$VAR/receiverd.pid"
87 # nicelevel to run nagios daemon with