nsclient++ Beispiel Konfiguration

[/modules]
CheckDisk = 1
CheckEventLog = 1
CheckExternalScripts = 1
CheckHelpers = 1
CheckNSCP = 1
CheckSystem = 1
NRPEServer = 1
 
[/settings/default]
allowed hosts = 192.168.33.33,192.168.33.32,192.168.33.30
 
[/settings/external scripts/alias]
alias_cpu = checkCPU warn=80 crit=90 time=5m time=1m time=30s
alias_cpu_ex = checkCPU warn=$ARG1$ crit=$ARG2$ time=5m time=1m time=30s
alias_disk = CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED
alias_disk_loose = CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED ignore-unreadable
alias_event_log = CheckEventLog file=application file=system MaxWarn=1 MaxCrit=1 "filter=generated gt -2d AND severity NOT IN ('success', 'informational') AND source != 'SideBySide'" truncate=800 unique descriptions "syntax=%severity%: %source%: %message% (%count%)"
alias_file_age = checkFile2 filter=out "file=$ARG1$" filter-written=>1d MaxWarn=1 MaxCrit=1 "syntax=%filename% %write%"
alias_file_size = CheckFiles "filter=size > $ARG2$" "path=$ARG1$" MaxWarn=1 MaxCrit=1 "syntax=%filename% %size%" max-dir-depth=10
alias_mem = checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physical type=virtual type=paged type=page
alias_process = checkProcState "$ARG1$=started"
alias_process_count = checkProcState MaxWarnCount=$ARG2$ MaxCritCount=$ARG3$ "$ARG1$=started"
alias_process_hung = checkProcState MaxWarnCount=1 MaxCritCount=1 "$ARG1$=hung"
alias_process_stopped = checkProcState "$ARG1$=stopped"
alias_sched_all = CheckTaskSched "filter=exit_code ne 0" "syntax=%title%: %exit_code%" warn=>0
alias_sched_long = CheckTaskSched "filter=status = 'running' AND most_recent_run_time < -$ARG1$" "syntax=%title% (%most_recent_run_time%)" warn=>0
alias_sched_task = CheckTaskSched "filter=title eq '$ARG1$' AND exit_code ne 0" "syntax=%title% (%most_recent_run_time%)" warn=>0
alias_service = checkServiceState CheckAll
alias_service_ex = checkServiceState CheckAll "exclude=Net Driver HPZ12" "exclude=Pml Driver HPZ12" exclude=stisvc
alias_up = checkUpTime MinWarn=1d MinWarn=1h
alias_updates = check_updates -warning 0 -critical 0
alias_volumes = CheckDriveSize MinWarn=10% MinCrit=5% CheckAll=volumes FilterType=FIXED
alias_volumes_loose = CheckDriveSize MinWarn=10% MinCrit=5% CheckAll=volumes FilterType=FIXED ignore-unreadable
default = 
 
check_nrpe_cpu = checkCPU warn=70 crit=90 time=5m time=1m time=30s
check_nrpe_disk_c = CheckDriveSize ShowAll MinWarnFree=20G MinCritFree=15G Drive=C:
check_nrpe_disk_d = CheckDriveSize ShowAll MinWarnFree=50G MinCritFree=25G Drive=D:
check_nrpe_mem = CheckMEM MinWarn=2G MinCrit=1G ShowAll type=physical
check_nrpe_cache = CheckServiceState "Controller for iSCSi"
check_nrpe_iscagent = CheckServiceState "TestAgent"
check_nrpe_peersyncfile = check_files path=E:\Mandanten\Check\Check.HTM "crit=written lt -25h"
check_nrpe_peersync_bewfile = check_files path=E:\Vorlagen\ pattern=TESTDATEI1* "crit=count lt 4"
check_nrpe_peersync_insfile = check_files path=E:\Vorlagen\ pattern=TESTDATEI2* "crit=count lt 4"
check_nrpe_peersync_expfile = check_files path=E:\Vorlagen\ pattern=TESTDATEI3* "crit=count lt 4"
check_nrpe_peersync_bewfile2 = check_files path=G:\Vorlagen\ pattern=TESTDATEI1* "crit=count lt 4"
check_nrpe_peersync_insfile2 = check_files path=G:\Vorlagen\ pattern=TESTDATEI2* "crit=count lt 4"
check_nrpe_peersync_expfile2 = check_files path=G:\Vorlagen\ pattern=TESTDATEI3* "crit=count lt 4"
 
[/settings/NRPE/server]
verify mode = none
insecure = true

Sie haben weitere Fragen zu dieser Anleitung und möchten gerne mehr Informationen oder brauchen Unterstützung? Wir helfen Ihnen gerne, unsere Kontaktdaten finden Sie hier: https://df-informatik.ch/kontakt/