Catalysis of the reaction: protein + ATP = protein phosphate + ADP by a mitogen-activated protein kinase, as part of a MAPK signaling cascade that passes on a signal within an osmosensory signaling pathway.