Add : receiver launching scripts.
[shinken.git] / bin / default / shinken.in
blob4c672b612cd16ece86de7c85cedbbdef16a30b64
1 # /etc/default/shinken
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
8 ETC=$ETC$
9 VAR=$VAR$
10 BIN=$SCRIPTS_BIN$
13 ###ARBITER PART
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
24 #The ARBITER PID
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}
28 else
29     ARBITERPID="$VAR/arbiterd.pid"
32 ###SCHEDULER PART
33 # location of the scheduler daemon configuration
34 SCHEDULERCFG="$ETC/schedulerd.ini"
36 # The command to launch
37 SCHEDULERDAEMON=$BIN/shinken-scheduler
39 #The SCHEDULER PID
40 SCHEDULERPID="$VAR/schedulerd.pid"
43 ###POLLER PART
44 # location of the poller daemon configuration
45 POLLERCFG="$ETC/pollerd.ini"
47 # The command to launch
48 POLLERDAEMON=$BIN/shinken-poller
50 #The poller pid
51 POLLERPID="$VAR/pollerd.pid"
54 ###REACTIONNER PART
55 # location of the reactionner daemon configuration
56 REACTIONNERCFG="$ETC/reactionnerd.ini"
58 # The command to launch
59 REACTIONNERDAEMON=$BIN/shinken-reactionner
61 #The reactionner pid
62 REACTIONNERPID="$VAR/reactionnerd.pid"
65 ###BROKER PART
66 # location of the broker daemon configuration
67 BROKERCFG="$ETC/brokerd.ini"
69 # The command to launch
70 BROKERDAEMON=$BIN/shinken-broker
72 #The broker pid
73 BROKERPID="$VAR/brokerd.pid"
76 ###RECEIVER PART
77 # location of the broker daemon configuration
78 RECEIVERCFG="$ETC/receiverd.ini"
80 # The command to launch
81 RECEIVERDAEMON=$BIN/shinken-receiver
83 #The broker pid
84 RECEIVERPID="$VAR/receiverd.pid"
87 # nicelevel to run nagios daemon with
88 NICENESS=5