Manual execution
The format of the plugin execution is as follows:
./proccess_messages --conf < path to configuration file > --filter_conf < path to file with message filters >
For example:
./proccess_messages --conf /var/spool/pandora/data_in/discovery/pandorafms.iot/file.conf --filter_conf /var/spool/pandora/data_in/discovery/pandorafms.iot/file_filters.conf
The execution will return an output in JSON format with information about the execution, and will generate an XML file for each agent (topic) and each message that has passed the filters, which will be sent to the Pandora FMS server by the transfer method indicated in the configuration.
For example:
{"summary": {"Total agents": 2, "Total messages": 141}}
{"summary": {"Total agents": 2, "Total messages": 2}}