Control: tags -1 + patch Attached patch that removes the insanely large ‘max' value.
Note that calculated warning/critical for ‘used' are still absurdly large. Perhaps it would be useful if the plugin would read configuration environment variables so that an admin could override them with meaningful values (tens of thousands rather than quintillions). -- Gerald Turner <gtur...@unzane.com> Encrypted mail preferred! OpenPGP: 4096R / CA89 B27A 30FA 66C5 1B80 3858 EC94 2276 FDB8 716D
--- /usr/share/munin/plugins/open_files 2019-03-11 02:13:29.000000000 -0700 +++ /etc/munin/plugins/open_files 2019-04-29 14:37:54.760383923 -0700 @@ -53,11 +53,7 @@ p_critical=$(print_critical used) [ -z "$p_warning" ] && echo "used.warning $computed_warning" || echo "$p_warning" [ -z "$p_critical" ] && echo "used.critical $computed_critical" || echo "$p_critical" - echo 'max.label max open files' - echo 'max.info The maximum supported number of open files. Tune by modifying /proc/sys/fs/file-max.' - print_warning max - print_critical max exit 0 fi -awk '{print "used.value " $1-$2 "\nmax.value " $3}' < /proc/sys/fs/file-nr +awk '{print "used.value " $1-$2}' < /proc/sys/fs/file-nr
signature.asc
Description: PGP signature