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