Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Mar 29, 2024 6:29 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Tue Jan 07, 2014 6:34 pm 
Offline
Newbie

Joined: Mon Jan 06, 2014 9:30 pm
Posts: 5
Location: Germany / Berlin
I'd like to share a way to automatically run openaudit every three hours. The audit_osx.sh 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:

[code]#!/bin/bash
curl --noproxy SERVERNAME http://SERVERNAME/openaudit/audit_osx.sh | bash
[/code]

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.

[code]<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.opmantek.Openaudit</string>
<key>ProgramArguments</key>
<array>
<string>openaudit</string>
</array>
<key>StartInterval</key>
<integer>7200</integer>
</dict>
</plist>
[/code]

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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group