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