Cook the pasta according to the instructions on the packet and drain.
In the meantime, cut the onion and ham into cubes and fry in oil in a high pan. Then add the pasta and eggs, let the whole thing set briefly and sprinkle with salt and pepper. Finally, sprinkle the cheese on top and let it melt briefly. If you want it hearty, you can sprinkle cheese over it again.