title: Monitor a service running on a port other than 80 in Nagios
body: <p>How do we monitor a remote service running on a machine using Nagios.
  I have created a cfg file as follows:</p>
  
  <pre><code>define command {
          command_name                    check_http
          command_line                    /usr/lib64/nagios/plugins/check_http -H $HOSTADDRESS$ -p 8082
          }
  </code></pre>
  
  <p>Now when I reload the configuration file, it throws following error:</p>
  
  <pre><code>Warning: Duplicate definition found for command 'check_http' (config file '/etc/nagios/servers/cfbase-prod.cfg', starting on line 19)
  Error: Could not add object property in file '/etc/nagios/servers/cfbase-prod.cfg' on line 20.
     Error processing object config files!
  </code></pre>
  
  <p>I am not able to figure out what is the problem.
  Please help!</p>