Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory
monitoring-plugins-mem
monitoring-plugins-mem-min_max_perfdata.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File monitoring-plugins-mem-min_max_perfdata.patch of Package monitoring-plugins-mem
--- check_mem/check_mem.pl 2018/09/27 12:46:37 1.1 +++ check_mem/check_mem.pl 2018/09/27 12:47:20 @@ -67,7 +67,14 @@ my $total = $free + $used; print "$total Total\n" if ($opt_v); - my $perfdata = "|TOTAL=${total}KB;;;; USED=${used}KB;;;; FREE=${free}KB;;;; CACHES=${caches}KB;;;;"; + my $wm = $total * $opt_w / 100; + my $cm = $total * $opt_c / 100; + my $wmr = $total * (100 - $opt_w) / 100; + my $cmr = $total * (100 - $opt_c) / 100; + my $perfdata = "|TOTAL=${total}KB;;;; USED=${used}KB;${wmr};${cmr};; FREE=${free}KB;${wm};${cm};0.0;${total} CACHES=${caches}KB;;;;"; + if ($opt_u) { + $perfdata = "|TOTAL=${total}KB;;;; USED=${used}KB;${wm};${cm};0.0;${total} FREE=${free}KB;${wmr};${cmr};; CACHES=${caches}KB;;;;"; + } if ($opt_f) { my $percent = sprintf "%.1f", ($free / $total * 100);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor