[Aide] aide --compare over sshfs
Jean-Louis Leroy
jll at soundobjectlogic.com
Tue Aug 29 10:56:46 EEST 2006
Hello,
I want to use aide to monitor my dedicated web server (hostname
ovh). Since I don't have any 'read-only media' I have set up aide on
another computer (named toots) which has read-only access to ovh over
sshfs. My plan is to run aide --init on ovh, copy the database to
toots, then every hour run aide --update on ovh and aide --compare on
toots.
Thus on ovh I have an /etc/aide/aide.conf that starts like this:
database=file:/var/lib/aide/aide.db
database_out=file:/var/lib/aide/aide.db.new
And, as a result of `aide --init` and `cp aide.db.new aide.db`:
ovh:/var/lib/aide# ll
total 684
-rw-r--r-- 1 root root 1268 Aug 29 09:23 aide.conf.autogenerated
-rw-r--r-- 1 root root 342825 Aug 29 09:23 aide.db
-rw------- 1 root root 342825 Aug 29 09:20 aide.db.new
I have copied aide.db to toots:/var/ovh/aide.db:
[root at toots ovh]# ll
total 344
-rw-r--r-- 1 root root 2769 Aug 29 09:30 aide.conf
-rw------- 1 root root 342825 Aug 29 09:20 aide.db
And the aide.conf starts with:
database=file:/var/ovh/aide.db
database_out=file:/dev/null
database_new=file:/mnt/ovh/aide/aide.db
/mnt/ovh/aide is a sshfs mount to ovh:/var/lib/aide
When I run `aide -c /var/ovh/aide.conf` on toots I get a "WARNING: Old
db contains a file that shouldn't be there, run --init or --update".
Obviously I have misunderstood something. Please help?
--
Jean-Louis Leroy
Sound Object Logic
http://www.soundobjectlogic.com
More information about the Aide
mailing list