[help] Update and beautify the commandline help output

This commit is contained in:
Tobias Witek 2016-11-05 16:18:53 +01:00
parent 3af8ee771d
commit caceb6f20f
11 changed files with 59 additions and 88 deletions

View file

@ -2,15 +2,15 @@ import psutil
import bumblebee.module
import bumblebee.util
def usage():
return "memory"
def notes():
return "Warning is at 20% available RAM, Critical at 10%."
def description():
return "Shows available RAM, total amount of RAM and the percentage of available RAM."
def parameters():
return [
"memory.warning: Warning threshold in % of memory still available (defaults to 20%)",
"memory.critical: Critical threshold in % of memory still available (defaults to 10%)",
]
class Module(bumblebee.module.Module):
def __init__(self, output, config, alias):
super(Module, self).__init__(output, config, alias)