此脚本检查状态apparmor状态和配置文件。
monitoring-plugins-apparmor的Python项目详细描述
监控插件apparmor
与Python-Nagios兼容的应用程序护甲检查
说明
这些Nagios兼容的检查旨在监视与apparmor相关的 行为(状态、概况)
用法
检查是否启用了应用防护: /usr/lib/nagios/plugins/check_aa_status。这个插件需要一个sudo 配置,例如:
User_Alias NAGIOS = nagios Cmd_Alias NAGIOS_CMD = /usr/sbin/aa-status --enabled NAGIOS ALL = (root) NOPASSWD: NOEXEC: NAGIOS_CMD
检查是否强制执行给定的二进制文件: /usr/lib/nagios/plugins/check_aa_profile --process=libvirtd
帮助
/usr/lib/nagios/plugins/check_aa_status --help Usage: check_aa_status [options] Options: -v, --verbose -H HOSTNAME, --hostname=HOSTNAME -w WARNING, --warning=WARNING -c CRITICAL, --critical=CRITICAL -t TIMEOUT, --timeout=TIMEOUT -h, --help show this help message and exit
这个过程是强制性的
/usr/lib/nagios/plugins/check_aa_profile --help Usage: check_aa_profile [options] Options: --process=PROCESS The name of the process to find -v, --verbose -H HOSTNAME, --hostname=HOSTNAME -w WARNING, --warning=WARNING -c CRITICAL, --critical=CRITICAL -t TIMEOUT, --timeout=TIMEOUT -h, --help show this help message and exit