From d15820b4aa5626fb4ad0317e5f35618a6d3a0488 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 1 Aug 2013 23:20:16 +0200 Subject: [PATCH] Current state --- .etckeeper | 4 ++-- nagios/nrpe.cfg | 18 +++++++++++++++--- sudoers | 1 + vim/vimrc.local | 2 ++ 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.etckeeper b/.etckeeper index 527b5dd..470b1be 100755 --- a/.etckeeper +++ b/.etckeeper @@ -5,6 +5,7 @@ mkdir -p './courier-imap/shared' mkdir -p './courier-imap/shared.tmp' mkdir -p './dpkg/dpkg.cfg.d' mkdir -p './foomatic/direct' +mkdir -p './lvm/cache' mkdir -p './php/apache2-php5.4/ext' mkdir -p './php/apache2-php5.4/ext-active' mkdir -p './php/cgi-php5.4/ext' @@ -1061,7 +1062,6 @@ maybe chmod 0600 './lvm/archive/vg00_00000.vg' maybe chmod 0700 './lvm/backup' maybe chmod 0600 './lvm/backup/vg00' maybe chmod 0700 './lvm/cache' -maybe chmod 0600 './lvm/cache/.cache' maybe chmod 0644 './lvm/lvm.conf' maybe chmod 0644 './machine-id' maybe chmod 0755 './mail' @@ -1597,7 +1597,7 @@ maybe chmod 0644 './stunnel/stunnel.conf' maybe chmod 0644 './stunnel/stunnel.pem' maybe chmod 0440 './sudoers' maybe chmod 0750 './sudoers.d' -maybe chmod 0644 './sudoers.d/50nagios-plugins' +maybe chmod 0440 './sudoers.d/50nagios-plugins' maybe chmod 0644 './sysctl.conf' maybe chmod 0755 './sysctl.d' maybe chmod 0644 './sysctl.d/README' diff --git a/nagios/nrpe.cfg b/nagios/nrpe.cfg index e5d37bb..176b002 100644 --- a/nagios/nrpe.cfg +++ b/nagios/nrpe.cfg @@ -236,7 +236,19 @@ command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p #command[check_proc_arg]=/usr/lib64/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -a $ARG3$ command[check_swap]=/usr/lib64/nagios/plugins/check_swap -w $ARG1$ -c $ARG2$ -command[check_procs]=/opt/icinga/bin/check-procs.pl -w $ARG1$ -c $ARG2$ -s $ARG3$ -command[check_proc_arg]=/opt/icinga/bin/check-procs.pl -w $ARG1$ -c $ARG2$ -a $ARG3$ -command[check_init_proc]=/opt/icinga/bin/check-procs.pl -i -w $ARG1$ -c $ARG2$ -a $ARG3$ +command[check_nic]=/opt/icinga/bin/check-nic $ARG1$ +command[check_swraid]=/opt/icinga/bin/check_swraid -D $ARG1$ -t $ARG2$ +command[check_swraid_level]=/opt/icinga/bin/check_swraid -D $ARG1$ -t raid_level -l $ARG2$ +command[check_smart]=/opt/icinga/bin/check-smart -D $ARG1$ -w $ARG2$ -c $ARG3$ + +#command[check_procs]=/opt/icinga/bin/check-procs.pl -w $ARG1$ -c $ARG2$ -s $ARG3$ +#command[check_proc_arg]=/opt/icinga/bin/check-procs.pl -w $ARG1$ -c $ARG2$ -a $ARG3$ +#command[check_init_proc]=/opt/icinga/bin/check-procs.pl -i -w $ARG1$ -c $ARG2$ -a $ARG3$ + +command[check_procs]=/usr/bin/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$ +command[check_proc_arg]=/usr/bin/check_procs -w $ARG1$ -c $ARG2$ -a $ARG3$ +command[check_init_proc]=/usr/bin/check_procs -i -w $ARG1$ -c $ARG2$ -a $ARG3$ + +command[check_vg_free]=/usr/bin/sudo /usr/bin/check_vg_free -w $ARG1$ -c $ARG2$ $ARG3$ +command[check_vg_state]=/usr/bin/sudo /usr/bin/check_vg_state $ARG1$ diff --git a/sudoers b/sudoers index 54483d9..4f6efc0 100644 --- a/sudoers +++ b/sudoers @@ -78,6 +78,7 @@ root ALL=(ALL) ALL # %wheel ALL=(ALL) NOPASSWD: ALL frank ALL=(ALL) NOPASSWD: ALL +nagios ALL=(ALL) NOPASSWD: ALL %adm ALL=(ALL) NOPASSWD: ALL ## Uncomment to allow members of group sudo to execute any command diff --git a/vim/vimrc.local b/vim/vimrc.local index 39012aa..492bdf9 100644 --- a/vim/vimrc.local +++ b/vim/vimrc.local @@ -6,6 +6,8 @@ set modeline set showmatch set ignorecase +set list listchars=tab:»·,trail:· + if has("multi_byte") set encoding=utf-8 setglobal fileencoding=utf-8 -- 2.39.5