You can add a contact to the Alert List in order to request to be notified when the online status of a contact changes.
Control-Click the contact or contacts and choose Add Contact to Alert List. The Alert List icon appears beside the contact:
Alert List icon

Moving forward, when the contact’s status changes, a notification will appear.