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/16 10:09] – Jean-Baptiste | tech:notes_nsclient_nagios_windows [2025/12/04 14:17] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| < | < | ||
| - | {{tag> | + | {{tag> |
| # Notes NSClient (Agent Nagios / Centreon pour windows) | # Notes NSClient (Agent Nagios / Centreon pour windows) | ||
| Ligne 14: | Ligne 14: | ||
| Voir aussi : | Voir aussi : | ||
| + | * check_ncpa | ||
| * check-mk-agent | * check-mk-agent | ||
| * Exporter prometheus | * Exporter prometheus | ||
| + | |||
| + | check_nt et Centreon : https:// | ||
| ## Flux | ## Flux | ||
| Ligne 30: | Ligne 33: | ||
| En plus de | En plus de | ||
| - | | PORT | SENS | SERVICE | + | | PORT | SENS | SERVICE |
| | ------------- | --------------- | -------------- | ---------------------------------- | | | ------------- | --------------- | -------------- | ---------------------------------- | | ||
| | ICMP | NAGIOS => HOTE | PING | | ICMP | NAGIOS => HOTE | PING | ||
| Ligne 42: | Ligne 45: | ||
| # Pour 1248 | # Pour 1248 | ||
| - | check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process | + | check_nt -H 192.168.1.10 -p 1248 -v UPTIME |
| + | check_nt -H 192.168.1.10 -p 1248 -v CLIENTVERSION | ||
| + | check_nt -H 192.168.1.10 | ||
| + | |||
| + | # | ||
| + | # | ||
| + | # | ||
| ~~~ | ~~~ | ||
| Ligne 52: | Ligne 61: | ||
| - | ## Web 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 59: | Ligne 90: | ||
| nscp web password -- --set icinga | nscp web password -- --set icinga | ||
| ~~~ | ~~~ | ||
| + | |||
| + | 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=""> | ||
| + | ~~~ | ||
| + | |||
| + | For details run: | ||
| + | ~~~winbatch | ||
| + | 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 | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| Ligne 64: | Ligne 203: | ||
| NSCA - Nagios Service Check Acceptor : Supervision en mode actif | NSCA - Nagios Service Check Acceptor : Supervision en mode actif | ||
| + | |||
| + | |||
| + | ## Err | ||
| + | |||
| + | ~~~ | ||
| + | # / | ||
| + | could not fetch information from server | ||
| + | ~~~ | ||
| + | |||
| + | ### Solution | ||
| + | |||
| + | Dans mon cas il fallait autoriser le serveur Nagios par son nom ou son IP dans le fichier '' | ||
| + | |||
tech/notes_nsclient_nagios_windows.1744790998.txt.gz · Dernière modification : de Jean-Baptiste
