Automatically run Open-AudIT on OSX
Page 1 of 1

Author:  Oeser [ Tue Jan 07, 2014 6:34 pm ]
Post subject:  Automatically run Open-AudIT on OSX

I'd like to share a way to automatically run openaudit every three hours. The script is located on a central http-server for easy migrating improvements to the script. All steps have to be done with by console as superuser.

First, you have to add the following script in /usr/bin/openaudit and make it executeable with chmod +x:

curl --noproxy SERVERNAME http://SERVERNAME/openaudit/ | bash

Please edit the URL for your requirements.
(It's also possible to place the original audit script in here.)

Second, you have to create a File in the directory /Library/LaunchDemons/. In my example I like to call it com.opmantek.Openaudit.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

You can edit the integer value of "StartInterval" as you like. The value is given in seconds.

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group