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

Login

Remember Me

Directory Tree

SNMP swap and swap out

Rating
1 vote
Favoured:
0
Current Version
1.0
Last Release Date
2019-07-22
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Owner
Hits
5160
Files:
FileDescription
check_swap_so_snmp.pycheck_swap_so_snmp.py
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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