Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: sms with gammu

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    18

    sms with gammu

    I've configured gammu on the shinken server perfectly. It can send out standalone sms messages through the usb dongle connected to the shinken server.

    Now i've got the problem how to configure gammu with shinken to send out sms messages to some contacts?

    Thanks in advance.

  2. #2
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: sms with gammu

    Just create a new command with the command to send the text and phone number to gammu, and put this new command in your contact definition.
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #3
    Junior Member
    Join Date
    Apr 2012
    Posts
    18

    Re: sms with gammu

    [quote author=naparuba link=topic=768.msg4268#msg4268 date=1360588318]
    Just create a new command with the command to send the text and phone number to gammu, and put this new command in your contact definition.
    [/quote]
    What's the command then .... sorry? :-\

  4. #4
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: sms with gammu

    How are you sending a message to gammu?
    No direct support by personal message. Please open a thread so everyone can see the solution

  5. #5
    Junior Member
    Join Date
    Apr 2012
    Posts
    18

    Re: sms with gammu

    define command {
    command_name host-notify-by-sms
    command_line /usr/local/bin/sendsms.sh host
    }

    define command {
    command_name notify-by-sms
    command_line /usr/local/bin/sendsms.sh service
    }

    attached the sendsms.sh file also

  6. #6
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: sms with gammu

    This .sh need environnement macros (look at "$NAGIOS_NOTIFICATIONTYPE" part). So you need to enable them in the nagios.cfg file, but it will impact performances, or you rewrite this script to take theses values as parameters.
    No direct support by personal message. Please open a thread so everyone can see the solution

  7. #7
    Junior Member
    Join Date
    Apr 2012
    Posts
    18

    Re: sms with gammu

    [quote author=naparuba link=topic=768.msg4289#msg4289 date=1360682956]
    This .sh need environnement macros (look at "$NAGIOS_NOTIFICATIONTYPE" part). So you need to enable them in the nagios.cfg file, but it will impact performances, or you rewrite this script to take theses values as parameters.
    [/quote]
    Just adjust the nagios.cfg setting of environnement macros and tested with shutting down a machine. Didn't received a sms

  8. #8
    Junior Member
    Join Date
    Apr 2012
    Posts
    18

    Re: sms with gammu

    I've been following this tutorial now instead of the other set up before with the sendsms.sh script

    http://blog.wains.be/2010/01/05/nagi...-siemensmc35i/

    Still doesn't send out sms messages.

  9. #9
    Junior Member
    Join Date
    Apr 2012
    Posts
    18

    Re: sms with gammu

    Any suggestions where exactly i can look for troubleshooting? :-\

    Thanks in advance.

    Regards

  10. #10
    Administrator
    Join Date
    Jun 2011
    Posts
    216

    Re: sms with gammu

    I suggest you to try to launch manually your script and see what happens. We have to find where is the issue in the check -> alert -> notification -> send sms process.

Posting Permissions

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