nagios-server: Introduced getopt for command line

Introduced getopt mechanism for command line arguments
of the plugin.

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