Download Documentation
Transcript
Driver
Parameter
RequiredDescription
driver *
set to file to generate OpenNMS requisitions as XML file
target *
path/to/output/folder for XML files to generate
requisitions
parameter as Java regular expression filter for the requisition name
Example configuration for a file based requisition
### File: global.properties
# Generate an requistion and create an requisition file to target
# Create a file for all requisitions matching * (Java regular expression)
loglevel = INFO
driver = file
target = /my/output/folder
requistions = *
3.2. HTTP Driver
The HTTP driver starts PRIS as a web server to provide the OpenNMS requisition over
HTTP.
Parameter
RequiredDescription
driver *
set to http run as web server and provide requisitions over HTTP
host
*
Network interface for listening, e.g. 0.0.0.0 = all, 127.0.0.1 =
localhost
port
*
TCP port to listen for incoming requests. Default is 8000
Access to the requisition can be tested with a browser to URL http://<yourip>:<port>8000/requisitions/<name-requisition-cfg>. The path name-requisition-cfg is
the folder name which runs the requisition configuration located in your PRIS server
directory.
Example configuration for a web server provided requisition
### File: global.properties
# Start web server
# The web server listens on all interfaces and can be accessed on TCP port
8000
# URL: http://${your-ip}:8000/requisitions/${name-requisition-cfg}
driver = http
11