main:  use ostringstream instead of snprintf
main:  use ostringstream instead of snprintf

With the addition of path names, lines could get fairly long.  Rather
then track the max path length just use a string stream to build
diagnostic names.  Converted the other uses of snprintf for consistency.

jsbronder/ros-sysmon