Announcement

Collapse
No announcement yet.

Not getting mail notification

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • bisana
    replied
    It worked , Now I am able to get notifications

    Hi
    Thanks to all the members who had given we advice , I also got help from
    http://meulie.net/forum_viewtopic.php?21.3339
    I had to enable notification , which I did from nagios interface [ Previously I was trying out with oreon ] and I do not know what was the reason for not working that time
    please check the link http://nagios.sourceforge.net/docs/1...etention_notes
    Thanks
    Joseph John

    Leave a comment:


  • bisana
    replied
    Actually It was enabled , now I did cross check it ,
    the "contact_groups" is enabled
    the present services.cfg file

    #service_id 61
    define service{
    service_description FTP Check
    host_name Stream
    check_command check_ftp
    max_check_attempts 5
    normal_check_interval 5
    retry_check_interval 5
    active_checks_enabled 1
    passive_checks_enabled 1
    check_period 24x7
    parallelize_check 1
    obsess_over_service 1
    check_freshness 1
    freshness_threshold 5
    event_handler_enabled 1
    low_flap_threshold 0
    high_flap_threshold 0
    flap_detection_enabled 1
    process_perf_data 1
    retain_status_information 1
    retain_nonstatus_information 1
    notification_interval 5
    notification_period 24x7
    notification_options w,u,c,r
    notifications_enabled 1
    contact_groups IT-Support
    stalking_options o,w,u,c
    }

    # 'FTP Check' service definition 7
    #
    #
    #service_id 104
    define service{
    service_description FTP Check
    host_name joseph
    check_command check_ftp
    max_check_attempts 3
    normal_check_interval 3
    retry_check_interval 3
    check_period 24x7
    freshness_threshold 0
    low_flap_threshold 0
    high_flap_threshold 0
    notification_interval 3
    notification_period 24x7
    notification_options w,u,c,r
    notifications_enabled 1
    contact_groups IT-Support
    stalking_options o,w,u,c
    }
    Also my nagios.log , has details about SERVICE ALERT , but there is no info about service notification

    Thanks
    Joseph John

    Leave a comment:


  • wistof
    replied
    Re: Not getting mail notification

    Originally posted by bisana
    For Services
    I have

    Host name : joseph
    Description : FTP Check
    Is Volatile : Nothing
    # Service Groups : ForServieGroup
    Check_command : check_ftp
    Check_command_arguments :
    Max_check_attempts : 3
    Normal_check_interval : 3 * 60 sec
    Retry_check_interval : 3 * 60 sec
    Active_checks_enabled : Nothing
    Passive_checks_enabled : Nothing
    Check_period : 24x7
    Parallelize_check : Nothing
    Obsess_over_service : Nothing
    Check_freshness : Nothing
    Freshness treshold : 0 sec
    Event_handler :
    Event_handler_arguments :
    Event_handler enabled : Nothing
    Low flap treshold : 0 %
    High flap treshold : 0 %
    Flap_detection_enabled : Nothing
    Process_perf_data : Nothing
    Retain_status_information : Nothing
    Retain_nonstatus_information : Nothing
    Notification_interval : 3 * 60 sec
    Notification_period : 24x7
    Notification_options : w,u,c,r
    Notification_enabled : Yes
    # contact_groups : IT-Support
    Stalking_options : o,w,u,c
    Status : Enabled
    why Contact_groups is disable ?

    Leave a comment:


  • bisana
    replied
    feedback

    Hi Team
    I am still struggling to get the email notification , some tests which I did from command mode to check mail functions , it worked , following commands I tried and it worked ,

    /usr/bin/printf "%b" "***** Nagios 1.X*****Notification\nType:$NOTIFICATIONTYPE$\n Host: $HOSTNAME$\nState: $HOSTSTATE$Address: $HOSTADDRESS$\nInfo: $OUTPUT$\nDate/Time: $DATETIME$" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" [email protected]
    /usr/bin/printf "%b" "***** Nagios 1.X *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" [email protected]
    Also when I checked the “usr/local/nagios/var/nagios.log “ , I could see reference to the SERVICE ALERT , I was not able to find anything of “Service Notification”

    I had tried different ways to send email notification , but was not able to
    I request members to HELP me trouble shoot this
    Thanks
    Joseph John

    Leave a comment:


  • bisana
    started a topic Not getting mail notification

    Not getting mail notification

    Hi team
    I have RHEL4 , oreon-1.2.2-RC3, postfix , in which MTA is working fine
    I had made contact , contact group , on contact details , I had given “host-notify-by-email and
    notify-by-email “ for host_notification_ command and service_notification_command
    and for that host , I have



    Max_check_attempts : 3
    Checks_enabled : Nothing
    Event_handler_enabled : Nothing
    Event_handler :
    Low_flap_threshold : 0 %
    High_flap_threshold : 0 %
    Flap_detection_enabled : Nothing
    Process_perf_data : Nothing
    Retain_status_information : Yes
    Retain_nonstatus_information : Yes
    Notification_interval : 3 * 60 sec
    Notification_period : 24x7
    Notification_options : d,u,r
    Notifications_enabled : Yes
    Stalking_options : o,d,u
    Status : Enabled

    For Services
    I have

    Host name : joseph
    Description : FTP Check
    Is Volatile : Nothing
    # Service Groups : ForServieGroup
    Check_command : check_ftp
    Check_command_arguments :
    Max_check_attempts : 3
    Normal_check_interval : 3 * 60 sec
    Retry_check_interval : 3 * 60 sec
    Active_checks_enabled : Nothing
    Passive_checks_enabled : Nothing
    Check_period : 24x7
    Parallelize_check : Nothing
    Obsess_over_service : Nothing
    Check_freshness : Nothing
    Freshness treshold : 0 sec
    Event_handler :
    Event_handler_arguments :
    Event_handler enabled : Nothing
    Low flap treshold : 0 %
    High flap treshold : 0 %
    Flap_detection_enabled : Nothing
    Process_perf_data : Nothing
    Retain_status_information : Nothing
    Retain_nonstatus_information : Nothing
    Notification_interval : 3 * 60 sec
    Notification_period : 24x7
    Notification_options : w,u,c,r
    Notification_enabled : Yes
    # Contact Groups : IT-Support
    Stalking_options : o,w,u,c
    Status : Enabled


    I am not able to get the mail notification , when there is change for the ftp is stopped
    Thanks
    Joseph John
Working...
X