import json
from pingCheck import pingCheck

class checkSNMP(pingCheck):
    
    def runCheck(self,config, debug):
        snmp1=config["environment"]["snmpIP"]
        if not self.pingIP(snmp1):
            self.addWarning("Unable to ping SNMP IP Address %s.  Please verify the IP address." % snmp1)

        return 0 
    
    def getHumanName(self):
        return "Check if SNMP is alive"