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