If each switch is managed, then they all have their own IP addresses. Then it is just a mater of making hosts for each switch.
If they share an IP, for example if they are in a High-Availability configuration, then I am not sure how you would tell them apart.
This pluggin might help though:
http://www.nagiosexchange.org/cgi-bi...=2430.html;d=1