cancel
Showing results for 
Search instead for 
Did you mean: 

Nagios check_swap on 11iv3?

Chris House
Frequent Advisor

Nagios check_swap on 11iv3?

Does anyone have any insight in to how the Nagios plugin check_swap gets its swap usage data on an 11iv3 server? It doesn't seem to match the output of swapinfo or top or gpm.

I believe the source code for check_swap is online at http://nagios-plugins.sourcearchive.com/documentation/1.4.13plus-pgit200906171200/check__swap_8c-source.html.

# /home/scripts/nagios/check_swap -w 80% -c 60%
SWAP OK - 86% free (15168 MB out of 17816 MB) |swap=15168MB;14253;10690;0;17816

# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8192 0 8192 0% 0 - 1 /dev/vgroot/lv_swap
dev 4096 0 4096 0% 0 - 1 /dev/vgroot/lv_swap2
reserve - 7448 -7448
memory 23346 5298 18048 23%
total 35634 12746 22888 36% - 0 -

Top:
Memory: 6094100K (3175828K) real, 7957228K (4236780K) virtual, 12389436K free Page# 1/26