<reponame>NoUsername/PyReport<filename>PyReport/alarms/sample0_simple.py
'''
Created on May 10, 2012

@author: <NAME> - <EMAIL>
'''

## this example operates on the process count values
CHECK_FOR = "processCount"

def doCheck(oldVal, newVal):  
    '''
    we simply check if the new value is bigger than 100 here
    ''' 
    if newVal > 100:
        return "High process count, currently %d processes."%newVal
    
    # if there is nothing wrong with the value, simply don't return anything!
    
'''
Created on May 10, 2012

@author: <NAME> - <EMAIL>
'''

## this example operates on the process count values
CHECK_FOR = "processCount"

def doCheck(oldVal, newVal):  
    '''
    we simply check if the new value is bigger than 100 here
    ''' 
    if newVal > 100:
        return "High process count, currently %d processes."%newVal
    
    # if there is nothing wrong with the value, simply don't return anything!
Created on May 10, 2012  @author: <NAME> - <EMAIL> ## this example operates on the process count values we simply check if the new value is bigger than 100 here # if there is nothing wrong with the value, simply don't return anything!