Install and configure mrtg in order to graph switches and routers discovered from a data bag.
Works on debian, may work on ubuntu and other debian based distributions.
Default recipe search into a “switches” data bag for item like this one :
{
"id": "some-id", "fqdn": "switch.or.router.fqdn"
}