the alarm will not set if the 'loop' is not closed, ie a door left open, but a door ajar issue would stop the car locking, so the bonnet switch would be a good bet, locate the plug and bridge the terminals and try the alarm or leave it unplugged and re try the alarm.