Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
SNMP swap and swap out
Previously I used the plugin check_snmp_mem.pl to check the amount of Memory and Swap. But when the swap was above the thresold I didn't see swap out/in (so si ) with vmstat. As linux doesn't deallocat the swap which not in use anymore, the alert stay indefinitely. So I decided to make this script (I'm a python beginner..)
This plugin written in python use the plugin check_snmp_mem.pl and snmpwalk. The first checks if the swap is above the treshold and if it's above , the second command checks the amount of swap out. If swap out is egal to 0kb, the check returns a OK result. If not it returns a warning or critical result according to treshold.
usage :
check_swap_so_snmp.py -H host -c community -w WarningMemory,warningSwap -c criticalMemory,CriticalMemory.
example: check_swap_so_snmp.py -H x.x.x.x -c community -w 90,20 -c 95,30
This plugin written in python use the plugin check_snmp_mem.pl and snmpwalk. The first checks if the swap is above the treshold and if it's above , the second command checks the amount of swap out. If swap out is egal to 0kb, the check returns a OK result. If not it returns a warning or critical result according to treshold.
usage :
check_swap_so_snmp.py -H host -c community -w WarningMemory,warningSwap -c criticalMemory,CriticalMemory.
example: check_swap_so_snmp.py -H x.x.x.x -c community -w 90,20 -c 95,30
Reviews (1)
byDenisght, September 25, 2019
This plugin is very useful to check if the swap alert is relevant