BUG 1240096 Corrected nagios compute check

Compute_target.pp : Corrected inheritance so redefine doesnt happen
and fixed lint errors and warnings.

Common_taget.pp : fixed lint errors and warnings.