check_process - working set in gigabytes
Posted: Mon Oct 17, 2016 3:13 am
Hi,
I'm wondering if there is a way to perform a calculation on the value returned by %(working_set) (or any variable really) as having the value displayed in bytes isn't very useful?
Looking at, http://docs.nsclient.org/0.4.3/referenc ... ail-syntax, and running the command below shows bytes in detailed syntax but somehow GB in perf syntax.
Any help appreciated.
I'm wondering if there is a way to perform a calculation on the value returned by %(working_set) (or any variable really) as having the value displayed in bytes isn't very useful?
Looking at, http://docs.nsclient.org/0.4.3/referenc ... ail-syntax, and running the command below shows bytes in detailed syntax but somehow GB in perf syntax.
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H host1 -c check_process -a process=java.exe "crit=working_set > 3072M" "detail-syntax=%(exe) %(working_set)"Code: Select all
CRITICAL: java.exe 3872395264|'java.exe ws_size'=3.60644GB;0;3