Repleaced unless with if and fixed snmpd block at the end of the file