nagios-server: Introduced getopt for the plugin

Introduced the getopt mechanism to accept the command line
arguments for the plugin

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