nagios-server: Corrected the getopt mechanism

Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com>