Announcement

Collapse
No announcement yet.

service notification

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

  • service notification

    hello,

    i have a problem with service notification that sent by nagios.
    some variables are blank:

    =========================================
    Subject: ** PROBLEM alert - myhost/ is **
    ---------------------------------------------------------
    ***** Nagios *****

    Notification Type: PROBLEM

    Service:
    Host: myhost
    Address: 192.200.200.65
    State:

    Date/Time: Tue May 16 04:14:04 WIT 2006

    Additional Info:
    =========================================



    here is my notify-by-email command:
    ---------------------------------------------
    /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info: $SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
    ---------------------------------------------

    i've tried with nagios-2.0-2.2, nagios-2.3-1 and nagios-plugins-1.4-2.2, nagios-plugins-1.4.2-1.2. but no luck.... :?:

  • #2
    notify-by-email is for service notification

    use host-notify-by-email for host notification
    StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
    Dons Paypal

    Comment


    • #3
      yes, i know...
      i'm using notify-by-email because i want to monitoring a service (e.g.: http).

      Comment


      • #4
        mmm..

        it's only happen when i use check_ping and confgure it with oreon.
        anybody knows why?

        Comment


        • #5
          Makan,

          I am wondering if you can try that check command from the shell and see if it works, also make sure that mail is in the bin/mail directory. Maybe looking into your mail logs may help. I believe my debian is in the /usr/bin/mail dir.

          Comment


          • #6
            j'ai exactement le même problème avec la même commande dans le même context!!!!

            Comment

            Working...
            X