Whenever it comes to the attention of the code enforcement officer that any nuisance as defined in this division exists in the county, a notice in writing shall be served upon the occupant of the real property where the nuisance exists, upon the owner of the property, and upon the owner of the junked motor vehicle or other property which constitutes such nuisance, notifying them of the existence of the nuisance and directing its removal within 30 days. In the event that such owners cannot be located, or in the event that the address of such owners is unknown, then notice shall be made to the last known address of such owners, or in the event that the identity of such owners cannot be ascertained after due investigation, such notice shall be posted in a prominent location on the premises where the nuisance exists, and upon the junked motor vehicle itself.