IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Réseau Discussion :

Nagios-fichier de conf NSCP-


Sujet :

Réseau

  1. #1
    Membre à l'essai
    Inscrit en
    Décembre 2010
    Messages
    22
    Détails du profil
    Informations forums :
    Inscription : Décembre 2010
    Messages : 22
    Points : 23
    Points
    23
    Par défaut Nagios-fichier de conf NSCP-
    Bonjour à tous,
    J'ai découvert NSCP qui serait le nouvel utilitaire pour surveiller des agents Windows.
    Cependant j'ai des soucis de compréhension face au fichier de conf nsclient.ini
    Il n'est pas très clair à mes yeux et la documentation est très légére.

    Je n'arrive plsu à effectuer les tests que je pouvais effectuer lorsque j'utilisais NSClient++ (check_nt et check_nrpe). J'obtiens l'erreur :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Pas de données reçues de l'hôte!
    je vous transmet mon fichier de conf desfois qu'une personne ayant déjà travaillé avec NSCP pourrait me venir en aide.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
     ; Undocumented section
     
     
    [/modules]
     
    ; CheckDisk - CheckDisk can check various file and disk related things. The current version has commands to check Size of hard drives and directories.
    CheckDisk = 1
     
    ; Event log Checker. - Check for errors and warnings in the event log. This is only supported through NRPE so if you plan to use only NSClient this wont help you at all.
    CheckEventLog = 1
     
    ; Check External Scripts - A simple wrapper to run external scripts and batch files.
    CheckExternalScripts = 1
     
    ; Helper function - Various helper function to extend other checks. This is also only supported through NRPE.
    CheckHelpers = 1
     
    ; Check NSCP - Checkes the state of the agent
    CheckNSCP = 1
     
    ; CheckSystem - Various system related checks, such as CPU load, process state, service state memory usage and PDH counters.
    CheckSystem = 1
     
    ; CheckTaskSched - CheckTaskSched can check various file and disk related things. The current version has commands to check Size of hard drives and directories.
    CheckTaskSched = 1
     
    ; CheckTaskSched2 - CheckTaskSched2 can check various file and disk related things. The current version has commands to check Size of hard drives and directories.
    CheckTaskSched2 = 1
     
    ; CheckWMI - CheckWMI can check various file and disk related things. The current version has commands to check Size of hard drives and directories.
    CheckWMI = 
     
    ; File logger - Writes errors and (if configured) debug info to a text file.
    FileLogger = 1
     
    ; LUAScript - LUAScript...
    LUAScript = 
     
    ; NRPE client (w/ SSL) - A simple client for checking remote NRPE servers (think proxy). 
    NRPEClient = 1
     
    ; NRPE server - A simple server that listens for incoming NRPE connection and handles them. NRPE is preferred over NSClient as it is more flexible. You can of cource use both NSClient and NRPE.
    NRPEServer = 1
     
    ; NSCAClient - Passive check support (needs NSCA on nagios server). Avalible crypto are: {0=No Encryption (not safe), 1=XOR, 2=DES, 3=DES-EDE3, 4=CAST-128, 6=XTEA, 8=Blowfish, 9=Twofish, 11=RC2, 14=AES, 15=AES, 16=AES, 20=Serpent, 23=GOST}
    NSCAClient = 
     
    ; NSCA server (w/ encryption) - A simple server that listens for incoming NSCA connection and handles them. Avalible crypto are: {0=No Encryption (not safe), 1=XOR, 2=DES, 3=DES-EDE3, 4=CAST-128, 6=XTEA, 8=Blowfish, 9=Twofish, 11=RC2, 14=AES, 15=AES, 16=AES, 20=Serpent, 23=GOST}
    NSCAServer = 
     
    ; NSCP client - A simple client for checking remote NSCP servers (think proxy). SSL support is missing (so you cant use encryption)!
    NSCPClient = 1
     
    ; NSCP server (no SSL) - A simple server that listens for incoming NSCP connection and handles them.
    NSCPServer = 1
     
    ; NSClient server - A simple server that listens for incoming NSClient (check_nt) connection and handles them. Although NRPE is the preferred method NSClient is fully supported and can be used for simplicity or for compatibility.
    NSClientServer = 1
     
    ; Scheduler - A scheduler which schedules checks at regular intervals
    Scheduler = 
     
     
    ; Undocumented section
    [/settings/default]
     
    ; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges. Parent element can be found under: /settings/default
    allowed hosts = @ip SRV NAGIOS
     
    ; BIND TO ADDRESS - Allows you to bind server to a specific local address. This has to be a dotted ip address not a host name. Leaving this blank will bind to all available IP addresses. Parent element can be found under: /settings/default
    bind to = 
     
    ; CACHE ALLOWED HOSTS - If hostnames should be cached, improves speed and security somewhat but wont allow you to have dynamic IPs for your nagios server. Parent element can be found under: /settings/default
    cache allowed hosts = false
     
    ; SSL CERTIFICATE -  Parent element can be found under: /settings/default
    certificate = ${certificate-path}/nrpe_dh_512.pem
     
    ; INBOX - The default channel to post incoming messages on Parent element can be found under: /settings/default
    inbox = inbox
     
    ; PASSWORD - Password used to authenticate againast server Parent element can be found under: /settings/default
    password = P@ssword
     
    ; LISTEN QUEUE - Number of sockets to queue before starting to refuse new incoming connections. This can be used to tweak the amount of simultaneous sockets that the server accepts. Parent element can be found under: /settings/default
    socket queue size = 0
     
    ; THREAD POOL -  Parent element can be found under: /settings/default
    thread pool = 10
     
    ; TIMEOUT - Timeout when reading packets on incoming sockets. If the data has not arrived within this time we will bail out. Parent element can be found under: /settings/default
    timeout = 30
     
    ; ENABLE SSL ENCRYPTION - This option controls if SSL should be enabled. Parent element can be found under: /settings/default
    use ssl = false
     
     
    ; Section for NRPE active/passive check module.
    [/settings/NRPE/client]
     
    ; CHANNEL - The channel to listen to.
    channel = NRPE
     
     
    ; Section for NRPE (NRPEListener.dll) (check_nrpe) protocol options.
    [/settings/NRPE/server]
     
    ; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
    allow arguments = false
     
    ; COMMAND ALLOW NASTY META CHARS - This option determines whether or not the we will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
    allow nasty characters = false
     
    ; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges. Parent element can be found under: /settings/default
    allowed hosts = @ip SRV NAGIOS
     
    ; BIND TO ADDRESS - Allows you to bind server to a specific local address. This has to be a dotted ip address not a host name. Leaving this blank will bind to all available IP addresses. Parent element can be found under: /settings/default
    bind to = 
     
    ; CACHE ALLOWED HOSTS - If hostnames should be cached, improves speed and security somewhat but wont allow you to have dynamic IPs for your nagios server. Parent element can be found under: /settings/default
    cache allowed hosts = false
     
    ; SSL CERTIFICATE -  Parent element can be found under: /settings/default
    certificate = ${certificate-path}/nrpe_dh_512.pem
     
    ; PAYLOAD LENGTH - Length of payload to/from the NRPE agent. This is a hard specific value so you have to "configure" (read recompile) your NRPE agent to use the same value for it to work.
    payload length = 1024
     
    ; PERFORMANCE DATA - Send performance data back to nagios (set this to 0 to remove all performance data).
    performance data = false
     
    ; PORT NUMBER - Port to use for NRPE.
    port = 5666
     
    ; LISTEN QUEUE - Number of sockets to queue before starting to refuse new incoming connections. This can be used to tweak the amount of simultaneous sockets that the server accepts. Parent element can be found under: /settings/default
    socket queue size = 0
     
    ; THREAD POOL -  Parent element can be found under: /settings/default
    thread pool = 10
     
    ; TIMEOUT - Timeout when reading packets on incoming sockets. If the data has not arrived within this time we will bail out. Parent element can be found under: /settings/default
    timeout = 30
     
    ; ENABLE SSL ENCRYPTION - This option controls if SSL should be enabled. Parent element can be found under: /settings/default
    use ssl = false
     
     
    ; Section for NSCA passive check module.
    [/settings/NSCA/client]
     
    ; CHANNEL - The channel to listen to.
    channel = NSCA
     
    ; DELAY - 
    delay = 0
     
    ; HOSTNAME - The host name of this host if set to blank (default) the windows name of the computer will be used.
    hostname = auto
     
     
    ; Section for NSCA (NSCAServer) (check_nsca) protocol options.
    [/settings/NSCA/server]
     
    ; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges. Parent element can be found under: /settings/default
    allowed hosts = 127.0.0.1
     
    ; BIND TO ADDRESS - Allows you to bind server to a specific local address. This has to be a dotted ip address not a host name. Leaving this blank will bind to all available IP addresses. Parent element can be found under: /settings/default
    bind to = 
     
    ; CACHE ALLOWED HOSTS - If hostnames should be cached, improves speed and security somewhat but wont allow you to have dynamic IPs for your nagios server. Parent element can be found under: /settings/default
    cache allowed hosts = false
     
    ; ENCRYPTION - Encryption to use
    encryption = aes
     
    ; INBOX - The default channel to post incoming messages on Parent element can be found under: /settings/default
    inbox = inbox
     
    ; PASSWORD - Password to use
    password = 
     
    ; PAYLOAD LENGTH - Length of payload to/from the NSCA agent. This is a hard specific value so you have to "configure" (read recompile) your NSCA agent to use the same value for it to work.
    payload length = 512
     
    ; PERFORMANCE DATA - Send performance data back to nagios (set this to 0 to remove all performance data).
    performance data = false
     
    ; PORT NUMBER - Port to use for NSCA.
    port = 5667
     
    ; LISTEN QUEUE - Number of sockets to queue before starting to refuse new incoming connections. This can be used to tweak the amount of simultaneous sockets that the server accepts. Parent element can be found under: /settings/default
    socket queue size = 0
     
    ; THREAD POOL -  Parent element can be found under: /settings/default
    thread pool = 10
     
    ; TIMEOUT - Timeout when reading packets on incoming sockets. If the data has not arrived within this time we will bail out. Parent element can be found under: /settings/default
    timeout = 30
     
     
    ; Section for NSCP active/passive check module.
    [/settings/NSCP/client]
     
    ; CHANNEL - The channel to listen to.
    channel = NSCP
     
     
    ; Section for NSClient (NSClientServer.dll) (check_nt) protocol options.
    [/settings/NSClient/server]
     
    ; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges. Parent element can be found under: /settings/default/socket
    allowed hosts = @ip SRV NAGIOS
     
    ; BIND TO ADDRESS - Allows you to bind server to a specific local address. This has to be a dotted ip address not a host name. Leaving this blank will bind to all available IP addresses. Parent element can be found under: /settings/default/socket
    bind to = 
     
    ; CACHE ALLOWED HOSTS - If hostnames should be cached, improves speed and security somewhat but wont allow you to have dynamic IPs for your nagios server. Parent element can be found under: /settings/default/socket
    cache allowed hosts = false
     
    ; SSL CERTIFICATE -  Parent element can be found under: /settings/default/socket
    ;certificate = ${certificate-path}/nrpe_dh_512.pem
     
    ; PASSWORD - Password used to authenticate againast server Parent element can be found under: /settings/default
    password = P@ssword
    ; PERFORMANCE DATA - Send performance data back to nagios (set this to 0 to remove all performance data).
    performance data = false
     
    ; PORT NUMBER - Port to use for check_nt.
    port = 12489
     
    ; LISTEN QUEUE - Number of sockets to queue before starting to refuse new incoming connections. This can be used to tweak the amount of simultaneous sockets that the server accepts. Parent element can be found under: /settings/default/socket
    socket queue size = 0
     
    ; THREAD POOL -  Parent element can be found under: /settings/default/socket
    thread pool = 10
     
    ; TIMEOUT - Timeout when reading packets on incoming sockets. If the data has not arrived within this time we will bail out. Parent element can be found under: /settings/default/socket
    timeout = 30
     
    ; ENABLE SSL ENCRYPTION - This option controls if SSL should be enabled. Parent element can be found under: /settings/default/socket
    use ssl = false
     
     
    ; Configure crash handling properties.
    [/settings/crash]
     
    ; ARCHIVE CRASHREPORTS - Archive crash reports in the archive folder
    archive = false
     
    ; folder - The archive folder for crash dunpes.
    archive folder = ${shared-path}/crash-dumps
     
    ; RESTART - Submit crash reports to nsclient.org (or your configured submission server)
    restart = false
     
    ; RESTART SERVICE NAME - The url to submit crash reports to
    restart target = NSClientpp
     
    ; SUBMIT CRASHREPORTS - Submit crash reports to nsclient.org (or your configured submission server)
    submit = false
     
    ; SUBMISSION URL - The url to submit crash reports to
    submit url = http://crash.nsclient.org/submit
     
     
    ; Section for the EventLog Checker (CheckEventLog.dll).
    [/settings/eventlog]
     
    ; BUFFER_SIZE - The size of the buffer to use when getting messages this affects the speed and maximum size of messages you can recieve.
    buffer size = 131072
     
    ; DEBUG - Log more information when filtering (usefull to detect issues with filters) not usefull in production as it is a bit of a resource hog.
    debug = true
     
    ; LOOKUP NAMES - Lookup the names of eventlog files
    lookup names = false
     
    ; SYNTAX - Set this to use a specific syntax string for all commands (that don't specify one).
    syntax = 
     
     
    ; A set of options to configure the real time checks
    [/settings/eventlog/real-time]
     
    ; DESTINATION - The destination for intercepted messages
    destination = NSCA
     
    ; REAL TIME CHECKING - Spawns a backgrounnd thread which detects issues and reports them back instantly.
    enabled = false
     
    ; STARTUP AGE - The initial age to scan when starting NSClient++
    filter = 
     
    ; MESSAGE LANGUAGE - The language to use for rendering message (mainly used fror testing)
    language = 
     
    ; LOGS TO CHECK - Coma separated list of logs to check
    log = application
     
    ; MAGIMUM AGE - How long befor reporting "ok" (if this is set to off no ok will be reported only errors)
    maximum age = 5m
     
    ; STARTUP AGE - The initial age to scan when starting NSClient++
    startup age = 30m
     
    ; STARTUP AGE - The initial age to scan when starting NSClient++
    syntax = %type% %source%: %message%
     
     
    ; Section for external scripts configuration options (CheckExternalScripts).
    [/settings/external scripts]
     
    ; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
    allow arguments = false
     
    ; COMMAND ALLOW NASTY META CHARS - This option determines whether or not the we will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
    allow nasty characters = false
     
    ; SCRIPT DIRECTORY - Load all scripts in a directory and use them as commands. Probably dangerous but useful if you have loads of scripts :)
    script path = 
     
    ; COMMAND TIMEOUT - The maximum time in seconds that a command can execute. (if more then this execution will be aborted). NOTICE this only affects external commands not internal ones.
    timeout = 60
     
     
    ; Configure loggning properties.
    [/settings/file logger]
     
    ; DATEMASK - The size of the buffer to use when getting messages this affects the speed and maximum size of messages you can recieve. Parent element can be found under: /settings/log
    date format = %Y-%m-%d %H:%M:%S
     
    ; FILENAME - The file to write log data to. If no directory is used this is relative to the NSClient++ binary. Parent element can be found under: /settings/log
    file name = 
     
    ; LOG LEVEL - The log level info, error, warning, critical, debug Parent element can be found under: /settings/log
    level = info
     
    ; MAXIMUM FILE SIZE - When file size reaches this it will be truncated to 50% if set to 0 (default) truncation will be disabled Parent element can be found under: /settings/log
    max size = 0
     
    ; ROOT - Set this to use a specific syntax string for all commands (that don't specify one). Parent element can be found under: /settings/log
    root = auto
     
     
    ; Section for configuring the log handling.
    [/settings/log]
     
    ; DATEMASK - The size of the buffer to use when getting messages this affects the speed and maximum size of messages you can recieve. Parent element can be found under: /settings/log
    date format = %Y-%m-%d %H:%M:%S
     
    ; FILENAME - The file to write log data to. If no directory is used this is relative to the NSClient++ binary. Parent element can be found under: /settings/log
    file name = 
     
    ; LOG LEVEL - The log level info, error, warning, critical, debug Parent element can be found under: /settings/log
    level = info
     
    ; MAXIMUM FILE SIZE - When file size reaches this it will be truncated to 50% if set to 0 (default) truncation will be disabled Parent element can be found under: /settings/log
    max size = 0
     
    ; ROOT - Set this to use a specific syntax string for all commands (that don't specify one). Parent element can be found under: /settings/log
    root = auto
     
     
    ; Section for NSCP (NSCPListener.dll) (check_nscp) protocol options.
    [/settings/nscp/server]
     
    ; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges. Parent element can be found under: /settings/default
    allowed hosts = @ip SRV NAGIOS
     
    ; BIND TO ADDRESS - Allows you to bind server to a specific local address. This has to be a dotted ip address not a host name. Leaving this blank will bind to all available IP addresses. Parent element can be found under: /settings/default
    bind to = 
     
    ; CACHE ALLOWED HOSTS - If hostnames should be cached, improves speed and security somewhat but wont allow you to have dynamic IPs for your nagios server. Parent element can be found under: /settings/default
    cache allowed hosts = false
     
    ; SSL CERTIFICATE -  Parent element can be found under: /settings/default
    certificate = ${certificate-path}/nrpe_dh_512.pem
     
    ; PORT NUMBER - Port to use for NSCP.
    port = 5668
     
    ; LISTEN QUEUE - Number of sockets to queue before starting to refuse new incoming connections. This can be used to tweak the amount of simultaneous sockets that the server accepts. Parent element can be found under: /settings/default
    socket queue size = 0
     
    ; THREAD POOL -  Parent element can be found under: /settings/default
    thread pool = 10
     
    ; TIMEOUT - Timeout when reading packets on incoming sockets. If the data has not arrived within this time we will bail out. Parent element can be found under: /settings/default
    timeout = 30
     
    ; ENABLE SSL ENCRYPTION - This option controls if SSL should be enabled. Parent element can be found under: /settings/default
    use ssl = false
     
     
    ; Section for the Scheduler module.
    [/settings/scheduler]
     
    ; THREAD COUNT - Number of threads to use.
    threads = 5
     
     
    ; Section for configuring the shared session.
    [/settings/shared session]
     
    ; LOG LEVEL - Log level to use
    enabled = false
     
     
    [/settings/NRPE/client/targets/default]
     
    ; TARGET ADDRESS - Target host address
    address = 
     
    ; TARGET ALIAS - The alias for the target
    alias = default
     
    ; SSL CERTIFICATE - 
    certificate = ${certificate-path}/nrpe_dh_512.pem
     
    ; TARGET HOST - The target server to report results to.
    host = 
     
    ; IS TEMPLATE - Declare this object as a template (this means it will not be avalible as a separate object)
    is template = false
     
    ; TARGET PARENT - The parent the target inherits from
    parent = default
     
    ; PAYLOAD LENGTH - Length of payload to/from the NRPE agent. This is a hard specific value so you have to "configure" (read recompile) your NRPE agent to use the same value for it to work.
    payload length = 1024
     
    ; TARGET PORT - The target server port
    port = 0
     
    ; TIMEOUT - Timeout when reading/writing packets to/from sockets.
    timeout = 30
     
    ; ENABLE SSL ENCRYPTION - This option controls if SSL should be enabled.
    use ssl = false
     
     
    [/settings/NSCA/client/targets/default]
     
    ; TARGET ADDRESS - Target host address
    address = 
     
    ; TARGET ALIAS - The alias for the target
    alias = default
     
    ; ENCRYPTION METHOD - Number corresponding to the various encryption algorithms (see the wiki). Has to be the same as the server or it wont work at all.
    encryption = aes
     
    ; TARGET HOST - The target server to report results to.
    host = 
     
    ; IS TEMPLATE - Declare this object as a template (this means it will not be avalible as a separate object)
    is template = false
     
    ; TARGET PARENT - The parent the target inherits from
    parent = default
     
    ; PASSWORD - The password to use. Again has to be the same as the server or it wont work at all.
    password = 
     
    ; PAYLOAD LENGTH - Length of payload to/from the NRPE agent. This is a hard specific value so you have to "configure" (read recompile) your NRPE agent to use the same value for it to work.
    payload length = 512
     
    ; TARGET PORT - The target server port
    port = 0
     
    ; TIME OFFSET - Time offset.
    time offset = 0
     
    ; TIMEOUT - Timeout when reading/writing packets to/from sockets.
    timeout = 30
     
     
    [/settings/NSCP/client/targets/default]
     
    ; TARGET ADDRESS - Target host address
    address = 172.16.1.139
     
    ; TARGET ALIAS - The alias for the target
    alias = default
     
    ; SSL CERTIFICATE - 
    certificate = ${certificate-path}/nrpe_dh_512.pem
     
    ; TARGET HOST - The target server to report results to.
    host = @ip SRV NAGIOS
     
    ; IS TEMPLATE - Declare this object as a template (this means it will not be avalible as a separate object)
    is template = false
     
    ; TARGET PARENT - The parent the target inherits from
    parent = default
     
    ; TARGET PORT - The target server port
    port = 0
     
    ; TIMEOUT - Timeout when reading/writing packets to/from sockets.
    timeout = 30
     
    ; ENABLE SSL ENCRYPTION - This option controls if SSL should be enabled.
    use ssl = false
     
     
    [/settings/default/socket]
     
    ; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges. Parent element can be found under: /settings/default/socket
    allowed hosts = 127.0.0.1
     
    ; BIND TO ADDRESS - Allows you to bind server to a specific local address. This has to be a dotted ip address not a host name. Leaving this blank will bind to all available IP addresses. Parent element can be found under: /settings/default/socket
    bind to = 
     
    ; CACHE ALLOWED HOSTS - If hostnames should be cached, improves speed and security somewhat but wont allow you to have dynamic IPs for your nagios server. Parent element can be found under: /settings/default/socket
    cache allowed hosts = false
     
    ; SSL CERTIFICATE -  Parent element can be found under: /settings/default/socket
    certificate = ${certificate-path}/nrpe_dh_512.pem
     
    ; LISTEN QUEUE - Number of sockets to queue before starting to refuse new incoming connections. This can be used to tweak the amount of simultaneous sockets that the server accepts. Parent element can be found under: /settings/default/socket
    socket queue size = 0
     
    ; THREAD POOL -  Parent element can be found under: /settings/default/socket
    thread pool = 10
     
    ; TIMEOUT - Timeout when reading packets on incoming sockets. If the data has not arrived within this time we will bail out. Parent element can be found under: /settings/default/socket
    timeout = 30
     
    ; ENABLE SSL ENCRYPTION - This option controls if SSL should be enabled. Parent element can be found under: /settings/default/socket
    use ssl = false
     
     
    ; Target definition for: default
    [/settings/NRPE/client/targets/default/default]
     
     
    ; Target definition for: default
    [/settings/NSCA/client/targets/default/default]
     
     
    ; Target definition for: default
    [/settings/NSCP/client/targets/default/default]
     
     
    ; Section for system checks and system settings
    [/settings/check/system/windows]
     
     
    ; Confiure which services has to be in which state
    [/settings/check/system/windows/service mapping]
     
     
    ; Section for system checks and system settings
    [/settings/check/task schedule]
     
     
    ; A set of filters to use in real-time mode
    [/settings/eventlog/real-time/filters]
     
     
    ; A list of aliases available. An alias is an internal command that has been "wrapped" (to add arguments). Be careful so you don't create loops (ie check_loop=check_a, check_a=check_loop)
    [/settings/external scripts/alias]
     
     
    ; A list of scripts available to run from the CheckExternalScripts module. Syntax is: <command>=<script> <arguments>
    [/settings/external scripts/scripts]
     
     
    ; A list of wrappped scripts (ie. using the template mechanism)
    [/settings/external scripts/wrapped scripts]
     
     
    ; A list of templates for wrapped scripts
    [/settings/external scripts/wrappings]
     
     
    ; Section for the LUAScripts module.
    [/settings/lua]
     
     
    ; A list of scripts available to run from the LuaSCript module.
    [/settings/lua/scripts]
     
     
    ; Section for the Scheduler module.
    [/settings/scheduler/schedules]
     
     
    ; A list of avalible remote target systems
    [/settings/targets]
    Je vous remercie pour l'aide que vous pourriez m'apporter et pour celle que vous m'avez déjà apporter.

    David

  2. #2
    Membre à l'essai
    Inscrit en
    Décembre 2010
    Messages
    22
    Détails du profil
    Informations forums :
    Inscription : Décembre 2010
    Messages : 22
    Points : 23
    Points
    23
    Par défaut
    Bonjour tout le monde,
    Je continu à me pencher sur le problème que m'a apporté NSCP.
    J'ai remarqué que la connection s'établissait bien entre mon serveur Nagios et mon serveur à superviser, que j'ai vérifié avec un netstat -an qui me renvoie
    TCP @IP_ Srv_SUP:12489 @IP_SRV_Nagios: xxx etablie
    J'en déduis donc que mes modules sont opérationnels et je me raproche encore d'un problème de conf sur mon serveur à superviser.



    Au passage j'ai l'impression que les commandes du menu démarré start/stop ne fonctionne pas ! J'utilise donc services.msc afin d'être sur du redémarrage de mon service.

Discussions similaires

  1. Le fichier smb.conf
    Par trattos dans le forum Réseau
    Réponses: 3
    Dernier message: 21/02/2006, 11h57
  2. [Framework] Découper un fichier de conf
    Par Tiaps dans le forum Spring
    Réponses: 10
    Dernier message: 17/11/2005, 14h52
  3. [Plugin][Jar] Chargement fichier de conf d'un jar
    Par vberetti dans le forum Eclipse Platform
    Réponses: 2
    Dernier message: 29/06/2005, 14h03
  4. Un fichier xorg.conf ?
    Par Michaël dans le forum Applications et environnements graphiques
    Réponses: 4
    Dernier message: 28/10/2004, 18h19
  5. Réponses: 4
    Dernier message: 19/03/2004, 11h48

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo