Versions Compared

Key

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

...

To make another script use the menu and go to menu -> Admin -> Scripts -> Create Script. Provide a name and optionally a description. Choose a type of script to base your custom script upon. Once you do this, the Options section will populate with the available configurable options. At present Windows and Linux scripts will have the "files" details injected. See details about files here - File Auditing.
NAME - You should name your script with the correct extension. This is the name that will be provided when you download the script. It is best to not have any spaces in the name (I use underscores). IE - For Windows a name such as my_audit.vbs would be be appropriate. For any others, something.sh (ending in .sh) is advisable.
URL - If you leave the URL option as set, Open-AudIT will inject the config value for default_network_address into the URL option. With the default scripts, if left as set, Open-AudIT will inject the default network address when the script is downloaded.

Viewing Script Details

Go to menu -> Admin -> Scripts -> List Scripts.

...

Scripts are stored in the database in the "scripts" table. A typical entry will look as below. The "hash" column is not used at present.

         id: 112
       name: my_audit_aix.sh
    options: {"create_file":"n","debugging":"1","org_id":"","submit_online":"y","createsystem_fileid":"n","url":"http:\/\/192.168.88.240\/open-audit\/index.php\/system\/add_system","debugging":1}
description: The default audit AIX config. 
   based_on: audit_aix.sh
       hash: 
  edited_by: systemAdministrator
edited_date: 2016-0608-0104 0010:0040:0036

 

API Access?