English (and other languages) speakers often use "How are you?", "What's up?", "How's it going?" and similar phrases as greetings. Other language speakers and cultures will refrain from asking such a question unless they are genuinely interested in the answer and have a reason to ask, so typically not as part of greeting someone.
Is 「お元気ですか」 acceptable to use in a similar way, such as greeting someone with 「おはようございます。お元気ですか。」?
If it is, how common is it?
Does it sound weird to native speakers?