<div>Here are my contact.cfg file</div>
<div> </div>
<div>define contact{<br> contact_name                    Nedo<br> alias                           Nedo Bicic<br> service_notification_period     24x7<br> host_notification_period        24x7<br> service_notification_options    w,u,c,r
<br> host_notification_options       d,u,r<br> service_notification_commands   notify-by-email<br> host_notification_commands      host-notify-by-email<br> email         <a href="mailto:nedo72@gmail.com">nedo72@gmail.com</a>
<br> }</div>
<div> </div>
<div>this is my contactsgroup.cfg</div>
<div> </div>
<div>define contactgroup{<br> contactgroup_name  Nedo<br> alias          Nedo Admin<br> members   Nedo<br> }</div>
<div> </div>
<div>adn this is for my host file i disconnect in order to get email alerts:</div>
<div> </div>
<div>define host{<br>        use                     generic-host            ; Name of host template to use<br>        host_name               Test1<br>        alias                   Test1<br>        address                 
<a href="http://10.8.2.40">10.8.2.40</a><br>        check_command           check-host-alive<br>        max_check_attempts      10<br>        check_period  24x7<br>        notification_interval   120<br>        notification_period     24x7
<br>        notification_options    d,r<br>        contact_groups  Nedo<br>        }</div>
<div> </div>
<div> </div>
<div>and these are the serivice.cfg file for the above </div>
<div> </div>
<div> </div>
<div>define service{<br>        use                             generic-service         ; Name of service template to use<br>        host_name                       Test1<br>        service_description             PING<br>
        is_volatile                     0<br>        check_period                    24x7<br>        max_check_attempts              4<br>        normal_check_interval           2<br>        retry_check_interval            1
<br>        contact_groups                  Nedo<br> notification_options  w,u,c,r<br>        notification_interval           60<br>        notification_period             24x7<br> check_command   check_ping!100.0,20%!500.0,60%
<br> }</div>
<div> </div>
<div> </div>
<div>and here is my commands.cfg file just incase something i am doing wrong</div>
<div> </div>
<div># 'host-notify-by-email' command definition<br>define command{<br> command_name host-notify-by-email<br> command_line /usr/bin/printf "%b" "***** Nagios 2.9 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s  "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
<br> }</div>
<div> </div>
<div>also i checked the nagios.log this is wat i get but my gmail is working i am sending email right now</div>
<div> </div>
<div>[1191443852] Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios 2.9 *****\n\nNotification Type: PROBLEM\nHost: Test1\nState: DOWN\nAddress: 10.8.2.40\nInfo: PING CRITICAL - Packet loss = 100%\n\nDate/Time: Wed Oct 3 15:37:32 CDT 2007\n" | /bin/mail -s "Host DOWN alert for Test1!" 
<a href="mailto:nedo72@gmail.com">nedo72@gmail.com</a>" resulted in a return code of 127.  Make sure the script or binary you are trying to execute actually exists... </div>
<div> </div>
<div> </div>
<div>someone any clues</div>
<div> </div>
<div> </div>
<div><br><br> </div>
<div><span class="gmail_quote">On 10/3/07, <b class="gmail_sendername">Jim Perrin</b> <<a href="mailto:jperrin@gmail.com">jperrin@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On 10/3/07, Nedim Bicic <<a href="mailto:nedo72@gmail.com">nedo72@gmail.com</a>> wrote:<br>> Hey all have nagios 
2.9 running linux red hat enterprise 4 the email for<br>> nagios sending notifications arent working for some reason i know the box<br>> can send email because the it has the MTA agent installed cuase i can send<br>
> other emials from that machine<br>><br>> I can see host down in nagios webpage i have the contact groups set<br>> appropritaley and of course my email address in contacts group i even did a<br>> sanity check to see if i have any syntex errors nothing so far.
<br>><br>> this is what i have in commands.cfg file under emails:<br>><br>> # 'host-notify-by-email' command definition<br>> define command{<br>>  command_name host-notify-by-email<br>>  command_line /usr/bin/printf "%b" "***** Nagios 
2.9 *****\n\nNotification<br>> Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:<br>> $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" |<br>> /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
<br>>  }<br>><br>> and i also took out the option not to notify in my host file.<br>><br>> something has to be tweaked for sure any help<br><br>Did you set your contacts up so that they recieve notifications?
<br><br>--<br>During times of universal deceit, telling the truth becomes a revolutionary act.<br>George Orwell<br></blockquote></div><br>