Nagios to send snmp traps



I’m new to Nagios and would like to know

  1. how to setup Nagios to send traps to other NMSes using its native MIBs that I downloaded from the Nagios website.
  2. With the following configuration, the authenication does not seem to work, it always returns me with the status message: HTTP OK -HTTP/1.0 302 Redirection
  3. I tried to see what the marco $SERVICEOUTPUT$ contains but the value is not the status info that comes back from the check_http command, it contains node10 (the hostname with a zero at the end)

Please advise and thank you in advance.

I have set up services that uses the check_http as the check_command:
In services.cfg:
define service {
use generic-service
host_name node1
service_description HTTP
is_volatile 0
check_period 24x7
max_check_attempts 2
normal_check_interval 2
retry_check_interval 1
notification_interval 60
notification_options w,u,c,r
notification_period 24x7
check_command check_http!username:Password

In commands.cfg
define command{
command_name check_http
command_line $USER1$/check_http -I $HOSTADDRESS$ -a $ARG1$