Changeset 10 for check_munin

Show
Ignore:
Timestamp:
04/16/09 00:43:10 (16 years ago)
Author:
ixs
Message:

better error handling

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • check_munin

    r9 r10  
    4545MODULE = options.module 
    4646DEBUG = options.debug 
     47 
     48if HOST == None or MODULE == None: 
     49        parser.error("options -H and -M are required.") 
    4750 
    4851def compare(val, thresh):