Skip to content

PythonScript

Loads and processes internal Python scripts

Enable module

To enable this module and and allow using the commands you need to ass PythonScript = enabled to the [/modules] section in nsclient.ini:

[/modules]
PythonScript = enabled

Configuration

Path / Section Description
/settings/python
/settings/python/scripts Python scripts

/settings/python

Key Default Value Description
python cache Python cache
python lib libpython3.12.so Python lib
# 
[/settings/python]
python lib=libpython3.12.so

Python cache

Override python cache folder.

Key Description
Path: /settings/python
Key: python cache
Default value: N/A
Used by: PythonScript

Sample:

[/settings/python]
# Python cache
python cache=

Python lib

The python DLL to load

Key Description
Path: /settings/python
Key: python lib
Default value: libpython3.12.so
Used by: PythonScript

Sample:

[/settings/python]
# Python lib
python lib=libpython3.12.so

Python scripts

A list of scripts available to run from the PythonScript module.

This is a section of objects. This means that you will create objects below this point by adding sections which all look the same.