Problem running Check IIS App Pool plugin
Posted: Mon Oct 08, 2018 2:58 pm
Having trouble getting started with Check IIS Application pool plugin.
When setting up and attempting to run of nagios server we get the following:
NRPE Plugin for Nagios
Copyright (c) 1999-2008 Ethan Galstad ([email protected])
Version: 2.15
Last Modified: 09-06-2013
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required
Usage: check_nrpe -H <host> [ -b <bindaddr> ] [-4] [-6] [-n] [-u] [-p <port>] [-t <timeout>] [-c <command>] [-a <arglist...>]
Options:
-n = Do no use SSL
-u = Make socket timeouts return an UNKNOWN state instead of CRITICAL
<host> = The address of the host running the NRPE daemon
<bindaddr> = bind to local address
-4 = user ipv4 only
-6 = user ipv6 only
[port] = The port on which the daemon is running (default=5666)
[timeout] = Number of seconds before connection times out (default=10)
[command] = The name of the command that the remote daemon should run
[arglist] = Optional arguments that should be passed to the command. Multiple
arguments should be separated by a space. If provided, this must be
the last option supplied on the command line.
Note:
This plugin requires that you have the NRPE daemon running on the remote host.
You must also have configured the daemon to associate a specific plugin command
with the [command] option you are specifying here. Upon receipt of the
[command] argument, the NRPE daemon will run the appropriate plugin command and
send the plugin output and return code back to *this* plugin. This allows you
to execute plugins on remote hosts and 'fake' the results to make Nagios think
the plugin is being run locally.
When I attempt to run the command from our XI server we get the following:
[nagios@lnxvnaghq001 libexec]$ ./check_nrpe -H plbuwebhqpcf002.cinfin.com -p 5666 -t 60 -c check_ms_iis_application_pool -a "Diamond"
Arguments not allowed see nsclient.log for details
Running the command on the remote agent on the server the powershell script works fine:(NOTE I hardcoded the app pool in a test script version)
PS F:\Monitoring\NSClient++\scripts\powershell> F:\Monitoring\NSClient++\scripts\powershell\check_ms_iis_application_pooltest.ps1
OK: Application Pool "Diamond" with 1 Applications. {CPU: 100 %}{Memory: 5878.01 MB} | 'pool_cpu
'=100%;;;0;100 'pool_memory'=5878.01MB;;;0; 'app_count'=1
This is in servers nsclient log file after a few attempts:
018-10-08 15:12:10: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2018-10-08 15:12:36: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2018-10-08 15:14:03: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2018-10-08 15:16:01: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2018-10-08 15:16:55: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2018-10-08 15:28:09: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2018-10-08 15:36:48: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
Definition of command on xi server: Here is nsclient.conf:
any thoughts as to what I am doing wrong?
Thanks JK
When setting up and attempting to run of nagios server we get the following:
NRPE Plugin for Nagios
Copyright (c) 1999-2008 Ethan Galstad ([email protected])
Version: 2.15
Last Modified: 09-06-2013
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required
Usage: check_nrpe -H <host> [ -b <bindaddr> ] [-4] [-6] [-n] [-u] [-p <port>] [-t <timeout>] [-c <command>] [-a <arglist...>]
Options:
-n = Do no use SSL
-u = Make socket timeouts return an UNKNOWN state instead of CRITICAL
<host> = The address of the host running the NRPE daemon
<bindaddr> = bind to local address
-4 = user ipv4 only
-6 = user ipv6 only
[port] = The port on which the daemon is running (default=5666)
[timeout] = Number of seconds before connection times out (default=10)
[command] = The name of the command that the remote daemon should run
[arglist] = Optional arguments that should be passed to the command. Multiple
arguments should be separated by a space. If provided, this must be
the last option supplied on the command line.
Note:
This plugin requires that you have the NRPE daemon running on the remote host.
You must also have configured the daemon to associate a specific plugin command
with the [command] option you are specifying here. Upon receipt of the
[command] argument, the NRPE daemon will run the appropriate plugin command and
send the plugin output and return code back to *this* plugin. This allows you
to execute plugins on remote hosts and 'fake' the results to make Nagios think
the plugin is being run locally.
When I attempt to run the command from our XI server we get the following:
[nagios@lnxvnaghq001 libexec]$ ./check_nrpe -H plbuwebhqpcf002.cinfin.com -p 5666 -t 60 -c check_ms_iis_application_pool -a "Diamond"
Arguments not allowed see nsclient.log for details
Running the command on the remote agent on the server the powershell script works fine:(NOTE I hardcoded the app pool in a test script version)
PS F:\Monitoring\NSClient++\scripts\powershell> F:\Monitoring\NSClient++\scripts\powershell\check_ms_iis_application_pooltest.ps1
OK: Application Pool "Diamond" with 1 Applications. {CPU: 100 %}{Memory: 5878.01 MB} | 'pool_cpu
'=100%;;;0;100 'pool_memory'=5878.01MB;;;0; 'app_count'=1
This is in servers nsclient log file after a few attempts:
018-10-08 15:12:10: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2018-10-08 15:12:36: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2018-10-08 15:14:03: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2018-10-08 15:16:01: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2018-10-08 15:16:55: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2018-10-08 15:28:09: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2018-10-08 15:36:48: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
Definition of command on xi server: Here is nsclient.conf:
any thoughts as to what I am doing wrong?
Thanks JK