Usage

jailaudit <generate|mail> mailaddr "jailnames"

  • mailaddr can be "-" for stdout
  • jailnames can be "ALL", for all audits or list of hostnames

Examples

jailaudit generate generates reports for all running jails

jailaudit mail - ALL dumps the reports of all jails to STDOUT

jailaudit mail - "blub.example.com" dumps the reports of the jail with hostname "blub.example.com" to STDOUT

jailaudit mail admin@… ALL mails the reports of all jails to admin@…

jailaudit mail admin@… "blub.example.com" mails the reports of the jail with hostname "blub.example.com" to admin@…

Using the crontab

Jailaudit can also be used to send specific report mails to the owner of a jail by running it as a cronjob.

/etc/crontab example:

0 4 * * * * root /usr/local/bin/jailaudit mail admin@… "foo.example.com bar.example.com"

Sends report mails of the jails with the hostnames foo.example.com and bar.example.com to the mailaddr. admin@….