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