1 In this directory you can put your own custom scripts which extend the startstop-scripts in etc/init.d
3 The init-hook-scripts are executed by the init-scripts before or after a certain operation. This is defined by following a naming scheme.
5 <name of the init-script>-<name of the operation>-<pre or post>
7 Post scripts will be run with the exit code of the actual script as
11 nagios-reload-pre will be executed when you run "etc/init.d/nagios reload" or "omd reload nagios" just before the actual reload.
15 - Imagine your etc/nagios/conf.d/myconfig is the clone of a git repository. Whenever you reload Nagios, the init-hook-script will do a
16 cd etc/nagios/conf.d/myconfig
18 and update the config files from the central repository. Then the actual reload follows.
20 - Apache stops all fcgi servers on stop ( and therefor on logfile
21 rotation ). There is a sample script which start Thruks fcgi daemon
22 after the apache reload.
24 Currently only the following scripts can be used, all others are ignored: