def validate(self: T):
     CheckSNMP.validate(self)
     if self.__disks is None:
         raise Exception('You have to set the number of disks!')
     if self.__warning is None:
         raise Exception('You have to set a warning temperature!')
     if self.__critical is None:
         raise Exception('You have to set a critical temperature!')
Exemplo n.º 2
0
 def validate(self: T):
     CheckSNMP.validate(self)
     if None is self.__service:
         raise Exception('You have to set a service for ' + self.get_id())
     if None is self.__warning:
         raise Exception('You have to set a warning bound for ' + self.get_id())
     if None is self.__critical:
         raise Exception('You have to set a critical bound for ' + self.get_id())
    def validate(self: T):
        CheckSNMP.validate(self)
        if self.__raids is None:
            raise Exception('You have to set the number of raids!')

        if self.__warning is None:
            raise Exception('You have to set a warning disk space!')
        if self.__critical is None:
            raise Exception('You have to set a critical disk space!')
 def validate(self: T):
     CheckSNMP.validate(self)
     if self.__gpu is None:
         raise Exception('You have to set the number of the GPU to check!')
Exemplo n.º 5
0
 def validate(self: T):
     CheckSNMP.validate(self)
     if self.__count is None:
         raise Exception(
             'You have to set the number of attached battery packs!')
Exemplo n.º 6
0
 def validate(self: T):
     CheckSNMP.validate(self)
     if self.__disk is None:
         raise Exception('You have to set the number of disk!')
 def validate(self: T):
     CheckSNMP.validate(self)
     if self.__memory is None:
         raise Exception('You have to set the number of memory!')
Exemplo n.º 8
0
 def validate(self: T):
     CheckSNMP.validate(self)
     if 0 == len(self.__services):
         raise Exception('Check service running without services is useless')
 def validate(self: T):
     CheckSNMP.validate(self)
     if self.__volume is None:
         raise Exception('You have to set the number of volume!')
 def validate(self: T):
     CheckSNMP.validate(self)
     if None is self.__disk:
         raise Exception('You have to set the number of disks')