Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
nrpe:commandes [2023/07/05 12:53] – créée michel | nrpe:commandes [2024/12/27 06:28] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ==== WIndows | + | ==== nsclient.ini |
< | < | ||
- | /usr/lib64/nagios/plugins/check_centreon_nrpe3 | + | # If you want to fill this file with all avalible options run the following command: |
- | /usr/lib64/nagios/plugins/check_centreon_nrpe3 | + | # nscp settings --generate --add-defaults --load-all |
- | /usr/lib64/nagios/plugins/check_centreon_nrpe3 | + | # If you want to activate a module and bring in all its options use: |
- | /usr/lib64/nagios/plugins/check_centreon_nrpe3 | + | # nscp settings --activate-module <MODULE NAME> --add-defaults |
- | /usr/usr/lib64/nagios/plugins/check_centreon_nrpe3 | + | # For details run: nscp settings --help |
+ | |||
+ | |||
+ | ; Undocumented section | ||
+ | [/settings/default] | ||
+ | |||
+ | ; PASSWORD - Password used to authenticate against server | ||
+ | ;password = LJ7UGBmNZrozJKLI | ||
+ | |||
+ | ; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges. | ||
+ | allowed hosts = 172.16.106.14, | ||
+ | debug = 1 | ||
+ | |||
+ | |||
+ | ; Undocumented section | ||
+ | [/settings/NRPE/ | ||
+ | allow arguments = true | ||
+ | allow_nasty_meta_chars = 1 | ||
+ | |||
+ | ; VERIFY MODE - Comma separated list of verification flags to set on the SSL socket. | ||
+ | ssl options | ||
+ | |||
+ | ; VERIFY MODE - Comma separated list of verification flags to set on the SSL socket. | ||
+ | verify mode = none | ||
+ | |||
+ | ; ALLOW INSECURE CHIPHERS and ENCRYPTION - Only enable this if you are using legacy check_nrpe client. | ||
+ | insecure = true | ||
+ | use ssl = false | ||
+ | |||
+ | |||
+ | ; Undocumented section | ||
+ | [/ | ||
+ | |||
+ | ; NRPEServer - A server that listens for incoming NRPE connection and processes incoming requests. | ||
+ | NRPEServer = 1 | ||
+ | |||
+ | ; CheckSystem - Various system related checks, such as CPU load, process state, service state memory usage and PDH counters. | ||
+ | CheckSystem = 1 | ||
+ | |||
+ | ; NSClientServer - A server that listens for incoming check_nt connection and processes incoming requests. | ||
+ | NSClientServer = 1 | ||
+ | |||
+ | ; CheckExternalScripts - Execute external scripts | ||
+ | CheckExternalScripts = 1 | ||
+ | |||
+ | ; CheckHelpers - Various helper function to extend other checks. | ||
+ | CheckHelpers = 1 | ||
+ | |||
+ | ; NSCAClient - NSCA client can be used both from command line and from queries to submit passive checks via NSCA | ||
+ | NSCAClient = 1 | ||
+ | |||
+ | ; CheckEventLog - Check for errors and warnings in the event log. | ||
+ | CheckEventLog = 1 | ||
+ | |||
+ | ; CheckNSCP - Use this module to check the healt and status of NSClient++ it self | ||
+ | CheckNSCP = 1 | ||
+ | |||
+ | ; CheckDisk - CheckDisk can check various file and disk related things. | ||
+ | CheckDisk = 1 | ||
+ | |||
+ | ; | ||
+ | CheckTaskSched = 1 | ||
+ | |||
+ | [/ | ||
+ | allow arguments=true | ||
+ | allow nasty characters=true | ||
+ | |||
+ | [/ | ||
+ | allow arguments=true | ||
+ | allow nasty characters=true | ||
+ | |||
+ | ; A list of templates for wrapped scripts. | ||
+ | %SCRIPT% will be replaced by the actual script an %ARGS% will be replaced by any given arguments. | ||
+ | [/settings/external scripts/wrappings] | ||
+ | |||
+ | ; POWERSHELL WRAPPING - | ||
+ | ps1 = cmd /c echo C: | ||
+ | |||
+ | ; BATCH FILE WRAPPING - | ||
+ | bat = scripts\\%SCRIPT% %ARGS% | ||
+ | |||
+ | ; VISUAL BASIC WRAPPING - | ||
+ | vbs = cscript.exe | ||
+ | |||
+ | [/ | ||
+ | ;Remote ping | ||
+ | remote_ping = ping.bat " | ||
+ | |||
+ | ; | ||
+ | CollectIISCounter = CollectIISCounter.ps1 localhost " | ||
+ | CheckIISAppPoolState = CheckIISAppPoolState.ps1 | ||
+ | CheckIISCounter = CheckIISCounter.ps1 | ||
+ | CheckIISWebsiteState = CheckIISWebsiteState.ps1 -Website " | ||
+ | |||
+ | ; HYPER-V | ||
+ | check_hypv_conformite = check_hypv_conformite.ps1 $ARG1$ | ||
+ | check_nb-vcpu = check_nb-vcpu.ps1 | ||
+ | |||
+ | [/ | ||
+ | check_print_spooler = cmd /c echo scripts\check-queue-printer.ps1; | ||
+ | check_fileage=cscript.exe //nologo //T:30 scripts\\check_fileage.vbs $ARG1$ $ARG2$ $ARG3$ | ||
+ | |||
+ | ; Exchanges | ||
+ | Check_bindings_log=cmd /c echo scripts\check_bindings_log.ps1; | ||
+ | check_testps=cmd | ||
+ | Exchange-serverComponentHealth=cmd | ||
+ | Exchange-serverPoolIIS=cmd | ||
+ | Exchange-serverCertificate=cmd | ||
+ | Exchange-serverDB=cmd | ||
+ | |||
+ | ; Seal_logs | ||
+ | check_seal_log = cmd /c echo scripts\check_SEAL_log.ps1; | ||
+ | |||
+ | ; | ||
+ | check_ms_win_tasks=cmd /c echo scripts\check_ms_win_tasks.ps1; | ||
+ | |||
+ | ; A list of aliases available. | ||
+ | An alias is an internal command that has been predefined to provide | ||
+ | [/settings/external scripts/alias] | ||
+ | |||
+ | ; alias_volumes_loose - Alias for alias_volumes_loose. To configure this item add a section called: | ||
+ | alias_volumes_loose = check_drivesize | ||
+ | |||
+ | ; alias_volumes | ||
+ | alias_volumes = check_drivesize | ||
+ | |||
+ | ; alias_sched_all | ||
+ | alias_sched_all = check_tasksched show-all " | ||
+ | |||
+ | ; alias_process_stopped | ||
+ | alias_process_stopped = check_process " | ||
+ | |||
+ | ; alias_service - Alias for alias_service. To configure this item add a section called: / | ||
+ | alias_service | ||
+ | |||
+ | ; alias_process_hung - Alias for alias_process_hung. To configure this item add a section called: / | ||
+ | alias_process_hung = check_process " | ||
+ | |||
+ | ; alias_process_count - Alias for alias_process_count. To configure this item add a section called: / | ||
+ | alias_process_count = check_process " | ||
+ | |||
+ | ; alias_process - Alias for alias_process. To configure this item add a section called: / | ||
+ | alias_process = check_process " | ||
+ | |||
+ | ; alias_mem - Alias for alias_mem. To configure this item add a section called: | ||
+ | alias_mem = check_memory | ||
+ | |||
+ | ; alias_file_size - Alias for alias_file_size. To configure this item add a section called: | ||
+ | alias_file_size = check_files " | ||
+ | |||
+ | ; alias_disk - Alias for alias_disk. To configure this item add a section called: / | ||
+ | alias_disk = check_drivesize | ||
+ | |||
+ | ; alias_cpu_ex - Alias for alias_cpu_ex. To configure this item add a section called: / | ||
+ | alias_cpu_ex = check_cpu " | ||
+ | |||
+ | ; alias_file_age - Alias for alias_file_age. To configure this item add a section called: / | ||
+ | ; | ||
+ | alias_file_age = check_files " | ||
+ | |||
+ | ; alias_cpu - Alias for alias_cpu. To configure this item add a section called: / | ||
+ | alias_cpu = check_cpu | ||
+ | |||
+ | ; alias_event_log - Alias for alias_event_log. To configure this item add a section called: / | ||
+ | alias_event_log = check_eventlog | ||
+ | |||
+ | ; alias_service_ex - Alias for alias_service_ex. To configure this item add a section called: / | ||
+ | alias_service_ex = check_service | ||
+ | |||
+ | ; alias_up | ||
+ | alias_up = check_uptime | ||
+ | |||
+ | ; alias_disk_loose - Alias for alias_disk_loose. To configure this item add a section called: / | ||
+ | alias_disk_loose = check_drivesize | ||
+ | |||
+ | ; alias_sched_task - Alias for alias_sched_task. To configure this item add a section called: / | ||
+ | alias_sched_task = check_tasksched show-all | ||
+ | |||
+ | ; alias_sched_long - Alias for alias_sched_long. To configure this item add a section called: / | ||
+ | alias_sched_long = check_tasksched " | ||
</ | </ | ||
==== Linux ==== | ==== Linux ==== |