Skip to main content

Manual execution

To run the MarkLogic NoSQL system monitoring plugin, you must pass the configuration file as an argument:

$ perl pandora_marklogic.pl
Pandora FMS Plugin for MarkLogic NoSQL Monitoring
At least one parameter is needed by this plugin:
Usage: pandora_marklogic.pl pandora_ml.conf

In the event of an error, you can check the description of the plugin message module for possible faults:

$ perl pandora_marklogic.pl pandora_ml.conf
<module>
    <name><![CDATA[Plugin message]]></name>
    <type>generic_proc</type>
    <data><![CDATA[0]]></data>
    <description><![CDATA[ No response from http://your.marklogic.server:8002/manage/LATEST/hosts?format=json
  No response from http://your.marklogic.server:8002/manage/LATEST/databases?format=json
  No response from http://your.marklogic.server:8002/manage/LATEST/forests?format=json
  No response from http://your.marklogic.server:8002/manage/LATEST/servers?format=json
 ]]></description>
    <tags>NoSQL</tags>
</module>

Example of deployment through the CRON System:

# START: Marklogic plugin
*/5 * * * * root perl /usr/share/pandora_server/util/pandora_marklogic.pl /usr/share/pandora_server/util/testing.conf
# END: Marklogic plugin