]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/samhain/templates/samhainrc.erb
some samhain addtions and tidy up
[dsa-puppet.git] / modules / samhain / templates / samhainrc.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 #####################################################################
7 #
8 # Configuration file template for samhain.
9 #
10 #####################################################################
11
12 # -- empty lines and lines starting with '#', ';' or '//' are ignored
13 # -- boolean options can be Yes/No or True/False or 1/0 
14 # -- you can PGP clearsign this file -- samhain will check (if compiled
15 #    with support) or otherwise ignore the signature
16 # -- CHECK mail address
17 #
18 # To each log facility, you can assign a threshold severity. Only
19 # reports with at least the threshold severity will be logged
20 # to the respective facility (even further below).
21 #
22 #####################################################################
23 #
24 # SETUP for file system checking:
25
26 # (i)   There are several policies, each has its own section. Put files
27 #       into the section for the appropriate policy (see below).
28 # (ii)  Section [EventSeverity]: 
29 #       To each policy, you can assign a severity (further below).
30 # (iii) Section [Log]: 
31 #       To each log facility, you can assign a threshold severity. Only
32 #       reports with at least the threshold severity will be logged
33 #       to the respective facility (even further below).
34 #
35 #####################################################################
36
37 #####################################################################
38 #
39 # Files are defined with: file = /absolute/path
40 #
41 # Directories are defined with:                  dir = /absolute/path
42 # or with an optional recursion depth (N <= 99): dir = N/absolute/path
43 #
44 # Directory inodes are checked. If you only want to check files
45 # in a directory, but not the directory inode itself, use (e.g.):
46 #
47 # [ReadOnly]
48 # dir = /some/directory
49 # [IgnoreAll]
50 # file = /some/directory
51 #
52 # You can use shell-style globbing patterns, like: file = /path/foo*
53
54 ######################################################################
55
56 [Misc]
57 ##
58 ## Add or subtract tests from the policies
59 ## - if you want to change their definitions,
60 ##   you need to do that before using the policies
61 ##
62 # RedefReadOnly = (no default)
63 # RedefAttributes=(no default)
64 # RedefLogFiles=(no default)
65 # RedefGrowingLogFiles=(no default)
66 # RedefIgnoreAll=(no default)
67 # RedefIgnoreNone=(no default)
68 # RedefUser0=(no default)
69 # RedefUser1=(no default)
70
71 [Attributes]
72 ##
73 ## for these files, only changes in permissions and ownership are checked
74 ##
75 file=/etc/mtab
76 file=/etc/ssh_random_seed
77 file=/etc/asound.conf
78 file=/etc/resolv.conf
79 file=/etc/localtime
80 file=/etc/ioctl.save
81 file=/etc/passwd.backup
82 file=/etc/shadow.backup
83 file=/etc/postfix/prng_exch
84 file=/etc/adjtime
85 file=/etc/lvm/.cache
86 file=/etc/lvm/cache
87 file=/etc/lvm/cache/.cache
88 file=/etc/network/run/ifstate
89 file=/var/state/samhain/samhain_file
90 file=/etc/bind/zones/db.debian.net
91 file=/etc/exim4/bsmtp
92 <% if hostname == "geo1" || hostname == "geo2" || hostname == "geo3" -%>
93 file=/etc/bind
94 file=/etc/bind/named.conf.acl
95 file=/etc/bind/named.conf.options
96 file=/etc/bind/named.conf.local
97 file=/etc/bind/geodns/named.conf.geo
98 file=/etc/bind/geodns/recvconf.files
99 <% end -%>
100
101
102 #
103 # There are files in /etc that might change, thus changing the directory
104 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
105 #
106 file=/etc
107 file=/etc/ssh
108 file=/etc/network/run
109 file=/etc/bind/zones
110 file=/etc/spamassassin/sa-update-keys
111
112 # These are the directories for the files we handle with puppet
113 file=/etc/apache2/conf.d
114 files=/etc/apache2/mods-enabled
115 file=/etc/samhain
116 file=/etc/munin
117 file=/etc/munin/plugins
118 file=/etc/exim4
119 file=/etc/exim4/ssl
120 file=/etc/apt
121 file=/etc/apt/apt.conf.d
122 file=/etc/apt/sources.list.d
123 file=/etc/default
124 file=/etc/logrotate.d
125 file=/etc/nagios
126 file=/etc/nagios/nrpe.d
127 file=/etc/nagios/obsolete-packages-ignore.d
128 file=/etc/bind/geodns
129 <%= extradir=""
130 case fqdn 
131 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
132 file=/etc/puppet"
133 else extradir="file=/etc/puppet"
134 end
135 extradir
136 %>
137 file=/etc/cron.d
138 file=/usr/lib/nagios/plugins
139 file=/usr/sbin
140 file=/etc/monit
141 file=/etc/monit/monit.d
142 file=/etc/pam.d
143 file=/etc/sysctl.d
144 file=/etc/syslog-ng
145
146
147 [LogFiles]
148 ##
149 ## for these files, changes in signature, timestamps, and size are ignored 
150 ##
151 file=/var/run/utmp
152 file=/etc/motd
153
154
155
156 #####################################################################
157 #
158 # This would be the proper syntax for parts that should only be
159 #    included for certain hosts.
160 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
161 #    result still has the proper syntax for the config file.
162 # You may have any number of @HOSTNAME/@end brackets.
163 # HOSTNAME should be the fully qualified 'official' name 
164 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
165 #    No IP number - except if samhain cannot determine the 
166 #    fully qualified hostname.
167 #
168 # @HOSTNAME
169 # file=/foo/bar
170 # @end
171 #
172 # These are two examples for conditional inclusion/exclusion
173 # of a machine based on the output from 'uname -srm'
174 #
175 # $Linux:2.*.7:i666
176 # file=/foo/bar3
177 # $end
178 #
179 # !$Linux:2.*.7:i686
180 # file=/foo/bar2
181 # $end
182 #
183 #####################################################################
184
185 [GrowingLogFiles]
186 ##
187 ## for these files, changes in signature, timestamps, and increase in size
188 ##                  are ignored 
189 ##
190 file=/var/log/warn
191 file=/var/log/messages
192 file=/var/log/wtmp
193 file=/var/log/faillog
194 file=/var/log/auth.log
195 file=/var/log/daemon.log
196 file=/var/log/user.log
197 file=/var/log/kern.log
198 file=/var/log/syslog
199
200
201 [IgnoreAll]
202 ##
203 ## for these files, no modifications are reported
204 ##
205 ## This file might be created or removed by the system sometimes.
206 ##
207 file=/etc/resolv.conf.pcmcia.save
208 file=/etc/nologin
209 file=/etc/postfix/debian.db
210 file=/etc/postfix/debian
211 file=/etc/ssh/ssh_known_hosts
212 file=/etc/ssh/ssh-rsa-shadow
213 file=/var/lib/misc/ssh-rsa-shadow
214 file=/etc/.da-backup.trace
215 file=/etc/postfix/debianhosts
216 file=/etc/postfix/debianhosts.db
217 file=/etc/blkid.tab
218 file=/etc/blkid.tab.old
219 file=/etc/resolv.conf.dhclient-new
220
221 # We handle these files with puppet - please to not be bothering us
222 file=/etc/timezone
223 file=/etc/motd.tail
224 file=/etc/ntp.conf
225 file=/etc/samhain/samhainrc
226 file=/etc/munin/munin-node.conf
227 file=/etc/userdir-ldap.confc
228 file=/etc/exim4/blacklist
229 file=/etc/exim4/host_blacklist
230 file=/etc/exim4/callout_users
231 file=/etc/exim4/exim4.conf
232 file=/etc/exim4/grey_users
233 file=/etc/exim4/helo-check
234 file=/etc/exim4/locals
235 file=/etc/exim4/localusers
236 file=/etc/exim4/manualroute
237 file=/etc/exim4/rbllist
238 file=/etc/exim4/rcpthosts
239 file=/etc/exim4/rhsbllist
240 file=/etc/exim4/virtualdomains
241 file=/etc/exim4/whitelist
242 file=/etc/exim4/local-auto.conf
243 file=/etc/exim4/local-settings.conf
244 file=/etc/exim4/ssl/ca.crt
245 file=/etc/exim4/ssl/ca.crl
246 file=/etc/exim4/ssl/thishost.crt
247 file=/etc/exim4/ssl/thishost.key
248 file=/etc/ssh/ssh_config
249 file=/etc/ssh/sshd_config
250 <%=
251 out=""
252 if not nodeinfo['heavy_exim'].empty?
253   out = '
254 file=/etc/exim4/surbl_whitelist.txt
255 file=/etc/exim4/exim_surbl.pl
256 file=/etc/exim4/ccTLD.txt
257 file=/etc/clamav-unofficial-sigs.conf
258 file=/etc/clamav-unofficial-sigs.dsa.conf
259 '
260 end
261 out
262 %>
263 file=/etc/munin/plugins/apache_accesses
264 file=/etc/munin/plugins/apache_processes
265 file=/etc/munin/plugins/apache_volume
266 file=/etc/munin/plugins/df_abs
267 file=/etc/munin/plugins/exim_mailqueue
268 file=/etc/munin/plugins/exim_mailstats
269 file=/etc/munin/plugins/postfix_mailqueue
270 file=/etc/munin/plugins/postfix_mailvolume
271 file=/etc/apache2/conf.d/ressource-limits
272 file=/etc/apache2/mods-enabled/info.conf
273 file=/etc/apache2/mods-enabled/info.load
274 file=/etc/apache2/mods-enabled/server.conf
275 file=/etc/apache2/mods-enabled/server.load
276 file=/etc/apache2/conf.d/server-status
277 file=/etc/apache2/conf.d/local-serverinfo
278 file=/etc/apt/preferences
279 file=/etc/apt/sources.list.d/volatile.list
280 file=/etc/apt/sources.list.d/security.list
281 file=/etc/apt/sources.list.d/buildd.list
282 file=/etc/apt/sources.list.d/debian.org.list
283 file=/etc/apt/sources.list.d/debian.restricted.list
284 file=/etc/apt/sources.list.d/debian.list
285 file=/etc/apt/sources.list.d/backports.org.list
286 file=/etc/apt/apt.conf.d/local-recommends
287 file=/etc/apt/apt.conf.d/local-pdiffs
288 file=/etc/puppet/puppet.conf
289 file=/etc/default/puppet
290 file=/etc/default/postgrey
291 file=/etc/logrotate.d/exim4-paniclog
292 file=/etc/logrotate.d/exim4-base
293 file=/etc/logrotate.d/syslog-ng
294 file=/etc/syslog-ng/syslog-ng.conf
295 file=/usr/sbin/dsa-update-apt-status
296 file=/usr/sbin/dsa-update-samhain-status
297 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
298 file=/etc/nagios/nrpe.d/debianorg.cfg
299 file=/etc/nagios/obsolete-packages-ignore
300 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
301 file=/usr/lib/nagios/plugins/dsa-check-packages
302 file=/usr/lib/nagios/plugins/dsa-check-soas
303 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
304 file=/usr/lib/nagios/plugins/dsa-check-samhain
305 file=/usr/lib/nagios/plugins/dsa-check-statusfile
306 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
307 file=/usr/lib/nagios/plugins/dsa-check-config
308 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
309 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
310 file=/usr/lib/nagios/plugins/dsa-check-puppet
311 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
312 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
313 file=/usr/lib/nagios/plugins/dsa-check-dabackup
314 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
315 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
316 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
317 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
318 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
319 file=/etc/sudoers
320 file=/etc/sysctl.d/mmap_min_addr.conf
321 file=/etc/pam.d/sudo
322 file=/etc/monit/monitrc
323 file=/etc/monit/monit.d/01puppet
324 file=/etc/monit/monit.d/00debian.org
325 file=/etc/cron.d/dsa-puppet-stuff
326 <%= extrafiles=""
327 case fqdn 
328 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
329 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
330 file=/etc/nagios3/puppetconf.d/auto-services.cfg
331 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
332 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
333 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
334 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
335 when "dijkstra.debian.org": extrafiles="dir=4/etc/dsa-kvm"
336 when /geo[123].debian.org/: extrafiles="dir=1/etc/bind/geodns"
337 end
338 extrafiles
339 %>
340
341 [IgnoreNone]
342 ##
343 ## for these files, all modifications (even access time) are reported
344 ##    - you may create some interesting-looking file (like /etc/safe_passwd),
345 ##      just to watch whether someone will access it ...
346 ##
347
348 [Prelink]
349 ##
350 ## Use for prelinked files or directories holding them
351 ##
352
353
354 [ReadOnly]
355 ##
356 ## for these files, only access time is ignored
357 ##
358 dir=/usr/bin
359 dir=/bin
360 dir=/boot
361 #
362 # SuSE (old) has the boot init scripts in /sbin/init.d/*, 
363 # so we go 3 levels deep
364 #
365 dir=3/sbin
366 dir=/usr/sbin
367 dir=/lib
368 dir=3/usr/lib
369 #
370 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*, 
371 #        so we go 3 levels deep there too
372 #
373 dir=3/etc
374
375 # Various directories / files that may include / be SUID/SGID binaries
376 #
377 #
378 file=/usr/lib/pt_chown
379 # X11, in Debian X7 this is now a symlink
380 #dir=/usr/X11R6/bin
381 #dir=/usr/X11R6/lib/X11/xmcd/bin
382 # Apache:
383 #file=/usr/lib/apache/suexec
384 #file=/usr/lib/apache/suexec.disabled
385 # Extra directories:
386 #dir=/opt/gnome/bin
387 #dir=/opt/kde/bin
388
389 [User0]
390 [User1]
391 ## User0 and User1 are sections for files/dirs with user-definable checking
392 ## (see the manual) 
393
394
395 [EventSeverity]
396 ##
397 ## Here you can assign severities to policy violations.
398 ## If this severity exceeds the treshold of a log facility (see below),
399 ## a policy violation will be logged to that facility.
400 ##
401 ## Severity for verification failures.
402 ##
403 # SeverityReadOnly=crit
404 # SeverityLogFiles=crit
405 # SeverityGrowingLogs=crit
406 # SeverityIgnoreNone=crit
407 # SeverityAttributes=crit
408 # SeverityUser0=crit
409 # SeverityUser1=crit
410
411 # Default behaviour
412 SeverityReadOnly=crit
413 SeverityLogFiles=crit
414 SeverityGrowingLogs=warn
415 SeverityIgnoreNone=crit
416 SeverityAttributes=crit
417
418
419 ##
420 ## We have a file in IgnoreAll that might or might not be present.
421 ## Setting the severity to 'info' prevents messages about deleted/new file.
422 ##
423 # SeverityIgnoreAll=crit
424 SeverityIgnoreAll=info
425
426 ## Files : file access problems
427 # SeverityFiles=crit
428
429 ## Dirs  : directory access problems
430 # SeverityDirs=crit
431
432 ## Names : suspect (non-printable) characters in a pathname
433 # SeverityNames=crit
434
435 # Default behaviour
436 SeverityFiles=crit
437 SeverityDirs=crit
438 SeverityNames=warn
439
440
441 [Log]
442 ##
443 ## Switch on/OFF log facilities and set their threshold severity
444 ##
445 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
446 ## 'mark' is used for timestamps.
447 ##
448 ##
449 ## Use 'none' to SWITCH OFF a log facility
450 ## 
451 ## By default, everything equal to and above the threshold is logged.
452 ## The specifiers '*', '!', and '=' are interpreted as  
453 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does, 
454 ## at least on Linux). Examples:
455 ## MailSeverity=*
456 ## MailSeverity=!warn
457 ## MailSeverity==crit
458
459 ## E-mail
460 ##
461 # MailSeverity=none
462
463 ## Console
464 ##
465 # PrintSeverity=info
466
467 ## Logfile
468 ##
469 # LogSeverity=mark
470
471 ## Syslog
472 ##
473 # SyslogSeverity=none
474
475 ## Remote server (yule)
476 ##
477 # ExportSeverity=none
478
479 ## External script or program
480 ##
481 # ExternalSeverity = none
482
483 ## Logging to a database
484 ##
485 # DatabaseSeverity = none
486
487 # Default behaviour
488 MailSeverity=crit
489 PrintSeverity=none
490 LogSeverity=info
491 SyslogSeverity=alert
492 ExportSeverity=none
493
494
495
496
497
498 #####################################################
499 #
500 # Optional modules
501 #
502 #####################################################
503
504 # [SuidCheck]
505 ##
506 ## --- Check the filesystem for SUID/SGID binaries
507 ## 
508
509 ## Switch on
510 #
511 # SuidCheckActive = yes
512
513 ## Interval for check (seconds)
514 #
515 # SuidCheckInterval = 7200
516
517 ## Alternative: crontab-like schedule
518 #
519 # SuidCheckSchedule = NULL
520  
521 ## Directory to exclude 
522 #
523 # SuidCheckExclude = NULL
524
525 ## Limit on files per second (0 == no limit)
526 #
527 # SuidCheckFps = 0
528
529 ## Alternative: yield after every file
530 #
531 # SuidCheckYield = no
532
533 ## Severity of a detection
534 #
535 # SeveritySuidCheck = crit
536
537 ## Quarantine SUID/SGID files if found
538 #
539 # SuidCheckQuarantineFiles = yes
540
541 ## Method for Quarantining files:
542 #  0 - Delete or truncate the file.
543 #  1 - Remove SUID/SGID permissions from file.
544 #  2 - Move SUID/SGID file to quarantine dir.
545 #
546 # SuidCheckQuarantineMethod = 0
547
548 ## For method 1 and 3, really delete instead of truncating
549
550 # SuidCheckQuarantineDelete = yes
551
552 # [Kernel]
553 ##
554 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only) 
555 ##
556
557 ## Switch on/off
558 #
559 KernelCheckActive = True
560
561 ## Check interval (seconds); btw., the check is VERY fast
562 #
563 # KernelCheckInterval = 300
564
565 ## Severity
566 #
567 # SeverityKernel = crit
568
569
570 # [Utmp]
571 ##
572 ## --- Logging of login/logout events
573 ##
574
575 ## Switch on/off
576 #
577 LoginCheckActive = True
578
579 ## Severity for logins, multiple logins, logouts
580
581 # SeverityLogin=info
582 # SeverityLoginMulti=warn
583 # SeverityLogout=info
584
585 ## Interval for login/logout checks
586 #
587 # LoginCheckInterval = 300
588
589
590 # [Database]
591 ##
592 ## --- Logging to a relational database
593 ##
594
595 ## Database name
596 #
597 # SetDBName = samhain
598
599 ## Database table
600 #
601 # SetDBTable = log
602
603 ## Database user
604 #
605 # SetDBUser = samhain
606
607 ## Database password
608 #
609 # SetDBPassword = (default: none)
610
611 ## Database host
612 #
613 # SetDBHost = localhost
614
615 ## Log the server timestamp for received messages
616 #
617 # SetDBServerTstamp = True
618
619 ## Use a persistent connection
620 #
621 # UsePersistent = True
622
623 # [External]
624 ##
625 ## Interface to call external scripts/programs for logging
626 ##
627
628 ## The absolute path to the command
629 ## - Each invocation of this directive will end the definition of the
630 ##   preceding command, and start the definition of 
631 ##   an additional, new command
632 #
633 # OpenCommand = (no default)
634
635 ## Type (log or rv)
636 ## - log for log messages, srv for messages received by the server
637 #
638 # SetType = log
639
640 ## The command (full command line) to execute
641 #
642 # SetCommandLine = (no default)
643
644 ## The environment (KEY=value; repeat for more)
645 #
646 # SetEnviron = TZ=(your timezone)
647
648 ## The TIGER192 checksum (optional)
649 #
650 # SetChecksum = (no default)
651
652 ## User who runs the command
653 #
654 # SetCredentials = (default: samhain process uid)
655
656 ## Words not allowed in message
657 #
658 # SetFilterNot = (none)
659
660 ## Words required (ALL of them)
661 #
662 # SetFilterAnd = (none)
663
664 ## Words required (at least one)
665 #
666 # SetFilterOr = (none)
667
668 ## Deadtime between consecutive calls
669 #
670 # SetDeadtime = 0
671
672 ## Add default environment (HOME, PATH, SHELL)
673 #
674 # SetDefault = no
675
676
677 #####################################################
678 #
679 # Miscellaneous configuration options
680 #
681 #####################################################
682
683 [Misc]
684
685 ## whether to become a daemon process
686 ## (this is not honoured on database initialisation)
687 #
688 # Daemon = no
689 Daemon = yes
690
691 ## whether to test signature of files (init/check/none)
692 ## - if 'none', then we have to decide this on the command line -
693 #
694 # ChecksumTest = none
695 ChecksumTest=check
696
697 ## whether to drop linux capabilities that are not required
698 ## - will make a root process a 'mere mortal' in many respects
699 #
700 # UseCaps = yes
701
702 ## Set nice level (-19 to 19, see 'man nice'),
703 ## and I/O limit (kilobytes per second; 0 == off)
704 ## to reduce load on host.
705 #
706 # SetNiceLevel = 0
707 # SetIOLimit = 0
708
709 ## The version string to embed in file signature databases
710 #
711 # VersionString = NULL
712
713 ## Interval between time stamp messages
714 #
715 # SetLoopTime = 60
716 SetLoopTime = 600
717
718 ## Interval between file checks 
719 #
720 # SetFileCheckTime = 600
721 SetFileCheckTime = 7200
722
723 ## Alternative: crontab-like schedule
724 #
725 # FileCheckScheduleOne = NULL
726
727 ## Alternative: crontab-like schedule(2)
728 #
729 # FileCheckScheduleTwo = NULL
730
731 ## Report only once on modified fles 
732 ## Setting this to 'FALSE' will generate a report for any policy 
733 ## violation (old and new ones) each time the daemon checks the file system.
734 #
735 # ReportOnlyOnce = True
736
737 ## Report in full detail
738 #
739 # ReportFullDetail = False
740
741 ## Report file timestamps in local time rather than GMT
742 #
743 # UseLocalTime = No
744
745 ## The console device (can also be a file or named pipe)
746 ## - There are two console devices. Accordingly, you can use
747 ##   this directive a second time to set the second console device.
748 ##   If you have not defined the second device at compile time,
749 ##   and you don't want to use it, then:
750 ##   setting it to /dev/null is less effective than just leaving
751 ##   it alone (setting to /dev/null will waste time by opening
752 ##   /dev/null and writing to it)
753 #
754 # SetConsole = /dev/console
755
756 ## Activate the SysV IPC message queue
757 #
758 # MessageQueueActive = False
759
760
761 ## If false, skip reverse lookup when connecting to a host known 
762 ## by name rather than IP address (i.e. trust the DNS)
763 #
764 # SetReverseLookup = True
765
766 ## --- E-Mail ---
767
768 # Only highest-level (alert) reports will be mailed immediately,
769 # others will be queued. Here you can define, when the queue will
770 # be flushed (Note: the queue is automatically flushed after
771 # completing a file check).
772 #
773 SetMailTime = 86400
774
775 ## Maximum number of mails to queue
776 #
777 SetMailNum = 10
778
779 ## Recipient (max. 8)
780 #
781 SetMailAddress=samhain-reports@debian.org
782
783 ## Mail relay (IP address)
784 <%=
785 out=""
786 if not nodeinfo['smarthost'].empty?
787   out = '
788 SetMailRelay = localhost
789 '
790 else
791 out = '
792 SetMailRelay = master.debian.org
793 '
794 end
795 out
796 %>
797 ## Custom subject format
798 #
799 MailSubject = [Samhain at %H] %T: %S
800
801 ## --- end E-Mail ---
802
803 ## Path to the prelink executable
804 #
805 # SetPrelinkPath = /usr/sbin/prelink
806
807 ## TIGER192 checksum of the prelink executable
808 #
809 # SetPrelinkChecksum = (no default)
810
811
812 ## Path to the executable. If set, will be checksummed after startup
813 ## and before exit.
814 #
815 # SamhainPath = (no default)
816
817
818 ## The IP address of the log server
819 #
820 # SetLogServer = (default: compiled-in)
821
822 ## The IP address of the time server
823 #
824 # SetTimeServer = (default: compiled-in)
825
826 ## Trusted Users (comma delimited list of user names) 
827 #
828 # TrustedUser = (no default; this adds to the compiled-in list)
829
830 ## Path to the file signature database
831 #
832 # SetDatabasePath = (default: compiled-in)
833
834 ## Path to the log file
835 #
836 # SetLogfilePath = (default: compiled-in)
837
838 ## Path to the PID file
839 #
840 # SetLockPath = (default: compiled-in)
841
842
843 ## The digest/checksum/hash algorithm
844 #
845 # DigestAlgo = TIGER192
846
847
848 ## Custom format for message header. 
849 ## CAREFUL if you use XML logfile format.
850 ##
851 ## %S severity
852 ## %T timestamp
853 ## %C class
854 ##
855 ## %F source file
856 ## %L source line
857 #
858 # MessageHeader="%S %T "
859
860
861 ## Don't log path to config/database file on startup
862 #
863 # HideSetup = False
864
865 ## The syslog facility, if you log to syslog
866 #
867 # SyslogFacility = LOG_AUTHPRIV
868 SyslogFacility=LOG_LOCAL2
869
870 ## The message authentication method
871 ## - If you change this, you *must* change it
872 ##   on client *and* server
873 #
874 # MACType = HMAC-TIGER
875
876
877 ## everything below is ignored
878 [EOF]
879
880 #####################################################################
881 # This would be the proper syntax for parts that should only be
882 #    included for certain hosts.
883 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
884 #    result still has the proper syntax for the config file.
885 # You may have any number of @HOSTNAME/@end brackets.
886 # HOSTNAME should be the fully qualified 'official' name 
887 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
888 #    No IP number - except if samhain cannot determine the 
889 #    fully qualified hostname.
890 #
891 # @HOSTNAME
892 # file=/foo/bar
893 # @end
894 #
895 # These are two examples for conditional inclusion/exclusion
896 # of a machine based on the output from 'uname -srm'
897 # $Linux:2.*.7:i666
898 # file=/foo/bar3
899 # $end
900 #
901 # !$Linux:2.*.7:i686
902 # file=/foo/bar2
903 # $end
904 #
905 #####################################################################