tech:notes_nsclient_nagios_windows
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:notes_nsclient_nagios_windows [2025/04/19 14:21] – Jean-Baptiste | tech:notes_nsclient_nagios_windows [2025/12/04 14:17] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 33: | Ligne 33: | ||
| En plus de | En plus de | ||
| - | | PORT | SENS | SERVICE | + | | PORT | SENS | SERVICE |
| | ------------- | --------------- | -------------- | ---------------------------------- | | | ------------- | --------------- | -------------- | ---------------------------------- | | ||
| | ICMP | NAGIOS => HOTE | PING | | ICMP | NAGIOS => HOTE | PING | ||
| Ligne 62: | Ligne 62: | ||
| ## Rest API | ## Rest API | ||
| + | |||
| + | |||
| + | Changer | ||
| + | |||
| + | ~~~ini | ||
| + | ; Section for REST API users | ||
| + | [/ | ||
| + | password=centreon | ||
| + | role=limited | ||
| + | ~~~ | ||
| + | |||
| + | en | ||
| + | |||
| + | ~~~ini | ||
| + | ; Section for REST API users | ||
| + | [/ | ||
| + | password=P@ssw0rd | ||
| + | role=limited | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ### Autres | ||
| ~~~winbatch | ~~~winbatch | ||
| Ligne 83: | Ligne 105: | ||
| nscp settings --help | nscp settings --help | ||
| ~~~ | ~~~ | ||
| + | |||
| + | |||
| + | ## Conf | ||
| + | |||
| + | Voir : | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | |||
| + | '' | ||
| + | ~~~ini | ||
| + | [/ | ||
| + | password =Str0ngPassw0rd | ||
| + | ; PORT NUMBER - Port to use for check_nt. | ||
| + | port = 12489 | ||
| + | |||
| + | [/modules] | ||
| + | NSClientServer = 1 | ||
| + | CheckDisk = 1 | ||
| + | CheckEventLog = 1 | ||
| + | WebServer = 0 | ||
| + | Scheduler = 1 | ||
| + | |||
| + | [/ | ||
| + | allowed hosts = 127.0.0.1, | ||
| + | timeout = 30 | ||
| + | |||
| + | [/ | ||
| + | level = debug | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ini | ||
| + | [/ | ||
| + | allowed hosts = 0.0.0.0/0 | ||
| + | password = P@ssw0rd | ||
| + | port = 12489 | ||
| + | |||
| + | [/modules] | ||
| + | WEBServer = 1 | ||
| + | NRPEServer = 0 | ||
| + | NSClientServer = 1 | ||
| + | |||
| + | [/ | ||
| + | ; ALLOWED HOSTS - A coma separated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges. | ||
| + | allowed hosts = 0.0.0.0/0 | ||
| + | |||
| + | [/ | ||
| + | password = P@ssw0rd | ||
| + | role=limited | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | Multi instance - Multiple NSClient++ | ||
| + | ~~~winbatch | ||
| + | nscp service --install --name nscp2 | ||
| + | ~~~ | ||
| + | Source : https:// | ||
| + | |||
| + | Old | ||
| + | |||
| + | ~~~ini | ||
| + | [Settings] | ||
| + | use_file=1 | ||
| + | |||
| + | [modules] | ||
| + | NRPEListener.dll | ||
| + | NSClientListener.dll | ||
| + | ; | ||
| + | CheckSystem.dll | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | If you want to fill this file with all available options run the following command: | ||
| + | ~~~winbatch | ||
| + | nscp settings --generate --add-defaults --load-all | ||
| + | ~~~ | ||
| + | |||
| + | If you want to activate a module and bring in all its options use: | ||
| + | ~~~winbatch | ||
| + | nscp settings --activate-module <MODULE NAME> --add-defaults | ||
| + | ~~~ | ||
| + | For details run: | ||
| + | ~~~winbatch | ||
| + | nscp settings --help | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| ## Notes | ## Notes | ||
tech/notes_nsclient_nagios_windows.1745065292.txt.gz · Dernière modification : de Jean-Baptiste
