From opCharts 4.1.0, opEvents 3.1.0, opHA 3.1.0, opReports 4.1.0 and opConfig 4.1.0 version, the .nmis configuration files will be replaced by .json files.
The installer will perform all the conversion, and it will be merging as always the old configuration items with new configuration items.
When migrate to one of these products versions, upgrading all products will be required.
A new action is available with /usr/local/omk/bin/opcommon-cli.pl to convert .nmis files to .json files if needed.
It has the following actions:
replace_qr: t/f: True by default. Will replace the qr// by "" reading the file content as a string. Please note, if the file has non quoted qr, the conversion to json will fail, with a message:
|
The installer will run the common-cli tool to convert all the .nmis files in the /conf directory into .json.
The files will be moved to the archive directory, by default conf/archive, but it can be modified in the configuration item archive_converted_files.
We can use a validator to check our JSON files syntax, like JSLint.