Can this be done with Nagios

I want to monitor multiple switches/routers. Each one of those devices has different number of ports and each one of those ports need to be monitored for several snmp oids such as ifoctetsin, ifoctetsout, iferrorsin, iferrorsout etc.
I would also like to be able to see graphs for those statistics. How would I do this automatically for every device and more importantly for every interface on every device. That is, can I create a single configuration file for just one device and one port on that device and than somehow apply that file to all the network devices on the list. Hope it’s clear to everyone what I want to do. Please let me know.

Thank you

The thing you can do to shorten your configuration is to use templates:
nagios.sourceforge.net/docs/2_0/xodtemplate.html

That template can be applied to every host/service definition you wish to monitor. But you have to define every service (snmp queries you wish to monitor) and every host.

For graphing I use Nagiostat. You can try it and see if it suits your needs.