(self, state)
Translate/validate Service state
Translate/validate Service state
Translate / validate Service state
def _trans_svc_state(self, state):
        """ Translate/validate Service state """
        if state == 0:
            return "ok"
        elif state == 1:
            return "warning"
        elif state == 2:
            return "critical"
        else:
            return "unknown"
def _trans_svc_state ( self , state ) : if state == 0 : return "ok" elif state == 1 : return "warning" elif state == 2 : return "critical" else : return "unknown"