<div>I have Nagios 2.4</div>
<div>hey people i have been getting nagios notification email but dont get anymore after i added the hosts</div>
<div> </div>
<div>here is what i have so far I have MTA and tried sending email through my local server which is fine</div>
<div> </div>
<div>and this is how i have contacts.cfg set up : </div>
<div> </div>
<div># 'Master' contact definition <br>define contact{ <br>        contact_name                         genesis <br>        alias                                genesis net<br>        service_notification_period          24x7 
<br>        host_notification_period             24x7 <br>        service_notification_options         c,r <br>        host_notification_options            d,r,n <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>  }<br> </div>
<div>and this is what i have for my contactgroup.cfg</div>
<div> </div>
<div>define contactgroup{ <br>        contactgroup_name       gmaster <br>        alias                   test Group <br>        members                 genesis<br>        } <br> </div>
<div>And this is one sample host i have:</div>
<div> </div>
<div>define host{<br>        use                     generic-host            ; Name of host template to use<br>        host_name               cpu1<br>        alias                   cpu1<br>        address                 
<a href="http://10.8.1.53">10.8.1.53</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,n<br>        contact_groups  gmaster<br>        }</div>
<div> </div>
<div>and this is what i have for my miscommands.cfg for my email commands:</div>
<div>---->this is for hosts</div>
<div> </div>
<div>define command{<br> command_name host-notify-by-email<br> command_line /bin/echo -e "***** Nagios  *****\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>->>this is for services</div>
<div> </div>
<div> </div>
<div># 'notify-by-email' command definition<br>define command{<br> command_name notify-by-email<br> command_line  /bin/echo -e "***** Nagios  *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
<br> }</div>
<div> </div>
<div>I dont why i dont get any email notifications after a host goes down when i unplug it</div>
<div> </div>
<div>thanks</div>
<div> </div>
<div> </div>