Page 1 of 1

Plugin for memory & swap monitoring with graphs in MB/GB

Posted: Mon Jun 04, 2018 12:53 pm
by lrnnetops
Hi Team,

We searched / tried many nagios plugins for monitoring linux server memory & swap usages. we are getting performance graphs but its in KB.
check_memory_usage.jpg
Please share a link from where we can download plugin which can provide / show graphs in MB / GB.

Re: Plugin for memory & swap monitoring with graphs in MB/GB

Posted: Mon Jun 04, 2018 2:18 pm
by lmiltchev
You could use NCPA. With check_ncpa.py, you could specify the units you would like to use.
-u UNITS, --units=UNITS
The unit prefix (k, Ki, M, Mi, G, Gi, T, Ti) for b and
B unit types which calculates the value returned.
Example:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H x.x.x.x -t 'mytoken' -P 5693 -M memory/virtual -u Gi -w 50 -c 80
OK: Used memory was 35.70 % (Available: 20.52 GiB, Total: 31.90 GiB, Free: 20.52 GiB, Used: 11.38 GiB) | 'available'=20.52GiB;16;26; 'total'=31.90GiB;16;26; 'free'=20.52GiB;16;26; 'used'=11.38GiB;16;26;