Is it possible to detect that a port is on a FEX rather than on the switch itself?

I would like to create an alert for ports that go down, but not FEX (end-user) ports.

Currently I am thinking since all FEX are Ethernet100-199 I can exclude ports with names that do NOT start out with those names, like Ethernet112/1/32.

Is there an easier way to detect FEX ports?