Before you start into diagnostics, have you changed the fuel filters? Poor fuel delivery can cause a lot of flaky performance issues, including the one you described. And to a lesser extent, so can a dirty air cleaner. When a diesel isn't performing normally. new filters is always the first step.
Former owner of 2004 American Tradition and several other RVs
Home is West Palm Beach, FL