System Health checker for Postfix integrated using same mechanism as postgrey
This uses the Postfix STMP Access Policy Delegation mechanism http://www.postfix.org/SMTPD_POLICY_README.html
See also http://www.postfix.org/access.5.html
policy-systemhealth /etc/postfix/systemhealth.yml
A NFS server going down can be simulated by blocking the host in iptables, eg:
iptables -A INPUT -s -j DROP
iptables -nL
iptables -F
This runs sssctl to determine the health of the AD connection for the machine.
AD server downtime can be simulated using above technique of blocking the host.
This runs through a lists of users configured calling getpwnam to check if that returns a password entry
A sample systemhealth.yml file is included in this repository
On Debian install the following packages:
- libyaml-perl
- libgetopt-long-descriptive-perl
- libarray-utils-perl
- libcapture-tiny-perl
- libfile-which-perl