Skip to content

Instantly share code, notes, and snippets.

View litmleong's full-sized avatar

Michael Leong litmleong

View GitHub Profile
#!/bin/bash
# Show the rate of swapping (in number of pages) between executions
OK=0
WARNING=1
CRITICAL=2
UNKNOWN=-1
EXITFLAG=$OK
WARN_THRESHOLD=1