Results 1 to 4 of 4

Thread: send nagios sms notification using gammu

  1. #1
    Join Date
    Apr 2011
    Beans
    2

    send nagios sms notification using gammu

    hello everyone. i'm just install nagios in my linux box. and i configure it according to nagios documentation. the email notification working as well but the sms notification is not working. this is my configuration file...

    command.cfg

    # 'host-notify-by-sms' command definition
    define command{
    command_name host-notify-by-sms
    command_line /usr/bin/printf "%b" "NAGIOS / Host: "$HOSTNAME$" / State: $HOSTSTATE$ / Info:$HOSTOUTPUT$ / Date:$SHORTDATETIME$" | /usr/bin/gammu --sendsms TEXT $CONTACTPAGER$
    }

    # 'notify-by-sms' command definition
    define command{
    command_name notify-by-sms
    command_line /usr/bin/printf "%b" "NAGIOS / Host: "$HOSTALIAS$" / State: $SERVICESTATE$ / Info:$SERVICEOUTPUT$ / Date:$SHORTDATETIME$" | /usr/bin/gammu --sendsms TEXT $CONTACTPAGER$
    }
    contact.cfg

    define contact{

    contact_name sms
    alias sms
    service_notification_period 24x7
    host_notification_period 24x7
    service_notification_options c,r
    host_notification_options d,r
    service_notification_commands notify-by-sms
    host_notification_commands host-notify-by-sms
    pager 013XXXXXXX
    }

    define contactgroup{
    contactgroup_name admins
    alias Nagios Administrators
    members email, sms
    }
    and i also can using gammu by using command

    echo "testing" | gammu --sendsms TEXT 013XXXXXXX

    anyone kwow how to solve this problem?i'm sorry if i post this threat at the wrong forum....

  2. #2
    Join Date
    Oct 2006
    Location
    Ayrshire
    Beans
    39,949
    Distro
    Ubuntu Development Release

    Re: send nagios sms notification using gammu

    Thread moved to "Networking & Wireless"

  3. #3
    Join Date
    Apr 2011
    Beans
    2

    Re: send nagios sms notification using gammu

    somebody help me please.....

  4. #4
    Join Date
    May 2009
    Beans
    5

    Re: send nagios sms notification using gammu

    I am currently trying a similar setup that isn't sending.
    But looking at your setup I believe you cannot have pager and $CONTACTPAGER$ defined for the extra notification addresses, you shall use addressn and the macro $CONTACTADDRESSn$

    Edit: sorry, I see that pager is defined as a macro. Carry on...
    Last edited by luddgopelle; August 22nd, 2011 at 05:25 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •