Commit graph

4 commits

Author SHA1 Message Date
Alexis Ben Miloud--Josselin 145edbd3f7 Use is-enabled to check if alert5 is enabled
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-24 18:05:25 +02:00
William Hirigoyen (Evolix) 36ed916b96 Adapte le check minifirewall pour le cas systemd
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-11 17:46:16 +02:00
Benoît S. 755eaab60a minifirewall: use systemctl is-enabled
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build is passing
Fixes #66
2019-07-04 17:41:59 +02:00
Jérémy Lecour 03c53433d6 Add minifirewal_status and check_minifirewall
minifirewall_status returns "started" on stdout and exit code 0,
or "stopped" on stdout and exit code 1. The state of minifirewall
is determined by looking for common iptables rules applied by
minifirewall.

check_minifirewall is an NRPE plugin for minifirewall. It returns:
* 0 (OK) if the firewall state is consistent with its configuration
(from the alert5 script)
* 1 (WARNING) if the firewall is started but alert5 is not configured
properly
* 2 (CRITICAL) if the firewall is not running but it should be.
2018-04-06 09:52:18 +02:00