Merge branch 'master' into staging
[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 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
369 when "dijkstra.debian.org": extrafiles="dir=4/etc/dsa-kvm"
370 when /geo[123].debian.org/: extrafiles="dir=1/etc/bind/geodns"
371 when /(senfl|ravel|rietz|klecker).debian.org/: extrafiles="dir=1/etc/bind
372 file=/etc/bind/named.conf.debian-zones"
373 when /zandonai.debian.org/: extrafiles="dir=3/etc/lvm"
374 end
375 extrafiles
376 %>
377
378 [IgnoreNone]
379 ##
380 ## for these files, all modifications (even access time) are reported
381 ##    - you may create some interesting-looking file (like /etc/safe_passwd),
382 ##      just to watch whether someone will access it ...
383 ##
384
385 [Prelink]
386 ##
387 ## Use for prelinked files or directories holding them
388 ##
389
390
391 [ReadOnly]
392 ##
393 ## for these files, only access time is ignored
394 ##
395 dir=/usr/bin
396 dir=/bin
397 dir=/boot
398 #
399 # SuSE (old) has the boot init scripts in /sbin/init.d/*, 
400 # so we go 3 levels deep
401 #
402 dir=3/sbin
403 dir=/usr/sbin
404 dir=/lib
405 dir=3/usr/lib
406 #
407 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*, 
408 #        so we go 3 levels deep there too
409 #
410 dir=3/etc
411
412 # Various directories / files that may include / be SUID/SGID binaries
413 #
414 #
415 file=/usr/lib/pt_chown
416 # X11, in Debian X7 this is now a symlink
417 #dir=/usr/X11R6/bin
418 #dir=/usr/X11R6/lib/X11/xmcd/bin
419 # Apache:
420 #file=/usr/lib/apache/suexec
421 #file=/usr/lib/apache/suexec.disabled
422 # Extra directories:
423 #dir=/opt/gnome/bin
424 #dir=/opt/kde/bin
425
426 [User0]
427 [User1]
428 ## User0 and User1 are sections for files/dirs with user-definable checking
429 ## (see the manual) 
430
431
432 [EventSeverity]
433 ##
434 ## Here you can assign severities to policy violations.
435 ## If this severity exceeds the treshold of a log facility (see below),
436 ## a policy violation will be logged to that facility.
437 ##
438 ## Severity for verification failures.
439 ##
440 # SeverityReadOnly=crit
441 # SeverityLogFiles=crit
442 # SeverityGrowingLogs=crit
443 # SeverityIgnoreNone=crit
444 # SeverityAttributes=crit
445 # SeverityUser0=crit
446 # SeverityUser1=crit
447
448 # Default behaviour
449 SeverityReadOnly=crit
450 SeverityLogFiles=crit
451 SeverityGrowingLogs=warn
452 SeverityIgnoreNone=crit
453 SeverityAttributes=crit
454
455
456 ##
457 ## We have a file in IgnoreAll that might or might not be present.
458 ## Setting the severity to 'info' prevents messages about deleted/new file.
459 ##
460 # SeverityIgnoreAll=crit
461 SeverityIgnoreAll=info
462
463 ## Files : file access problems
464 # SeverityFiles=crit
465
466 ## Dirs  : directory access problems
467 # SeverityDirs=crit
468
469 ## Names : suspect (non-printable) characters in a pathname
470 # SeverityNames=crit
471
472 # Default behaviour
473 SeverityFiles=crit
474 SeverityDirs=crit
475 SeverityNames=warn
476
477
478 [Log]
479 ##
480 ## Switch on/OFF log facilities and set their threshold severity
481 ##
482 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
483 ## 'mark' is used for timestamps.
484 ##
485 ##
486 ## Use 'none' to SWITCH OFF a log facility
487 ## 
488 ## By default, everything equal to and above the threshold is logged.
489 ## The specifiers '*', '!', and '=' are interpreted as  
490 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does, 
491 ## at least on Linux). Examples:
492 ## MailSeverity=*
493 ## MailSeverity=!warn
494 ## MailSeverity==crit
495
496 ## E-mail
497 ##
498 # MailSeverity=none
499
500 ## Console
501 ##
502 # PrintSeverity=info
503
504 ## Logfile
505 ##
506 # LogSeverity=mark
507
508 ## Syslog
509 ##
510 # SyslogSeverity=none
511
512 ## Remote server (yule)
513 ##
514 # ExportSeverity=none
515
516 ## External script or program
517 ##
518 # ExternalSeverity = none
519
520 ## Logging to a database
521 ##
522 # DatabaseSeverity = none
523
524 # Default behaviour
525 MailSeverity=crit
526 PrintSeverity=none
527 LogSeverity=info
528 SyslogSeverity=alert
529 ExportSeverity=none
530
531
532
533
534
535 #####################################################
536 #
537 # Optional modules
538 #
539 #####################################################
540
541 # [SuidCheck]
542 ##
543 ## --- Check the filesystem for SUID/SGID binaries
544 ## 
545
546 ## Switch on
547 #
548 # SuidCheckActive = yes
549
550 ## Interval for check (seconds)
551 #
552 # SuidCheckInterval = 7200
553
554 ## Alternative: crontab-like schedule
555 #
556 # SuidCheckSchedule = NULL
557  
558 ## Directory to exclude 
559 #
560 # SuidCheckExclude = NULL
561
562 ## Limit on files per second (0 == no limit)
563 #
564 # SuidCheckFps = 0
565
566 ## Alternative: yield after every file
567 #
568 # SuidCheckYield = no
569
570 ## Severity of a detection
571 #
572 # SeveritySuidCheck = crit
573
574 ## Quarantine SUID/SGID files if found
575 #
576 # SuidCheckQuarantineFiles = yes
577
578 ## Method for Quarantining files:
579 #  0 - Delete or truncate the file.
580 #  1 - Remove SUID/SGID permissions from file.
581 #  2 - Move SUID/SGID file to quarantine dir.
582 #
583 # SuidCheckQuarantineMethod = 0
584
585 ## For method 1 and 3, really delete instead of truncating
586
587 # SuidCheckQuarantineDelete = yes
588
589 # [Kernel]
590 ##
591 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only) 
592 ##
593
594 ## Switch on/off
595 #
596 KernelCheckActive = True
597
598 ## Check interval (seconds); btw., the check is VERY fast
599 #
600 # KernelCheckInterval = 300
601
602 ## Severity
603 #
604 # SeverityKernel = crit
605
606
607 # [Utmp]
608 ##
609 ## --- Logging of login/logout events
610 ##
611
612 ## Switch on/off
613 #
614 LoginCheckActive = True
615
616 ## Severity for logins, multiple logins, logouts
617
618 # SeverityLogin=info
619 # SeverityLoginMulti=warn
620 # SeverityLogout=info
621
622 ## Interval for login/logout checks
623 #
624 # LoginCheckInterval = 300
625
626
627 # [Database]
628 ##
629 ## --- Logging to a relational database
630 ##
631
632 ## Database name
633 #
634 # SetDBName = samhain
635
636 ## Database table
637 #
638 # SetDBTable = log
639
640 ## Database user
641 #
642 # SetDBUser = samhain
643
644 ## Database password
645 #
646 # SetDBPassword = (default: none)
647
648 ## Database host
649 #
650 # SetDBHost = localhost
651
652 ## Log the server timestamp for received messages
653 #
654 # SetDBServerTstamp = True
655
656 ## Use a persistent connection
657 #
658 # UsePersistent = True
659
660 # [External]
661 ##
662 ## Interface to call external scripts/programs for logging
663 ##
664
665 ## The absolute path to the command
666 ## - Each invocation of this directive will end the definition of the
667 ##   preceding command, and start the definition of 
668 ##   an additional, new command
669 #
670 # OpenCommand = (no default)
671
672 ## Type (log or rv)
673 ## - log for log messages, srv for messages received by the server
674 #
675 # SetType = log
676
677 ## The command (full command line) to execute
678 #
679 # SetCommandLine = (no default)
680
681 ## The environment (KEY=value; repeat for more)
682 #
683 # SetEnviron = TZ=(your timezone)
684
685 ## The TIGER192 checksum (optional)
686 #
687 # SetChecksum = (no default)
688
689 ## User who runs the command
690 #
691 # SetCredentials = (default: samhain process uid)
692
693 ## Words not allowed in message
694 #
695 # SetFilterNot = (none)
696
697 ## Words required (ALL of them)
698 #
699 # SetFilterAnd = (none)
700
701 ## Words required (at least one)
702 #
703 # SetFilterOr = (none)
704
705 ## Deadtime between consecutive calls
706 #
707 # SetDeadtime = 0
708
709 ## Add default environment (HOME, PATH, SHELL)
710 #
711 # SetDefault = no
712
713
714 #####################################################
715 #
716 # Miscellaneous configuration options
717 #
718 #####################################################
719
720 [Misc]
721
722 ## whether to become a daemon process
723 ## (this is not honoured on database initialisation)
724 #
725 # Daemon = no
726 Daemon = yes
727
728 ## whether to test signature of files (init/check/none)
729 ## - if 'none', then we have to decide this on the command line -
730 #
731 # ChecksumTest = none
732 ChecksumTest=check
733
734 ## whether to drop linux capabilities that are not required
735 ## - will make a root process a 'mere mortal' in many respects
736 #
737 # UseCaps = yes
738
739 ## Set nice level (-19 to 19, see 'man nice'),
740 ## and I/O limit (kilobytes per second; 0 == off)
741 ## to reduce load on host.
742 #
743 # SetNiceLevel = 0
744 # SetIOLimit = 0
745
746 ## The version string to embed in file signature databases
747 #
748 # VersionString = NULL
749
750 ## Interval between time stamp messages
751 #
752 # SetLoopTime = 60
753 SetLoopTime = 600
754
755 ## Interval between file checks 
756 #
757 # SetFileCheckTime = 600
758 SetFileCheckTime = 7200
759
760 ## Alternative: crontab-like schedule
761 #
762 # FileCheckScheduleOne = NULL
763
764 ## Alternative: crontab-like schedule(2)
765 #
766 # FileCheckScheduleTwo = NULL
767
768 ## Report only once on modified fles 
769 ## Setting this to 'FALSE' will generate a report for any policy 
770 ## violation (old and new ones) each time the daemon checks the file system.
771 #
772 # ReportOnlyOnce = True
773
774 ## Report in full detail
775 #
776 # ReportFullDetail = False
777
778 ## Report file timestamps in local time rather than GMT
779 #
780 # UseLocalTime = No
781
782 ## The console device (can also be a file or named pipe)
783 ## - There are two console devices. Accordingly, you can use
784 ##   this directive a second time to set the second console device.
785 ##   If you have not defined the second device at compile time,
786 ##   and you don't want to use it, then:
787 ##   setting it to /dev/null is less effective than just leaving
788 ##   it alone (setting to /dev/null will waste time by opening
789 ##   /dev/null and writing to it)
790 #
791 # SetConsole = /dev/console
792
793 ## Activate the SysV IPC message queue
794 #
795 # MessageQueueActive = False
796
797
798 ## If false, skip reverse lookup when connecting to a host known 
799 ## by name rather than IP address (i.e. trust the DNS)
800 #
801 # SetReverseLookup = True
802
803 ## --- E-Mail ---
804
805 # Only highest-level (alert) reports will be mailed immediately,
806 # others will be queued. Here you can define, when the queue will
807 # be flushed (Note: the queue is automatically flushed after
808 # completing a file check).
809 #
810 SetMailTime = 86400
811
812 ## Maximum number of mails to queue
813 #
814 SetMailNum = 10
815
816 ## Recipient (max. 8)
817 #
818 SetMailAddress=samhain-reports@debian.org
819
820 ## Mail relay (IP address)
821 <%=
822 out=""
823 if not nodeinfo['smarthost'].empty?
824   out = '
825 SetMailRelay = localhost
826 '
827 else
828 out = '
829 SetMailRelay = master.debian.org
830 '
831 end
832 out
833 %>
834 ## Custom subject format
835 #
836 MailSubject = [Samhain at %H] %T: %S
837
838 ## --- end E-Mail ---
839
840 ## Path to the prelink executable
841 #
842 # SetPrelinkPath = /usr/sbin/prelink
843
844 ## TIGER192 checksum of the prelink executable
845 #
846 # SetPrelinkChecksum = (no default)
847
848
849 ## Path to the executable. If set, will be checksummed after startup
850 ## and before exit.
851 #
852 # SamhainPath = (no default)
853
854
855 ## The IP address of the log server
856 #
857 # SetLogServer = (default: compiled-in)
858
859 ## The IP address of the time server
860 #
861 # SetTimeServer = (default: compiled-in)
862
863 ## Trusted Users (comma delimited list of user names) 
864 #
865 # TrustedUser = (no default; this adds to the compiled-in list)
866
867 ## Path to the file signature database
868 #
869 # SetDatabasePath = (default: compiled-in)
870
871 ## Path to the log file
872 #
873 # SetLogfilePath = (default: compiled-in)
874
875 ## Path to the PID file
876 #
877 # SetLockPath = (default: compiled-in)
878
879
880 ## The digest/checksum/hash algorithm
881 #
882 # DigestAlgo = TIGER192
883
884
885 ## Custom format for message header. 
886 ## CAREFUL if you use XML logfile format.
887 ##
888 ## %S severity
889 ## %T timestamp
890 ## %C class
891 ##
892 ## %F source file
893 ## %L source line
894 #
895 # MessageHeader="%S %T "
896
897
898 ## Don't log path to config/database file on startup
899 #
900 # HideSetup = False
901
902 ## The syslog facility, if you log to syslog
903 #
904 # SyslogFacility = LOG_AUTHPRIV
905 SyslogFacility=LOG_LOCAL2
906
907 ## The message authentication method
908 ## - If you change this, you *must* change it
909 ##   on client *and* server
910 #
911 # MACType = HMAC-TIGER
912
913
914 ## everything below is ignored
915 [EOF]
916
917 #####################################################################
918 # This would be the proper syntax for parts that should only be
919 #    included for certain hosts.
920 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
921 #    result still has the proper syntax for the config file.
922 # You may have any number of @HOSTNAME/@end brackets.
923 # HOSTNAME should be the fully qualified 'official' name 
924 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
925 #    No IP number - except if samhain cannot determine the 
926 #    fully qualified hostname.
927 #
928 # @HOSTNAME
929 # file=/foo/bar
930 # @end
931 #
932 # These are two examples for conditional inclusion/exclusion
933 # of a machine based on the output from 'uname -srm'
934 # $Linux:2.*.7:i666
935 # file=/foo/bar3
936 # $end
937 #
938 # !$Linux:2.*.7:i686
939 # file=/foo/bar2
940 # $end
941 #
942 #####################################################################