From 0ef023c7319f7bf398250dac2938b870b95ac4cb1c6e093e642c3cb2b221e7ba Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Tue, 7 Jul 2020 15:29:46 +0000 Subject: [PATCH] include a comment why the check needs to read nsswitch.conf and passwd OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-sar-perf?expand=0&rev=29 --- usr.lib.nagios.plugins.check_iostat | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/usr.lib.nagios.plugins.check_iostat b/usr.lib.nagios.plugins.check_iostat index c10ff90..f61ab6b 100644 --- a/usr.lib.nagios.plugins.check_iostat +++ b/usr.lib.nagios.plugins.check_iostat @@ -14,8 +14,10 @@ /proc/diskstats r, /proc/uptime r, / r, - /etc/nsswitch.conf r, - /etc/passwd r, /etc/sysstat/sysstat.ioconf r, + # once the service tries to lookup which user is + # invoking the programm, it needs access to the + # following files + /etc/nsswitch.conf r, + /etc/passwd r, } -