.. default-domain:: nscp

.. module:: CheckExternalScripts
    :synopsis: Execute external scripts

=======================================================
:module:`CheckExternalScripts` --- CheckExternalScripts
=======================================================
Execute external scripts



**Aliases (Overview)**:

A list of all short hand aliases for queries (check commands)



.. csv-table:: 
    :class: contentstable 
    :delim: | 
    :header: "Command", "Description"

    alias_cpu | Alias for: :query:`check_cpu`
    alias_cpu_ex | Alias for: :query:`check_cpu`
    alias_disk | Alias for: :query:`check_drivesize`
    alias_disk_loose | Alias for: :query:`check_drivesize`
    alias_event_log | Alias for: :query:`check_eventlog`
    alias_file_age | Alias for: :query:`check_files`
    alias_file_size | Alias for: :query:`check_files`
    alias_mem | Alias for: :query:`check_memory`
    alias_process | Alias for: :query:`check_process`
    alias_process_count | Alias for: :query:`check_process`
    alias_process_hung | Alias for: :query:`check_process`
    alias_process_stopped | Alias for: :query:`check_process`
    alias_sched_all | Alias for: :query:`check_tasksched`
    alias_sched_long | Alias for: :query:`check_tasksched`
    alias_sched_task | Alias for: :query:`check_tasksched`
    alias_service | Alias for: :query:`check_service`
    alias_service_ex | Alias for: :query:`check_service`
    alias_up | Alias for: :query:`check_uptime`
    alias_volumes | Alias for: :query:`check_drivesize`
    alias_volumes_loose | Alias for: :query:`check_drivesize`


**Commands (Overview)**: 

**TODO:** Add a list of all external commands (this is not check commands)

**Configuration (Overview)**:


Common Keys:

