Home Directory Plugins System Metrics Memory SNMP swap and swap out

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com


Remember Me

SNMP swap and swap out

1 vote
Current Version
Last Release Date
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This is a plugin that monitors swap usage and so (if it's still writting)
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
Reviews (1)
byDenisght, September 25, 2019
This plugin is very useful to check if the swap alert is relevant