Manipulation des démons Shinken
Usage pour tous les démons (en une seule commande) :
| Code Block |
|---|
service shinken [ -d ] {start|stop|restart|status|check}
|
ou
| Code Block |
|---|
/etc/init.d/shinken [ -d ] {start|stop|restart|status|check} |
| Info |
|---|
-d démarre le module/démon en mode debug, uniquement avec start|restart Nous vous laissons le choix d'utiliser la commande "service" ou de lancer les scripts directement depuis /etc/init.d, à votre convenance. (les commandes via "service" appellent les scripts de /etc/init.d) |
Usage spécifique par démon :
| Code Block |
|---|
service shinken-DEMON [ -d ] {start|stop|restart|status|check}
|
ou
| Code Block |
|---|
/etc/init.d/shinken-DEMON [ -d ] {start|stop|restart|status|check} |
| Info |
|---|
-d démarre le module/démon en mode debug, uniquement avec start|restart DEMON peut être : arbiter, synchronizer, receiver, scheduler, reactionner, poller, broker |
Exemples
Exemple pour tous les démons (en une seule commande) :
Redémarrage de tous les démons Shinken :
| Code Block |
|---|
service shinken restart |
ou
| Code Block |
|---|
/etc/init.d/shinken restart |
Redémarrage de tous les démons Shinken en mode debug (les logs seront plus détaillés) :
| Code Block |
|---|
service shinken -d restart |
Exemple spécifique par démon :
Redémarrage du broker en mode débug :
| Code Block |
|---|
service shinken-broker -d restart |
Arrêt du poller :
| Code Block |
|---|
/etc/init.d/shinken-poller stop |
shinken-receiver
Usage:
shinken-receiver [options]Options:
| Name | Description |
|---|---|
--version | Show program's version number and exit. |
-h, --help | Show this help message and exit. |
-c INI-CONFIG-FILE, --config=INI-CONFIG-FILE | Config file. |
-d, --daemon | Run in daemon mode. |
-r, --replace | Replace previous running receiver. |
--debugfile=DEBUG_FILE | Debug file. Default: not used (why debug a bug free program? :) ). |
shinken-arbiter
Usage:
shinken-arbiter [options] -c configfile [-c additional_config_file]Options:
| Name | Description |
|---|---|
--version | Show program's version number and exit. |
-h, --help | Show this help message and exit. |
-c CONFIG-FILE, --config=CONFIG-FILE | Config file (your nagios.cfg). Multiple -c can be used, it will be like if all files was just one. |
-d, --daemon | Run in daemon mode. |
-r, --replace | Replace previous running arbiter |
--debugfile=DEBUG_FILE | Debug file. Default: not used (why debug a bug free program? :) ). |
-v, --verify-config | Verify config file and exit. |
-p PROFILE, --profile=PROFILE | Dump a profile file. Need the python cProfile library |
-a ANALYSE, --analyse=ANALYSE | Dump an analyse statistics file, for support. |
-m MIGRATE, --migrate=MIGRATE | Migrate the raw configuration read from the arbiter to another module. VERY EXPERIMENTAL! |
-n ARB_NAME, --name=ARB_NAME | Give the arbiter name to use. Optional, will use the host address if not provide to find it. |
shinken-poller
Usage:
shinken-poller [options]Options:
| Name | Description |
|---|---|
--version | Show program's version number and exit. |
-h, --help | Show this help message and exit. |
-c INI-CONFIG-FILE, --config=INI-CONFIG-FILE | Config file. |
-d, --daemon | Run in daemon mode. |
-r, --replace | Replace previous running poller. |
--debugfile=DEBUG_FILE | Debug file. Default: not used (why debug a bug free program? :) ). |
-p PROFILE, --profile=PROFILE | Dump a profile file. Need the python cProfile library. |
shinken-scheduler
Usage:
shinken-scheduler [options]Options:
| Name | Description |
|---|---|
--version | Show program's version number and exit. |
-h, --help | Show this help message and exit. |
-c INI-CONFIG-FILE, --config=INI-CONFIG-FILE | Config file. |
-d, --daemon | Run in daemon mode. |
-r, --replace | Replace previous running scheduler. |
--debugfile=DEBUG_FILE | Debug file. Default: not used (why debug a bug free program? :) ). |
-p PROFILE, --profile=PROFILE | Dump a profile file. Need the python cProfile library. |
shinken-broker
Usage:
shinken-broker [options]Options:
| Name | Description |
|---|---|
--version | Show program's version number and exit. |
-h, --help | Show this help message and exit. |
-c INI-CONFIG-FILE, --config=INI-CONFIG-FILE | Config file. |
-d, --daemon | Run in daemon mode. |
-r, --replace | Replace previous running broker. |
--debugfile=DEBUG_FILE | Debug file. Default: not used (why debug a bug free program? :) ). |
-p PROFILE, --profile=PROFILE | Dump a profile file. Need the python cProfile library. |
shinken-reactionner
Usage:
shinken-reactionner [options]Options:
| Name | Description |
|---|---|
--version | Show program's version number and exit. |
-h, --help | Show this help message and exit. |
-c INI-CONFIG-FILE, --config=INI-CONFIG-FILE | Config file. |
-d, --daemon | Run in daemon mode. |
-r, --replace | Replace previous running reactionner. |
--debugfile=DEBUG_FILE | Debug file. Default: not used (why debug a bug free program? :) ). |
-p PROFILE, --profile=PROFILE | Dump a profile file. Need the python cProfile library. |
shinken-synchronizer
Usage:
shinken-synchronizer [options] -c configfile [-c additional_config_file]Options:
...
--version...
-h, --help...
-c CONFIG-FILE, --config=CONFIG-FILE...
-d, --daemon...
-r, --replace...
--debugfile=DEBUG_FILE...
-v, --verify-config...