257ff21d36
the 'which iostat' command fails OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-sar-perf?expand=0&rev=35
26 lines
703 B
Plaintext
26 lines
703 B
Plaintext
#include <tunables/global>
|
|
/usr/lib/nagios/plugins/check_iostat {
|
|
#include <abstractions/base>
|
|
#include <abstractions/bash>
|
|
#include <abstractions/consoles>
|
|
#include <abstractions/perl>
|
|
/usr/bin/iostat rix,
|
|
/{usr/,}bin/bash rix,
|
|
/{usr/,}bin/stat rix,
|
|
/usr/bin/which rix,
|
|
/sys/devices/system/cpu/ r,
|
|
/sys/devices/**/stat r,
|
|
/proc/meminfo r,
|
|
@{PROC}/[0-9]*/mounts r,
|
|
@{PROC}/[0-9]*/mountinfo r,
|
|
/proc/diskstats r,
|
|
/proc/uptime r,
|
|
/ 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,
|
|
}
|