Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleStep 4: Test and Troubleshooting
  1. After reboot, got to Knowledge Explorer page to make sure the your rule shows up in the table.

2. If your rule doesn’t show up, check for errors in

/usr/share/indeni/logs/rules/general.log

3. If your custom rule shows up, but the alert is not triggering, change the monitoring_interval to 1 minute and reboot the Indeni service

4. If still no luck, check for errors in

/usr/share/indeni-collector/logs/collector.log and /usr/share/indeni-collector/logs/devices/device_ip.log

5. Contact Indeni Support. We are more than happy to help you get your custom rules working! Please feel free to reach out to us.

Expand
titleActual ADE files path and naming:

When you would like your code to be integrated eventually, you will need to place the above files under the correct path, and with the correct name convention. Otherwise, your script might not work properly.

Script files (yaml + parser), will be placed under the location: /usr/share/indeni-knowledge/stable/ind/parsers/src/<Vendor>/…/<New folder to represent the ADE, in lower case>/

Rule files, will be placed under the location: /usr/share/indeni-knowledge/stable/rules/<Rule Type>/<Vendor>/

Example based on the files above:
Script files: /usr/share/indeni-knowledge/stable/ind/parsers/src/bluecoat/proxysg/show-ssh-console-versions/
Rule file: /usr/share/indeni-knowledge/stable/rules/templatebased/bluecoat/proxysg/

Important notes:

1. All folder names should have lower case letters.
2. The names of the scripts folder and files, must match, otherwise, you might get an error as:
ERROR [DATE] com.indeni.commands.execution.ResultsHandler: failed to parse results of command ‘bluecoat-proxysg-ssh-version’
! java.lang.Exception: “No module named ‘ssh-version-1-enabled’”