Shallow water rogue waves in nonlinear optical fibers