Alias command


#1

I have installed nsclient 4.4.3 version . I want to create my own alias command , is this possible with this version ??

[/setting/external script/alias] check_mem_use = check_memory type= physical “warn=used > 80%” “crit=used >90%”


#2

Please suggest some Solution


#3

You can use it :smiley:

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