Hi,
there are multiple ways. First you can create script DCI that will do SNMP walk over OSPF neighbor table and check for changes. You may also check for SNMP traps - most likely Cisco will send trap on each OSPF topology change.
Best regards,
Victor