Most switch chips have a serial management interface which can be used with some cheap microcontroller like the atmega328 found on arduino pro mini.
On bigger switches one could also embed a raspberry in it and add a nice web interface while still keeping the overall price much lower than a managed switch