SteScho / manubulon-snmp

Set of Icinga/Nagios plugins to check hosts and hardware with the SNMP protocol.
GNU General Public License v2.0
73 stars 71 forks source link

Make perfdata output honour -b option #46

Closed jimbobmcgee closed 6 years ago

jimbobmcgee commented 6 years ago

Status output show RAM usage as percentage, while perfdata output shows total literal ram usage. If -N -m options are given, cached memory is included in both the plugin status output and the perfdata. If -N -b options are given, buffered memory is excluded from the status output, but remains included in the perfdata.

This patch alters the behaviour of the -N -b option combination so that, if supplied, buffered memory is also excluded from the perfdata.