Librenms ospf alerts

hello,

i want to create an ospf alerts when a nighbour goes down , for that i want to change the configuration to be able to change the state of the ospf nbr from the table ospf_nbrs from full to down instead of deleting the row entirly from the db.

can anyone help me to do that i think its in the file ospf.inc.php

there is a function in the cleanup called delete()