.. csv-table:: 
    :class: contentstable 
    :delim: | 
    :header: "Path / Section", "Key", "Description"

    :confpath:`/settings/external scripts` | :confkey:`~/settings/external scripts.allow arguments` | COMMAND ARGUMENT PROCESSING
    :confpath:`/settings/external scripts` | :confkey:`~/settings/external scripts.allow nasty characters` | COMMAND ALLOW NASTY META CHARS
    :confpath:`/settings/external scripts` | :confkey:`~/settings/external scripts.script path` | SCRIPT DIRECTORY
    :confpath:`/settings/external scripts` | :confkey:`~/settings/external scripts.timeout` | COMMAND TIMEOUT
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_cpu` | alias_cpu
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_cpu_ex` | alias_cpu_ex
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_disk` | alias_disk
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_disk_loose` | alias_disk_loose
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_event_log` | alias_event_log
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_file_age` | alias_file_age
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_file_size` | alias_file_size
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_mem` | alias_mem
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_process` | alias_process
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_process_count` | alias_process_count
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_process_hung` | alias_process_hung
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_process_stopped` | alias_process_stopped
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_sched_all` | alias_sched_all
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_sched_long` | alias_sched_long
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_sched_task` | alias_sched_task
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_service` | alias_service
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_service_ex` | alias_service_ex
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_up` | alias_up
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_volumes` | alias_volumes
    :confpath:`/settings/external scripts/alias` | :confkey:`~/settings/external scripts/alias.alias_volumes_loose` | alias_volumes_loose
    :confpath:`/settings/external scripts/alias/default` | :confkey:`~/settings/external scripts/alias/default.default` | default
    :confpath:`/settings/external scripts/scripts` | :confkey:`~/settings/external scripts/scripts.default` | default
    :confpath:`/settings/external scripts/wrappings` | :confkey:`~/settings/external scripts/wrappings.bat` | BATCH FILE WRAPPING
    :confpath:`/settings/external scripts/wrappings` | :confkey:`~/settings/external scripts/wrappings.ps1` | POWERSHELL WRAPPING
    :confpath:`/settings/external scripts/wrappings` | :confkey:`~/settings/external scripts/wrappings.vbs` | VISUAL BASIC WRAPPING

Advanced keys:

.. csv-table:: 
    :class: contentstable 
    :delim: | 
    :header: "Path / Section", "Key", "Default Value", "Description"

    :confpath:`/settings/external scripts/alias/sample/sample` | :confkey:`~/settings/external scripts/alias/sample/sample.alias` | ALIAS
    :confpath:`/settings/external scripts/alias/sample/sample` | :confkey:`~/settings/external scripts/alias/sample/sample.is template` | IS TEMPLATE
    :confpath:`/settings/external scripts/alias/sample/sample` | :confkey:`~/settings/external scripts/alias/sample/sample.parent` | PARENT
    :confpath:`/settings/external scripts/scripts/sample/sample` | :confkey:`~/settings/external scripts/scripts/sample/sample.alias` | ALIAS
    :confpath:`/settings/external scripts/scripts/sample/sample` | :confkey:`~/settings/external scripts/scripts/sample/sample.is template` | IS TEMPLATE
    :confpath:`/settings/external scripts/scripts/sample/sample` | :confkey:`~/settings/external scripts/scripts/sample/sample.parent` | PARENT

Sample keys:

.. csv-table:: 
    :class: contentstable 
    :delim: | 
    :header: "Path / Section", "Key", "Default Value", "Description"

    :confpath:`/settings/external scripts/alias/sample/sample` | :confkey:`~/settings/external scripts/alias/sample/sample.command` | COMMAND
    :confpath:`/settings/external scripts/scripts/sample/sample` | :confkey:`~/settings/external scripts/scripts/sample/sample.command` | COMMAND
    :confpath:`/settings/external scripts/scripts/sample/sample` | :confkey:`~/settings/external scripts/scripts/sample/sample.domain` | DOMAIN
    :confpath:`/settings/external scripts/scripts/sample/sample` | :confkey:`~/settings/external scripts/scripts/sample/sample.encoding` | ENCODING
    :confpath:`/settings/external scripts/scripts/sample/sample` | :confkey:`~/settings/external scripts/scripts/sample/sample.ignore perfdata` | IGNORE PERF DATA
    :confpath:`/settings/external scripts/scripts/sample/sample` | :confkey:`~/settings/external scripts/scripts/sample/sample.password` | PASSWORD
    :confpath:`/settings/external scripts/scripts/sample/sample` | :confkey:`~/settings/external scripts/scripts/sample/sample.user` | USER






/ settings/ external scripts
----------------------------

.. confpath:: /settings/external scripts
    :synopsis: EXTERNAL SCRIPT SECTION

**EXTERNAL SCRIPT SECTION**

    | Section for external scripts configuration options (CheckExternalScripts).


    .. csv-table:: 
        :class: contentstable 
        :delim: | 
        :header: "Key", "Default Value", "Description"
    
        :confkey:`allow arguments` | 0 | COMMAND ARGUMENT PROCESSING
        :confkey:`allow nasty characters` | 0 | COMMAND ALLOW NASTY META CHARS
        :confkey:`script path` |  | SCRIPT DIRECTORY
        :confkey:`timeout` | 60 | COMMAND TIMEOUT

    **Sample**::

        # EXTERNAL SCRIPT SECTION
        # Section for external scripts configuration options (CheckExternalScripts).
        [/settings/external scripts]
        allow arguments=0
        allow nasty characters=0
        script path=
        timeout=60


    .. confkey:: allow arguments
        :synopsis: COMMAND ARGUMENT PROCESSING

        **COMMAND ARGUMENT PROCESSING**

        | This option determines whether or not the we will allow clients to specify arguments to commands that are executed.

        **Path**: /settings/external scripts

        **Key**: allow arguments

        **Default value**: 0

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts]
            # COMMAND ARGUMENT PROCESSING
            allow arguments=0


    .. confkey:: allow nasty characters
        :synopsis: COMMAND ALLOW NASTY META CHARS

        **COMMAND ALLOW NASTY META CHARS**

        | This option determines whether or not the we will allow clients to specify nasty (as in \|\`&><'"\\[]{}) characters in arguments.

        **Path**: /settings/external scripts

        **Key**: allow nasty characters

        **Default value**: 0

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts]
            # COMMAND ALLOW NASTY META CHARS
            allow nasty characters=0


    .. confkey:: script path
        :synopsis: SCRIPT DIRECTORY

        **SCRIPT DIRECTORY**

        | Load all scripts in a directory and use them as commands. Probably dangerous but useful if you have loads of scripts :)

        **Path**: /settings/external scripts

        **Key**: script path

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts]
            # SCRIPT DIRECTORY
            script path=


    .. confkey:: timeout
        :synopsis: COMMAND TIMEOUT

        **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.

        **Path**: /settings/external scripts

        **Key**: timeout

        **Default value**: 60

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts]
            # COMMAND TIMEOUT
            timeout=60




…  / alias
----------

.. confpath:: /settings/external scripts/alias
    :synopsis: ALIAS SECTION

**ALIAS SECTION**

    | A list of aliases available.
    | An alias is an internal command that has been predefined to provide a single command without arguments. Be careful so you don't create loops (ie check_loop=check_a, check_a=check_loop)


    .. csv-table:: 
        :class: contentstable 
        :delim: | 
        :header: "Key", "Default Value", "Description"
    
        :confkey:`alias_cpu` |  | alias_cpu
        :confkey:`alias_cpu_ex` |  | alias_cpu_ex
        :confkey:`alias_disk` |  | alias_disk
        :confkey:`alias_disk_loose` |  | alias_disk_loose
        :confkey:`alias_event_log` |  | alias_event_log
        :confkey:`alias_file_age` |  | alias_file_age
        :confkey:`alias_file_size` |  | alias_file_size
        :confkey:`alias_mem` |  | alias_mem
        :confkey:`alias_process` |  | alias_process
        :confkey:`alias_process_count` |  | alias_process_count
        :confkey:`alias_process_hung` |  | alias_process_hung
        :confkey:`alias_process_stopped` |  | alias_process_stopped
        :confkey:`alias_sched_all` |  | alias_sched_all
        :confkey:`alias_sched_long` |  | alias_sched_long
        :confkey:`alias_sched_task` |  | alias_sched_task
        :confkey:`alias_service` |  | alias_service
        :confkey:`alias_service_ex` |  | alias_service_ex
        :confkey:`alias_up` |  | alias_up
        :confkey:`alias_volumes` |  | alias_volumes
        :confkey:`alias_volumes_loose` |  | alias_volumes_loose

    **Sample**::

        # ALIAS SECTION
        # A list of aliases available.
        [/settings/external scripts/alias]
        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_volumes=
        alias_volumes_loose=


    .. confkey:: alias_cpu
        :synopsis: alias_cpu

        **alias_cpu**

        | Alias for alias_cpu. To configure this item add a section called: /settings/external scripts/alias/alias_cpu

        **Path**: /settings/external scripts/alias

        **Key**: alias_cpu

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_cpu
            alias_cpu=


    .. confkey:: alias_cpu_ex
        :synopsis: alias_cpu_ex

        **alias_cpu_ex**

        | Alias for alias_cpu_ex. To configure this item add a section called: /settings/external scripts/alias/alias_cpu_ex

        **Path**: /settings/external scripts/alias

        **Key**: alias_cpu_ex

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_cpu_ex
            alias_cpu_ex=


    .. confkey:: alias_disk
        :synopsis: alias_disk

        **alias_disk**

        | Alias for alias_disk. To configure this item add a section called: /settings/external scripts/alias/alias_disk

        **Path**: /settings/external scripts/alias

        **Key**: alias_disk

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_disk
            alias_disk=


    .. confkey:: alias_disk_loose
        :synopsis: alias_disk_loose

        **alias_disk_loose**

        | Alias for alias_disk_loose. To configure this item add a section called: /settings/external scripts/alias/alias_disk_loose

        **Path**: /settings/external scripts/alias

        **Key**: alias_disk_loose

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_disk_loose
            alias_disk_loose=


    .. confkey:: alias_event_log
        :synopsis: alias_event_log

        **alias_event_log**

        | Alias for alias_event_log. To configure this item add a section called: /settings/external scripts/alias/alias_event_log

        **Path**: /settings/external scripts/alias

        **Key**: alias_event_log

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_event_log
            alias_event_log=


    .. confkey:: alias_file_age
        :synopsis: alias_file_age

        **alias_file_age**

        | Alias for alias_file_age. To configure this item add a section called: /settings/external scripts/alias/alias_file_age

        **Path**: /settings/external scripts/alias

        **Key**: alias_file_age

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_file_age
            alias_file_age=


    .. confkey:: alias_file_size
        :synopsis: alias_file_size

        **alias_file_size**

        | Alias for alias_file_size. To configure this item add a section called: /settings/external scripts/alias/alias_file_size

        **Path**: /settings/external scripts/alias

        **Key**: alias_file_size

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_file_size
            alias_file_size=


    .. confkey:: alias_mem
        :synopsis: alias_mem

        **alias_mem**

        | Alias for alias_mem. To configure this item add a section called: /settings/external scripts/alias/alias_mem

        **Path**: /settings/external scripts/alias

        **Key**: alias_mem

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_mem
            alias_mem=


    .. confkey:: alias_process
        :synopsis: alias_process

        **alias_process**

        | Alias for alias_process. To configure this item add a section called: /settings/external scripts/alias/alias_process

        **Path**: /settings/external scripts/alias

        **Key**: alias_process

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_process
            alias_process=


    .. confkey:: alias_process_count
        :synopsis: alias_process_count

        **alias_process_count**

        | Alias for alias_process_count. To configure this item add a section called: /settings/external scripts/alias/alias_process_count

        **Path**: /settings/external scripts/alias

        **Key**: alias_process_count

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_process_count
            alias_process_count=


    .. confkey:: alias_process_hung
        :synopsis: alias_process_hung

        **alias_process_hung**

        | Alias for alias_process_hung. To configure this item add a section called: /settings/external scripts/alias/alias_process_hung

        **Path**: /settings/external scripts/alias

        **Key**: alias_process_hung

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_process_hung
            alias_process_hung=


    .. confkey:: alias_process_stopped
        :synopsis: alias_process_stopped

        **alias_process_stopped**

        | Alias for alias_process_stopped. To configure this item add a section called: /settings/external scripts/alias/alias_process_stopped

        **Path**: /settings/external scripts/alias

        **Key**: alias_process_stopped

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_process_stopped
            alias_process_stopped=


    .. confkey:: alias_sched_all
        :synopsis: alias_sched_all

        **alias_sched_all**

        | Alias for alias_sched_all. To configure this item add a section called: /settings/external scripts/alias/alias_sched_all

        **Path**: /settings/external scripts/alias

        **Key**: alias_sched_all

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_sched_all
            alias_sched_all=


    .. confkey:: alias_sched_long
        :synopsis: alias_sched_long

        **alias_sched_long**

        | Alias for alias_sched_long. To configure this item add a section called: /settings/external scripts/alias/alias_sched_long

        **Path**: /settings/external scripts/alias

        **Key**: alias_sched_long

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_sched_long
            alias_sched_long=


    .. confkey:: alias_sched_task
        :synopsis: alias_sched_task

        **alias_sched_task**

        | Alias for alias_sched_task. To configure this item add a section called: /settings/external scripts/alias/alias_sched_task

        **Path**: /settings/external scripts/alias

        **Key**: alias_sched_task

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_sched_task
            alias_sched_task=


    .. confkey:: alias_service
        :synopsis: alias_service

        **alias_service**

        | Alias for alias_service. To configure this item add a section called: /settings/external scripts/alias/alias_service

        **Path**: /settings/external scripts/alias

        **Key**: alias_service

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_service
            alias_service=


    .. confkey:: alias_service_ex
        :synopsis: alias_service_ex

        **alias_service_ex**

        | Alias for alias_service_ex. To configure this item add a section called: /settings/external scripts/alias/alias_service_ex

        **Path**: /settings/external scripts/alias

        **Key**: alias_service_ex

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_service_ex
            alias_service_ex=


    .. confkey:: alias_up
        :synopsis: alias_up

        **alias_up**

        | Alias for alias_up. To configure this item add a section called: /settings/external scripts/alias/alias_up

        **Path**: /settings/external scripts/alias

        **Key**: alias_up

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_up
            alias_up=


    .. confkey:: alias_volumes
        :synopsis: alias_volumes

        **alias_volumes**

        | Alias for alias_volumes. To configure this item add a section called: /settings/external scripts/alias/alias_volumes

        **Path**: /settings/external scripts/alias

        **Key**: alias_volumes

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_volumes
            alias_volumes=


    .. confkey:: alias_volumes_loose
        :synopsis: alias_volumes_loose

        **alias_volumes_loose**

        | Alias for alias_volumes_loose. To configure this item add a section called: /settings/external scripts/alias/alias_volumes_loose

        **Path**: /settings/external scripts/alias

        **Key**: alias_volumes_loose

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias]
            # alias_volumes_loose
            alias_volumes_loose=




…  / alias / default
--------------------

.. confpath:: /settings/external scripts/alias/default
    :synopsis: 






    .. csv-table:: 
        :class: contentstable 
        :delim: | 
        :header: "Key", "Default Value", "Description"
    
        :confkey:`default` |  | default

    **Sample**::

        # 
        # 
        [/settings/external scripts/alias/default]
        default=


    .. confkey:: default
        :synopsis: default

        **default**

        | Alias for default. To configure this item add a section called: /settings/external scripts/alias/default/default

        **Path**: /settings/external scripts/alias/default

        **Key**: default

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias/default]
            # default
            default=




…  / alias / sample / sample
----------------------------

.. confpath:: /settings/external scripts/alias/sample/sample
    :synopsis: ALIAS DEFENITION

**ALIAS DEFENITION**

    | Alias definition for: sample


    .. csv-table:: 
        :class: contentstable 
        :delim: | 
        :header: "Key", "Default Value", "Description"
    
        :confkey:`alias` |  | ALIAS
        :confkey:`command` |  | COMMAND
        :confkey:`is template` | 0 | IS TEMPLATE
        :confkey:`parent` | default | PARENT

    **Sample**::

        # ALIAS DEFENITION
        # Alias definition for: sample
        [/settings/external scripts/alias/sample/sample]
        alias=
        command=
        is template=0
        parent=default


    .. confkey:: alias
        :synopsis: ALIAS

        **ALIAS**

        | The alias (service name) to report to server

        **Advanced** (means it is not commonly used)

        **Path**: /settings/external scripts/alias/sample/sample

        **Key**: alias

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias/sample/sample]
            # ALIAS
            alias=


    .. confkey:: command
        :synopsis: COMMAND

        **COMMAND**

        | Command to execute

        **Path**: /settings/external scripts/alias/sample/sample

        **Key**: command

        **Default value**: 

        **Sample key**: This key is provided as a sample to show how to configure objects

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias/sample/sample]
            # COMMAND
            command=


    .. confkey:: is template
        :synopsis: IS TEMPLATE

        **IS TEMPLATE**

        | Declare this object as a template (this means it will not be available as a separate object)

        **Advanced** (means it is not commonly used)

        **Path**: /settings/external scripts/alias/sample/sample

        **Key**: is template

        **Default value**: 0

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias/sample/sample]
            # IS TEMPLATE
            is template=0


    .. confkey:: parent
        :synopsis: PARENT

        **PARENT**

        | The parent the target inherits from

        **Advanced** (means it is not commonly used)

        **Path**: /settings/external scripts/alias/sample/sample

        **Key**: parent

        **Default value**: default

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/alias/sample/sample]
            # PARENT
            parent=default




…  / scripts
------------

.. confpath:: /settings/external scripts/scripts
    :synopsis: SCRIPT SECTION

**SCRIPT SECTION**

    | A list of scripts available to run from the CheckExternalScripts module. Syntax is: <command>=<script> <arguments>


    .. csv-table:: 
        :class: contentstable 
        :delim: | 
        :header: "Key", "Default Value", "Description"
    
        :confkey:`default` |  | default

    **Sample**::

        # SCRIPT SECTION
        # A list of scripts available to run from the CheckExternalScripts module. Syntax is: <command>=<script> <arguments>
        [/settings/external scripts/scripts]
        default=


    .. confkey:: default
        :synopsis: default

        **default**

        | To configure this create a section under: /settings/external scripts/scripts/default

        **Path**: /settings/external scripts/scripts

        **Key**: default

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/scripts]
            # default
            default=




…  / scripts / sample / sample
------------------------------

.. confpath:: /settings/external scripts/scripts/sample/sample
    :synopsis: COMMAND DEFENITION

**COMMAND DEFENITION**

    | Command definition for: sample


    .. csv-table:: 
        :class: contentstable 
        :delim: | 
        :header: "Key", "Default Value", "Description"
    
        :confkey:`alias` |  | ALIAS
        :confkey:`command` |  | COMMAND
        :confkey:`domain` |  | DOMAIN
        :confkey:`encoding` |  | ENCODING
        :confkey:`ignore perfdata` | 0 | IGNORE PERF DATA
        :confkey:`is template` | 0 | IS TEMPLATE
        :confkey:`parent` | default | PARENT
        :confkey:`password` |  | PASSWORD
        :confkey:`user` |  | USER

    **Sample**::

        # COMMAND DEFENITION
        # Command definition for: sample
        [/settings/external scripts/scripts/sample/sample]
        alias=
        command=
        domain=
        encoding=
        ignore perfdata=0
        is template=0
        parent=default
        password=
        user=


    .. confkey:: alias
        :synopsis: ALIAS

        **ALIAS**

        | The alias (service name) to report to server

        **Advanced** (means it is not commonly used)

        **Path**: /settings/external scripts/scripts/sample/sample

        **Key**: alias

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/scripts/sample/sample]
            # ALIAS
            alias=


    .. confkey:: command
        :synopsis: COMMAND

        **COMMAND**

        | Command to execute

        **Path**: /settings/external scripts/scripts/sample/sample

        **Key**: command

        **Default value**: 

        **Sample key**: This key is provided as a sample to show how to configure objects

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/scripts/sample/sample]
            # COMMAND
            command=


    .. confkey:: domain
        :synopsis: DOMAIN

        **DOMAIN**

        | The user to run the command as

        **Advanced** (means it is not commonly used)

        **Path**: /settings/external scripts/scripts/sample/sample

        **Key**: domain

        **Default value**: 

        **Sample key**: This key is provided as a sample to show how to configure objects

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/scripts/sample/sample]
            # DOMAIN
            domain=


    .. confkey:: encoding
        :synopsis: ENCODING

        **ENCODING**

        | The encoding to parse the command as

        **Advanced** (means it is not commonly used)

        **Path**: /settings/external scripts/scripts/sample/sample

        **Key**: encoding

        **Default value**: 

        **Sample key**: This key is provided as a sample to show how to configure objects

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/scripts/sample/sample]
            # ENCODING
            encoding=


    .. confkey:: ignore perfdata
        :synopsis: IGNORE PERF DATA

        **IGNORE PERF DATA**

        | Do not parse performance data from the output

        **Path**: /settings/external scripts/scripts/sample/sample

        **Key**: ignore perfdata

        **Default value**: 0

        **Sample key**: This key is provided as a sample to show how to configure objects

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/scripts/sample/sample]
            # IGNORE PERF DATA
            ignore perfdata=0


    .. confkey:: is template
        :synopsis: IS TEMPLATE

        **IS TEMPLATE**

        | Declare this object as a template (this means it will not be available as a separate object)

        **Advanced** (means it is not commonly used)

        **Path**: /settings/external scripts/scripts/sample/sample

        **Key**: is template

        **Default value**: 0

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/scripts/sample/sample]
            # IS TEMPLATE
            is template=0


    .. confkey:: parent
        :synopsis: PARENT

        **PARENT**

        | The parent the target inherits from

        **Advanced** (means it is not commonly used)

        **Path**: /settings/external scripts/scripts/sample/sample

        **Key**: parent

        **Default value**: default

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/scripts/sample/sample]
            # PARENT
            parent=default


    .. confkey:: password
        :synopsis: PASSWORD

        **PASSWORD**

        | The user to run the command as

        **Advanced** (means it is not commonly used)

        **Path**: /settings/external scripts/scripts/sample/sample

        **Key**: password

        **Default value**: 

        **Sample key**: This key is provided as a sample to show how to configure objects

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/scripts/sample/sample]
            # PASSWORD
            password=


    .. confkey:: user
        :synopsis: USER

        **USER**

        | The user to run the command as

        **Advanced** (means it is not commonly used)

        **Path**: /settings/external scripts/scripts/sample/sample

        **Key**: user

        **Default value**: 

        **Sample key**: This key is provided as a sample to show how to configure objects

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/scripts/sample/sample]
            # USER
            user=




…  / wrapped scripts
--------------------

.. confpath:: /settings/external scripts/wrapped scripts
    :synopsis: WRAPPED SCRIPTS SECTION

**WRAPPED SCRIPTS SECTION**

    | A list of wrapped scripts (ie. scruts using a template mechanism). The template used will be defined by the extension of the script.




    **Sample**::

        # WRAPPED SCRIPTS SECTION
        # A list of wrapped scripts (ie. scruts using a template mechanism). The template used will be defined by the extension of the script.
        [/settings/external scripts/wrapped scripts]




…  / wrappings
--------------

.. confpath:: /settings/external scripts/wrappings
    :synopsis: EXTERNAL SCRIPT WRAPPINGS SECTION

**EXTERNAL SCRIPT WRAPPINGS SECTION**

    | A list of templates for wrapped scripts.
    | %SCRIPT% will be replaced by the actual script an %ARGS% will be replaced by any given arguments.


    .. csv-table:: 
        :class: contentstable 
        :delim: | 
        :header: "Key", "Default Value", "Description"
    
        :confkey:`bat` |  | BATCH FILE WRAPPING
        :confkey:`ps1` |  | POWERSHELL WRAPPING
        :confkey:`vbs` |  | VISUAL BASIC WRAPPING

    **Sample**::

        # EXTERNAL SCRIPT WRAPPINGS SECTION
        # A list of templates for wrapped scripts.
        [/settings/external scripts/wrappings]
        bat=
        ps1=
        vbs=


    .. confkey:: bat
        :synopsis: BATCH FILE WRAPPING

        **BATCH FILE WRAPPING**



        **Path**: /settings/external scripts/wrappings

        **Key**: bat

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/wrappings]
            # BATCH FILE WRAPPING
            bat=


    .. confkey:: ps1
        :synopsis: POWERSHELL WRAPPING

        **POWERSHELL WRAPPING**



        **Path**: /settings/external scripts/wrappings

        **Key**: ps1

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/wrappings]
            # POWERSHELL WRAPPING
            ps1=


    .. confkey:: vbs
        :synopsis: VISUAL BASIC WRAPPING

        **VISUAL BASIC WRAPPING**



        **Path**: /settings/external scripts/wrappings

        **Key**: vbs

        **Default value**: 

        **Used by**: :module:`CheckExternalScripts`

        **Sample**::

            [/settings/external scripts/wrappings]
            # VISUAL BASIC WRAPPING
            vbs=


