Page 1 of 1

execute power shell script on nsclient 0.4.3.143.

Posted: Thu Dec 27, 2018 5:22 am
by inas.labib
Hi Team,

When i tried to execute a powershell script with nsclient version 0.4.3.143. installed on windows 2012 server. I received the following error

COMMAND: /usr/local/nagios/libexec/check_nrpe -H wp3wcwcf1p3.wdprocessing.sys -p 5666 -t 120 -c check_ms_iis_application_pool -a '-A WCF'
OUTPUT: Unknown command(s): check_ms_iis_application_pool|

Attached is the logs and nsc config file for your reference

Scripts were placed in the path :
C:\Program Files\NSClient++\scripts

Logs :
2018-12-26 23:29:50: error:D:\source\nscp\include\nscapi\nscapi_core_wrapper.cpp:159: Failed to execute command
2018-12-26 23:29:50: error:D:\source\nscp\include\nscapi\nscapi_core_helper.cpp:95: Failed to execute command: check_ms_iis_application_pool
2018-12-26 23:34:19: error:D:\source\nscp\service\NSClient++.cpp:893: Unknown command(s): check_iis8_connections available commands: commands {, alias_cpu, alias_cpu_ex, alias_disk, alias_disk_loose, alias_event_log, alias_file_age, alias_file_size, alias_mem, alias_process, alias_process_count, alias_process_hung, alias_process_stopped, alias_sched_all, alias_sched_long, alias_sched_task, alias_service, alias_service_ex, alias_up, alias_updates, alias_volumes, alias_volumes_loose, check_always_critical, check_always_ok, check_always_warning, check_counter, check_cpu, check_critical, check_drivesize, check_eventlog, check_files, check_memory, check_multi, check_negate, check_ok, check_os_version, check_pagefile, check_pdh, check_process, check_service, check_timeout, check_uptime, check_version, check_warning, check_wmi, checkalwayscritical, checkalwaysok, checkalwayswarning, checkcounter, checkcpu, checkcritical, checkdrivesize, checkeventlog, checkfiles, checkmem, checkmultiple, checkok, checkprocstate, checkservicestate, checkuptime, checkversion, checkwarning, checkwmi, filter_perf, negate, render_perf, timeout, xform_perf}, plugins {, 0, 1, 2, 3, 4, 5}

Re: execute power shell script on nsclient 0.4.3.143.

Posted: Thu Dec 27, 2018 5:24 am
by inas.labib
For this version do we need to have nsc configuration or nsclient configuration i have attached both for your reference

Re: execute power shell script on nsclient 0.4.3.143.

Posted: Thu Dec 27, 2018 10:36 am
by lmiltchev
You asked the same question in the Customer only support forum here:

https://support.nagios.com/forum/viewto ... 00#p271000

I am locking this topic. It's easier to follow up in one place.