From 6a2cd59e6d1bfdbf18be1654bc5e419a093dd733 Mon Sep 17 00:00:00 2001 From: Ludovic Poujol Date: Thu, 16 Sep 2021 16:48:03 +0200 Subject: [PATCH] nagios-nrpe + evolinux-users: new check ipmi --- CHANGELOG.md | 1 + evolinux-users/templates/sudoers_stretch.j2 | 1 + nagios-nrpe/templates/evolix.cfg.j2 | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42d62468..74f83d18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ The **patch** part changes incrementally at each release. * mysql: script "mysql-queries-killer.sh" to kill MySQL queries * nagios-nrpe + evolinux-users: new checks for bkctld * nagios-nrpe + evolinux-users: new check raid (soft + hard) +* nagios-nrpe + evolinux-users: new check ipmi * redis: instance service for Debian 11 * squid: add *.o.lencr.org to default whitelist diff --git a/evolinux-users/templates/sudoers_stretch.j2 b/evolinux-users/templates/sudoers_stretch.j2 index 87e339a3..777eb8f7 100644 --- a/evolinux-users/templates/sudoers_stretch.j2 +++ b/evolinux-users/templates/sudoers_stretch.j2 @@ -12,6 +12,7 @@ nagios ALL = NOPASSWD: /usr/local/lib/nagios/plugins/check_phpfpm_multi nagios ALL = NOPASSWD: /usr/local/lib/nagios/plugins/check_phpfpm_multi /var/lib/lxc/php70/rootfs/etc/php/7.0/fpm/pool.d/ nagios ALL = NOPASSWD: /usr/local/lib/nagios/plugins/check_phpfpm_multi /var/lib/lxc/php73/rootfs/etc/php/7.3/fpm/pool.d/ nagios ALL = NOPASSWD: /usr/local/lib/nagios/plugins/check_phpfpm_multi /var/lib/lxc/php74/rootfs/etc/php/7.4/fpm/pool.d/ +nagios ALL = NOPASSWD: /usr/lib/nagios/plugins/check_ipmi_sensor nagios ALL = NOPASSWD: /sbin/dmsetup status --noflush nagios ALL = NOPASSWD: /sbin/megacli -PDList -aALL -NoLog nagios ALL = NOPASSWD: /sbin/megacli -LdInfo -Lall -aALL -NoLog diff --git a/nagios-nrpe/templates/evolix.cfg.j2 b/nagios-nrpe/templates/evolix.cfg.j2 index 76a31793..e830e697 100644 --- a/nagios-nrpe/templates/evolix.cfg.j2 +++ b/nagios-nrpe/templates/evolix.cfg.j2 @@ -78,6 +78,7 @@ command[check_php-fpm56]=sudo {{ nagios_plugins_directory }}/check_phpfpm_multi command[check_php-fpm70]=sudo {{ nagios_plugins_directory }}/check_phpfpm_multi /var/lib/lxc/php70/rootfs/etc/php/7.0/fpm/pool.d/ command[check_php-fpm73]=sudo {{ nagios_plugins_directory }}/check_phpfpm_multi /var/lib/lxc/php73/rootfs/etc/php/7.3/fpm/pool.d/ command[check_php-fpm74]=sudo {{ nagios_plugins_directory }}/check_phpfpm_multi /var/lib/lxc/php74/rootfs/etc/php/7.4/fpm/pool.d/ +command[check_ipmi_sensors]=sudo /usr/lib/nagios/plugins/check_ipmi_sensor command[check_raid_status]=/usr/lib/nagios/plugins/check_raid # Check HTTP "many". Use this to check many websites (http, https, ports, sockets and SSL certificates).