
Memory
SNMP swap and swap out
Description:
This is a plugin that monitors swap usage and so (if it’s still writting)
Current Version
1.0
Last Release Date
2019-07-22
Compatible With
- Nagios 2.x
- Nagios 3.x
Owner
Project Files
File | Description |
---|---|
check_swap_so_snmp.py |
Project Notes
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)
Add a Review
This plugin is very useful to check if the swap alert is relevant
Page Sections
Project Stats
Rating
5 (1)
Favorites
0
Views
5,174