Compounds of the formula in which (Ia) G 1 is N, CH or C-halogen and G 2 is in which G 3 is C(=X)NR 2 R 3 in which X is oxygen or sulphur, R 2 is a radical from the group of hydrogen, alkyl, haloalkyl, alkoxy, haloalkoxy, alkenyl, alkoxyalkyl, optionally halogen-substituted alkylcarbonyl, optionally halogen-substituted alkoxycarbonyl and optionally halogen-substituted cycloalkylcarbonyl, and R 3 is a radical from the group of hydrogen, alkyl, haloalkyl, cyanoalkyl, alkenyl, haloalkenyl, alkynyl, haloalkynyl, alkoxy, haloalkoxy, optionally halogen-substituted alkoxyalkyl, optionally halogen-substituted bis(alkoxy)alkyl, optionally halogen-substituted alkylthioalkyl, optionally halogen-substituted alkylcarbonylalkyl, optionally halogen-substituted alkylsulphinylalkyl, optionally halogen-substituted alkylsulphonylalkyl, optionally halogen-substituted alkoxycarbonylalkyl, alkynyloxy, alkynyloxycarbonyl, optionally substituted cycloalkyl, optionally substituted cycloalkylcarbonyl, optionally substituted cycloalkylalkyl, optionally substituted heterocyclyl, optionally substituted heterocyclylalkyl, optionally substituted arylalkyl, optionally substituted hetarylalkyl and NR 4 R 5 in which R 4 and R 5 are each independently a radical from the group of hydrogen, alkyl, haloalkyl, cycloalkyl, alkoxy, alkylcarbonyl, alkoxycarbonyl, hetaryl and heterocyclyl, or R 4 and R 5 together with the nitrogen atom to which they are bonded form an optionally substituted heterocycle, or R 2 and R 3 together with the nitrogen atom to which they are bonded form an optionally substituted ring which optionally contains further heteroatoms, and salts and N-oxides of the compounds of the formula. (Ia) G 1 is N, CH or C-halogen and G 2 is in which G 3 is C(=X)NR 2 R 3 in which X is oxygen or sulphur, R 2 is a radical from the group of hydrogen, alkyl, haloalkyl, alkoxy, haloalkoxy, alkenyl, alkoxyalkyl, optionally halogen-substituted alkylcarbonyl, optionally halogen-substituted alkoxycarbonyl and optionally halogen-substituted cycloalkylcarbonyl, and R 3 is a radical from the group of hydrogen, alkyl, haloalkyl, cyanoalkyl, alkenyl, haloalkenyl, alkynyl, haloalkynyl, alkoxy, haloalkoxy, optionally halogen-substituted alkoxyalkyl, optionally halogen-substituted bis(alkoxy)alkyl, optionally halogen-substituted alkylthioalkyl, optionally halogen-substituted alkylcarbonylalkyl, optionally halogen-substituted alkylsulphinylalkyl, optionally halogen-substituted alkylsulphonylalkyl, optionally halogen-substituted alkoxycarbonylalkyl, alkynyloxy, alkynyloxycarbonyl, optionally substituted cycloalkyl, optionally substituted cycloalkylcarbonyl, optionally substituted cycloalkylalkyl, optionally substituted heterocyclyl, optionally substituted heterocyclylalkyl, optionally substituted arylalkyl, optionally substituted hetarylalkyl and NR 4 R 5 in which R 4 and R 5 are each independently a radical from the group of hydrogen, alkyl, haloalkyl, cycloalkyl, alkoxy, alkylcarbonyl, alkoxycarbonyl, hetaryl and heterocyclyl, or R 4 and R 5 together with the nitrogen atom to which they are bonded form an optionally substituted heterocycle, or R 2 and R 3 together with the nitrogen atom to which they are bonded form an optionally substituted ring which optionally contains further heteroatoms, G 1 is N, CH or C-halogen and G 2 is X is oxygen or sulphur, R 2 is a radical from the group of hydrogen, alkyl, haloalkyl, alkoxy, haloalkoxy, alkenyl, alkoxyalkyl, optionally halogen-substituted alkylcarbonyl, optionally halogen-substituted alkoxycarbonyl and optionally halogen-substituted cycloalkylcarbonyl, and R 3 is a radical from the group of hydrogen, alkyl, haloalkyl, cyanoalkyl, alkenyl, haloalkenyl, alkynyl, haloalkynyl, alkoxy, haloalkoxy, optionally halogen-substituted alkoxyalkyl, optionally halogen-substituted bis(alkoxy)alkyl, optionally halogen-substituted alkylthioalkyl, optionally halogen-substituted alkylcarbonylalkyl, optionally halogen-substituted alkylsulphinylalkyl, optionally halogen-substituted alkylsulphonylalkyl, optionally halogen-substituted alkoxycarbonylalkyl, alkynyloxy, alkynyloxycarbonyl, optionally substituted cycloalkyl, optionally substituted cycloalkylcarbonyl, optionally substituted cycloalkylalkyl, optionally substituted heterocyclyl, optionally substituted heterocyclylalkyl, optionally substituted arylalkyl, optionally substituted hetarylalkyl and NR 4 R 5 in which R 4 and R 5 are each independently a radical from the group of hydrogen, alkyl, haloalkyl, cycloalkyl, alkoxy, alkylcarbonyl, alkoxycarbonyl, hetaryl and heterocyclyl, or R 4 and R 5 together with the nitrogen atom to which they are bonded form an optionally substituted heterocycle, or R 2 and R 3 together with the nitrogen atom to which they are bonded form an optionally substituted ring which optionally contains further heteroatoms,