[help] Update and beautify the commandline help output
This commit is contained in:
parent
3af8ee771d
commit
caceb6f20f
11 changed files with 59 additions and 88 deletions
|
@ -1,15 +1,15 @@
|
|||
import bumblebee.module
|
||||
import psutil
|
||||
|
||||
def usage():
|
||||
return "cpu"
|
||||
|
||||
def notes():
|
||||
return "Warning is at 70%, Critical at 80%."
|
||||
|
||||
def description():
|
||||
return "Displays CPU utilization across all CPUs."
|
||||
|
||||
def parameters():
|
||||
return [
|
||||
"cpu.warning: Warning threshold in % of disk usage (defaults to 70%)",
|
||||
"cpu.critical: Critical threshold in % of disk usage (defaults to 80%)",
|
||||
]
|
||||
|
||||
class Module(bumblebee.module.Module):
|
||||
def __init__(self, output, config, alias):
|
||||
super(Module, self).__init__(output, config, alias)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue