- nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C pickup -a 'pickup -l -t fifo -u -c'"
- hostgroups: postfix-hosts
- depends: process - postfix - master
- -
- name: process - postfix - anvil
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:1 -c 0: -u postfix -C anvil -a 'anvil -l -t unix -u'"
- hostgroups: postfix-hosts
- depends: process - postfix - master
-
- -
- name: process - postfix - trivial-rewrite
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C trivial-rewrite -a 'trivial-rewrite -n rewrite -t unix -u -c'"
- hostgroups: postfix-hosts
- depends: process - postfix - master
- -
- name: process - postfix - proxymap
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C proxymap -a 'proxymap -t unix -u'"
- hostgroups: postfix-hosts
- depends: process - postfix - master
- -
- name: process - postfix - cleanup
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C cleanup -a 'cleanup -z -t unix -u -c'"
- hostgroups: postfix-hosts
- depends: process - postfix - master
- -
- name: process - postfix - local
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C local -a 'local -t unix'"
- hostgroups: postfix-hosts
- depends: process - postfix - master
- -
- name: unwanted process - openvpn
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C openvpn"
- hostgroups: computers
- normal_check_interval: 120
-
-
- ###
- -
- name: network service - smtp
- check: dsa_check_smtp
- hostgroups: computers
- excludehostgroups: postfix-hosts, incomingmailrelayed, incomingmailrelayed2025
- depends: process - exim
-
- -
- name: network service - smtp
- check: dsa_check_smtp
- hostgroups: postfix-hosts
- depends: process - postfix - master
- -
- name: network service - submission
- check: dsa_check_smtp_port!587
- hostgroups: incomingmailrelayed
- depends: process - exim
- -
- name: network service - smtp 2025
- check: dsa_check_smtp_port!2025
- hostgroups: incomingmailrelayed2025
- depends: process - exim
- -
- name: network service local - smtps cert
- nrpe: "/usr/lib/nagios/plugins/check_http -H localhost -p 465 -S -C 14 -t 45"
- hostgroups: postfix-hosts
- depends: process - postfix - master
- normal_check_interval: 120
-
- -
- name: setup - dsa config
- nrpe: "/usr/lib/nagios/plugins/dsa-check-config"
- hostgroups: computers
- normal_check_interval: 60
- excludehostgroups: alioth
- -
- name: setup - local hostname etc-hosts
- nrpe: 'if getent ahosts `hostname` | grep -q 127.0; then echo "Warning: local hostname resolves to 127/8 address"; exit 1; else echo "OK: Hostname resolves to non-127/8 address."; exit 0; fi'
- hostgroups: computers
- normal_check_interval: 60
- -
- name: system - available entropy
- nrpe: "/usr/lib/nagios/plugins/dsa-check-entropy"
- event_handler: dsa_event_handler_restart_ekey
- hostgroups: computers
- excludehostgroups: freebsd
- -
- name: system - filesystem check
- nrpe: "/usr/bin/sudo /usr/lib/nagios/plugins/dsa-check-filesystems"
- normal_check_interval: 60
- retry_check_interval: 15
- hostgroups: computers
- ###
- -
- name: local resolver
- nrpe: "/usr/lib/nagios/plugins/dsa-check-resolver www.debian.org www.google.com"
- hostgroups: computers
- normal_check_interval: 60
- -
- name: process - unbound
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u unbound -C unbound -a '/usr/sbin/unbound'"
- hostgroups: unbound-hosts, squeeze, wheezy
- excludehostgroups: alioth
- ###
- -
- name: process - uptimed
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C uptimed -a '/usr/sbin/uptimed'"
- hostgroups: computers
- ###
- -
- name: unwanted process - irqbalance
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C irqbalance"
- hostgroups: computers
- excludehostgroups: deadslow
-
- ####
- ###
- #-
- # name: unwanted process - system-tools-backends
- # nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C system-tools-ba"
- # hostgroups: computers
- #-
- # name: unwanted process - dbus-daemon
- # nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C dbus-daemon"
- # hostgroups: computers
- -
- name: unwanted process - gkrellmd
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C gkrellmd"
- hostgroups: computers
- excludehostgroups: deadslow
- -
- name: unwanted process - rpc.statd
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C rpc.statd"
- hostgroups: computers
- excludehostgroups: nfs-client, nfs-server, deadslow
- -
- name: unwanted process - inetd
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C inetd"
- hostgroups: computers
- excludehosts: abel, alwyn
- excludehostgroups: deadslow
- -
- name: unwanted process - snmpd
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C snmpd"
- hostgroups: computers
- excludehostgroups: deadslow
-
- ####
- -
- name: "host SSL cert"
- nrpe: "if [ -e /etc/ssl/certs/thishost.pem ]; then /usr/lib/nagios/plugins/dsa-check-cert-expire /etc/ssl/certs/thishost.pem; else echo 'No thishost.pem on this host.'; fi"
- hostgroups: computers
-
- ############ Processes/Services that only run on some computers ############
- ####
- ###
- -
- name: process - rngd
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd -a '/usr/sbin/rngd -r /dev/hwrng'"
- hostgroups: dl385
- ###
- -
- name: process - mdadm monitor
- servicegroups: raid
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C mdadm -a '/sbin/mdadm --monitor --pid-file /var/run/mdadm/monitor.pid --daemonise --scan'"
- hostgroups: sw-raid
- excludehostgroups: wheezy
- -
- # wheezy:
- name: process - mdadm monitor
- servicegroups: raid
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C mdadm -a '/sbin/mdadm --monitor --pid-file /run/mdadm/monitor.pid --daemonise --scan'"
- hostgroups: sw-raid
- excludehostgroups: squeeze
- -
- name: RAID - sw raid
- servicegroups: raid
- nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-sw"
- hostgroups: sw-raid
-
- ###
- -
- name: process - ud-replicated
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C ud-replicated -a '/usr/bin/python /usr/bin/ud-replicated'"
- hostgroups: computers
- excludehostgroups: squeeze, freebsd, alioth
- -
- name: process - ud-replicated
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C python2.7 -a '/usr/bin/python /usr/bin/ud-replicated'"
- hostgroups: freebsd
- -
- name: process - monit
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C monit -a '/usr/sbin/monit -d 300 -I -c /etc/monit/monitrc -s /var/lib/monit/monit.state'"
- hostgroups: squeeze
- -
- name: process - monit
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C monit -a '/usr/bin/monit -d 300 -I -c /etc/monit/monitrc -s /var/lib/monit/monit.state'"
- hostgroups: computers
- excludehostgroups: squeeze, alioth
- -
- name: HW - hpacucli status
- servicegroups: raid
- nrpe: "/usr/lib/nagios/plugins/dsa-check-hpacucli"
- normal_check_interval: 120
- hostgroups: dl385, dl380, dl360, bl460, dl180
- excludehosts: schein, rietz
- -
- name: HW - hpacucli status
- servicegroups: raid
- nrpe: "/usr/lib/nagios/plugins/dsa-check-hpacucli --no-controller-ok --ignore-controller='P700m'"
- normal_check_interval: 120
- hostgroups: bm-bl
- -
- name: HW - hpacucli status
- servicegroups: raid
- nrpe: "/usr/lib/nagios/plugins/dsa-check-hpacucli --no-battery"
- normal_check_interval: 120
- hosts: schein, rietz
- -
- name: HW - hpacucli enclosure status
- servicegroups: raid
- nrpe: "/usr/lib/nagios/plugins/dsa-check-hpacucli-enclosure 1 1E:1"
- normal_check_interval: 120
- hosts: franck
- -
- name: HW - hpacucli status
- servicegroups: raid
- nrpe: "/usr/lib/nagios/plugins/dsa-check-hpacucli --ignore-transfer-speed=1I:1:1 --ignore-transfer-speed=1I:1:2"
- normal_check_interval: 120
- hostgroups: dl585
- ###
- -
- name: HW - edac status
- nrpe: "/usr/lib/nagios/plugins/dsa-check-edac"
- normal_check_interval: 120
- hosts: lw05, lw06
- #hostgroups: computers
- #excludehosts: villa, lobos, senfl, schein
- -
- name: HW - hpasmcli status
- nrpe: "/usr/lib/nagios/plugins/dsa-check-hpasm"
- normal_check_interval: 120
- hostgroups: dl385, dl380, dl360, bl460, dl585, bm-bl
- excludehosts: villa, lobos, senfl, schein
- -
- name: HW - hpasmcli status
- nrpe: "/usr/lib/nagios/plugins/dsa-check-hpasm --ps-no-redundant"
- normal_check_interval: 120
- hosts: villa, lobos
- -
- name: HW - hpasmcli status
- nrpe: "/usr/lib/nagios/plugins/dsa-check-hpasm --fan-no-redundant"
- normal_check_interval: 120
- hosts: senfl, schein
- ###
- -
- name: RAID - 3ware
- servicegroups: raid
- nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-3ware"
- hosts: powell
- ###
- -
- name: RAID - aacraid
- servicegroups: raid
- nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-aacraid"
- hostgroups: aacraid
- ###
- -
- name: RAID - megaraid
- servicegroups: raid
- nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-megaraid"
- hostgroups: megaraid
- ###
- #-
- # name: RAID - 3ware
- # servicegroups: raid
- # nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-3ware"
- # hosts: puccini
- ###
- -
- name: RAID - MPT
- servicegroups: raid
- nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-mpt"
- hostgroups: mptraid
-
- ###
-# -
-# name: RAID - megactl
-# servicegroups: raid
-# nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-megactl"
-# hostgroups: megactl
- ###
- -
- name: RAID - DRBD
- servicegroups: raid
- nrpe: "/usr/lib/nagios/plugins/dsa-check-drbd -d All"
- hostgroups: drbd-hosts
- ###
- -
- name: process - slapd
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1:50 -u openldap -C slapd -a '/usr/sbin/slapd -h ldap:/// ldaps:/// -g openldap -u openldap'"
- hosts: draghi
- -
- name: network service - ldaps cert
- check: dsa_check_cert!636
- depends: process - slapd
- normal_check_interval: 60
- hosts: draghi
- ###
- -
- name: process - ulogd
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C ulogd -a '/usr/sbin/ulogd -d'"
- hostgroups: computers
- excludehostgroups: freebsd, sparc
- -
- name: unexpected process - ulogd
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C ulogd"
- hostgroups: freebsd, sparc
-
- ###
- -
- name: process - udevd
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -p 1 -C udevd -a 'udevd'"
- hostgroups: computers
- excludehostgroups: freebsd
- -
- name: unexpected process - udev
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C udevd"
- hostgroups: freebsd
- ###
- -
- name: process - acpid
- nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C acpid -a '/usr/sbin/acpid'"
- hostgroups: acpid-hosts