Not getting email alerts

Sudheer Muddappa sudheer at tgs-solutions.com
Thu Aug 5 22:47:55 CEST 2004


## 'Debian server' host definition
define host{
        host_name               debian
        alias                   Debian server
        address                 ipaddress
        check_command           check-host-alive
        max_check_attempts      3
        notification_interval   480
        notification_period     24x7
        }

# Service definition 'debian'
define service{
        host_name                       debian
        service_description             PING
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  server-admins
        notification_interval           120
        notification_period             24x7
        notification_options            c,r
        check_command                   check_ping!100.0,20%!500.0,60%
        }


# 'root' contact definition
define contact{
        contact_name                    root
        alias                           Super User
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,u,r
        service_notification_commands   notify-by-email
        host_notification_commands     host-notify-by-email
        email                           root at redbankng
        }

# 'host-notify-by-email' command definition
define command{
        command_name    host-notify-by-email
        command_line    /usr/bin/printf "%b" "***** Nagios  
*****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: 
$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: 
$DATETIME$\n" | /usr/bin/mail -s "Host $HOSTSTATE$ alert for 
$HOSTNAME$!" $CONTACTEMAIL$
        }


Thanks,



Kemp, Darren wrote:

> Post your host template and your command syntax for the host notification.
>
>  
>
> -dkk
>
>  
>
>  
>
> ------------------------------------------------------------------------
>
> From: Sudheer Muddappa [mailto:sudheer at tgs-solutions.com]
> Sent: Thursday, August 05, 2004 4:22 PM
> To: nagios-users at lists.sourceforge.net
> Cc: Kemp, Darren; Marc Powell
> Subject: Re: [Nagios-users] Not getting email alerts
>
>  
>
> Guys,
>
> The catch is I receive emails on snmp traps and disk quota etc.....
>
> But not on the host down or unreachable.
>
> Please let me know If you need any config files to look at.
> I will send them.
>
> THanks,
>
> Kemp, Darren wrote:
>
>Hosts and Services have separate notification settings. Make sure your
>
>host object is setup to notify.
>
> 
>
>-dkk
>
> 
>
> 
>
>-----Original Message-----
>
>From: nagios-users-admin at lists.sourceforge.net <mailto:nagios-users-admin at lists.sourceforge.net>
>
>[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc
>
>Powell
>
>Sent: Thursday, August 05, 2004 2:27 PM
>
>To: Sudheer Muddappa; nagios-users at lists.sourceforge.net <mailto:nagios-users at lists.sourceforge.net>
>
>Subject: RE: [Nagios-users] Not getting email alerts
>
> 
>
>----Original Message----
>
>From: Sudheer Muddappa [mailto:sudheer at tgs-solutions.com]
>
>Sent: Thursday, August 05, 2004 12:35 PM
>
>To: nagios-users at lists.sourceforge.net <mailto:nagios-users at lists.sourceforge.net>
>
>Subject: Re: [Nagios-users] Not getting email alerts
>
> 
>
>  
>
>>As I mentioned before,
>>
>>I am receiving emails for other services, like disk checks cpu
>>
>>utilization etc. 
>>
>>But host goes down , I dont get any emails at all.
>>
>> 
>>
>>And the email id is fine. As everything is happening on the same
>>
>>server. 
>>
>> 
>>
>>    
>>
> 
>
>  
>
>>>pertinent to troubleshooting. Additionally, I suggested you look in
>>>
>>>your nagios.log to verify that nagios was sending out the alerts.
>>>
>>>What did you find? 
>>>
>>>      
>>>
> 
>
>...?
>
> 
>
>--
>
>Marc
>
> 
>
> 
>
>-------------------------------------------------------
>
>This SF.Net email is sponsored by OSTG. Have you noticed the changes on
>
>Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
>
>one more big change to announce. We are now OSTG- Open Source Technology
>
>Group. Come see the changes on the new OSTG site. www.ostg.com <http://www.ostg.com>
>
>_______________________________________________
>
>Nagios-users mailing list
>
>Nagios-users at lists.sourceforge.net <mailto:Nagios-users at lists.sourceforge.net>
>
>https://lists.sourceforge.net/lists/listinfo/nagios-users
>
>::: Please include Nagios version, plugin version (-v) and OS when
>
>reporting any issue. 
>
>::: Messages without supporting info will risk being sent to /dev/null
>
> 
>
> 
>
> 
>
> 
>
>-------------------------------------------------------
>
>This SF.Net email is sponsored by OSTG. Have you noticed the changes on
>
>Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
>
>one more big change to announce. We are now OSTG- Open Source Technology
>
>Group. Come see the changes on the new OSTG site. www.ostg.com <http://www.ostg.com>
>
>_______________________________________________
>
>Nagios-users mailing list
>
>Nagios-users at lists.sourceforge.net <mailto:Nagios-users at lists.sourceforge.net>
>
>https://lists.sourceforge.net/lists/listinfo/nagios-users
>
>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
>
>::: Messages without supporting info will risk being sent to /dev/null
>
> 
>
> 
>
>  
>
>
>
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040805/dada22b5/attachment.html>


More information about the Users mailing list